This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Raytac MDBT50Q-RX Dongle (nRF52840) LED problem

Hello!

I managed to flash my Raytac dongle with debugging going using the SWD on a nrf52 DK.
I am mainly working with SEGGER Embedded Studio and nRF Connect on Mac.
However, it seems any function from simple_hal simply won't work...

I created a new header file in SDK/components/boards/ which defines the only LED of the Raytac MDBT50Q-RX Dongle:

...
// LED definitions for MDBT50Q-RX #define LEDS_NUMBER 1 #define LED_1 NRF_GPIO_PIN_MAP(1,13) #define LED_START LED_1 #define LED_STOP LED_1

#define LEDS_LIST { LED_1 }
...

Sadly, my application (using the mesh SDK) just won't light up with the Raytac dongle, while working perfectly with the nRF52840 DK (PCA10056) and the nordic nRF52840 Dongle (PCA10059)

Until I included these 2 lines in my main.c:

nrf_gpio_cfg_output(LED_1);
nrf_gpio_pin_write(LED_1, value);

I could reproduce this on both the light_switch server & client.

If anyone could enlighten me.. ^^

Thank you!

PS: if this is truly impossible, could someone guide me onto how to write an async blink?
This is blocking the process quite a bit:

for(int i=0; i<10; i++) {
  nrf_gpio_pin_write(LED_1, i%2);
  nrf_delay_ms(500);
}
Parents Reply Children
Related