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

where to define UARTs for the file nrf_drv_uart.h

I have combined the ble_app_uart_c with mesh light switch example. In the file nrf_drv_uart.h it does not show the same "active defines"  as with the original ble_app_uart_c.  UARTE_PRESENT, NRFX_UARTE_ENABLED,UART_PRESENT and NRFX_UART_ENABLED are undefined, hence a compile error.

I have gone through  SDK_config.h and enabled them there I have also tried CMSIS configuration wizard. I have also tried in the pre_processor, but cant get the defines to activate. I see in the top of sdk_config there is a header file active "app_config.h" (which  is in the preprocessor) I have also added the top four defines there.

Anywhere else I can try?

thank you

  • I must say I am stuck in the same place as you are describing above, except that I am trying to get it working with an OpenThread application. 

    It looks like an issue occurs while using the legacy drivers as 'nrf_drv_uart.h' in app_uart instead of the nrfx drivers.

    Let me know if you figure something out, I'll try again tomorrow and maybe post a new question.

Related