can't get blinky to turn on led

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
rowdy15
Offline
Last seen:1 year 10 months ago
Joined:2019-02-13 07:38
can't get blinky to turn on led

Hi All,

I'm at my wits’ end about how to get the blinky app working. I have da14580 chip that allows me to flash it with sysram and I think with the eeprom too. it allows me to connect to it and see the services and characteristics etc. ble_app_pheriphal and profile examples work and I can send data to it (i think).

However I cannot for the life of me work out how to blink an led. The particular board I have is below

I have hooked up the P01, P02 and P03 to a transistor circuit which I have verified works, but doesn't with the blinky app.

I change the following where GPIO_PIN_0 becomes a GPIO_PIN_1,GPIO_PIN_2 or GPIO_PIN_3 for P01, P02 or P03 as above.

// LED (approx line 37-39)
#define LED_PORT GPIO_PORT_1
#define LED_PIN GPIO_PIN_0

I have confirmed that the above gpio pins are declard in an enum in gpio.h

the Uart Terminal is saying *LED OFF* then *LED ON* , so it is looping correctly after I dowload to sysRam.

so please, could some tell me why it isn't working.

Device:
PM_Dialog
Offline
Last seen:22 hours 58 min ago
Staff
Joined:2018-02-08 11:03
Hi rowdy15,

Hi rowdy15,

Could you please clarify in which example of the SDK are you working on? In the ble_app_peripheral example of the SDK? Are you using any of the sleep modes in your application? As I am able to understand correctly, you have 3 LEDs in your custom board, connected to P01, P02 or P03. Did you try to run the blinky example of the SDK? This example is located under DA1458x_SDK\5.0.4\projects\target_apps\peripheral_examples\blinky SDK path. Please go to the user_periph_setup.h header file and change the LED_PORT and LED_PIN definitions according to your custom board? Could you please let me know if that is working?

Thanks, PM_Dialog

rowdy15
Offline
Last seen:1 year 10 months ago
Joined:2019-02-13 07:38
I have confirmed that the

I have confirmed that the chip works as I was able to successfully use the DSPS example.

我经历了教程1、2和3,看看我蒙头斗篷d create a custom app. I was trying to change the settings in the ble_app_peripheral and ble_app_profile examples. But once I connected to the chip with the lightblue ios app I and sent (write) a value of "1" (e.g. 0x01) to the "led state" characteristic nothing was happening. I checked everything on the circuit to make sure it was OK. and still nothing.

So I decided to try the blinky example in the peripheral examples folder. And I changed the LED_PIN variable form GPIO_PIN_0 to GPIO_PIN_1 or GPIO_PIN_2 or GPIO_PIN_3.

It flashed to the chip OK and the uart terminal was showing *LED ON* and off etc. But the leds don't turn on. I have confirmed the led works and the circuit works. It's just that the GPIO pins are not going HIGH.

Is there an easy way to pull all pins HIGH to confirm that the chip can set pins high?

As a side note the reset pin is grounded always (it is soldered to the ground pin next to it), so that I have to replug the Uart bridge every time I want to flash. Would this be affecting the pins?

PM_Dialog
Offline
Last seen:22 hours 58 min ago
Staff
Joined:2018-02-08 11:03
Hi rowdy15,

Hi rowdy15,

In order to configure a GPIO as pull-up you should change the INPUT of the GPIO_ConfigurePin() from the user_periph_setup.c as INPUT_PULLUP. Also, you could change the last argument of the GPIO_ConfigurePin() as “true” in order to set the pin as high.

Thanks, PM_Dialog