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

where is UARTE configuration in sdk_config.h?

where is UARTE configuration in sdk_config.h?

According to this doc (for SDK15.3/UART):

infocenter.nordicsemi.com/index.jsp

It seems I can follow the steps to enable UARTE. But where is that "#ifdef NRF52...." section? Or am I suppose to type it in?
Am I looking at the wrong document?

#ifdef NRF52
#define UART0_USE_EASY_DMA false
#define UART_EASY_DMA_SUPPORT 1
#define UART_LEGACY_SUPPORT 1
#endif //NRF52
Parents
  • Ok, maybe not so fast...

    I found once the BLE gets connected, the UARTE TX stops working.

    I started with BLE Blinky. Did some modification to fit my BLE profile. Everything works fine. Then I added UARTE as I mentioned above - without touching sdk_config.h but just add the uarte API calls. It works right away, both TX and RX directions. But that's without BLE connection. But BLE is advertising so the SD is running.

    Then I connected to the device through my phone. Then the test shows that the TX direction stopped working. I'm able to call nrfx_uarte_tx() without any problem. Error code was checked ok. But then the event handler never gets called which meas no NRFX_UARTE_EVT_TX_DONE event. The BLE connection works fine. Just no UARTE TX.

    As soon as I disconnect BLE, without doing anything, the TX is back as normal. So somehow the BLE connection has an impact on the TX function. Weird.

    Looking at the TX pin on the scope shows no signal.

    I'm guessing if I need to config something in the sdk_config.h but I don't know where to look. I'm using SDK15.3, S132, 52832.

    I'm using a PCA10040 board, TX is on P0.06, no HWFC.

    Thx!

  • Ok, never mind .... I made a mistake somewhere else seemingly total unrelated but causes the problem.

    So all is well. UARTE and BLE all works fine.

  • Sorry for the delay and great to know it can work now.   

    If you are using the UART example on nrf52, the sdk_config.h is already set like that. You don't need to add that into the example again. 

    -Amanda H.

Reply Children
Related