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

Enabling UART in a Mesh application

I'm trying to enable UART in a mesh application with SDK 15.1.0 and mesh SDK 3.3.0. This seems to be a real nightmare and I'm not sure why Nordic has so many different HAL libraries to drive the same peripheral. As an example, for a  UART application you can use:

component/libraries/uart/app_uart.c

modules/nrfx/drivers/nrfx_uart.c

These seem to be accomplishing the same thing with different variability of functionality, backwards compatibility, etc. The problem is in integration\nrfx\legacy\nrf_drv_uart.c which has a function that depends on the inclusion of bot nrfx_uarte_init and nrfx_uart_init. 

If you include both those files you have a " multiple definition of `UARTE0_UART0_IRQHandler'" error between nrfx_uarte and nrfx_uart, but you can't build nrf_drv_uart in the first place without both of these. 

Parents Reply Children
No Data