Hi,
I'm looking for an example of how NRFX_UARTE works.
I would like to set up a serial port with EasyDMA to send and receive a thirty bytes.
Thanks in advance for your help.
Best regards,
Hi,
I'm looking for an example of how NRFX_UARTE works.
I would like to set up a serial port with EasyDMA to send and receive a thirty bytes.
Thanks in advance for your help.
Best regards,
You need to edit your sdk_config.h file, and set:
void UARTE0_UART0_IRQHandler(void) { // Code }
Ok.
I include only "nrf_uarte.h"
and with void UARTE0_UART0_IRQHandler(void) I have an error :
1> main.o: In function `UARTE0_UART0_IRQHandler':
1> main.c:729: multiple definition of `UARTE0_UART0_IRQHandler'
1> Nordic_BLE\nRF5_SDK_15.0.0\modules\nrfx\drivers\src/nrfx_uarte.c:571: first defined here
If I keep NRFX_PRS_ENABLED = 1 and NRFX_PRS_BOX_4_ENABLED 1, I have an error :
1> main.o: In function `UARTE0_UART0_IRQHandler':
1> main.c:728: multiple definition of `UARTE0_UART0_IRQHandler'
1> Nordic_BLE\nRF5_SDK_15.0.0\modules\nrfx\drivers\src\prs/nrfx_prs.c:81: first defined here
Did you set this in your sdk_config.h file and re-compile the whole project (clean first, then build)?
#define NRFX_UARTE_ENABLED 0
The first error is because nrfx_uarte.c is still enabled, and the second is due to the "nrfx_prs" library being used by nrfx_uarte is in use.
I have :
NRFX_UARTE_ENABLED 0
NRFX_UARTE0_ENABLED 0
NRFX_UART_ENABLED 0
NRFX_UART0_ENABLED 0
UART_ENABLED 1
UART_EASY_DMA_SUPPORT 1
UART_LEGACY_SUPPORT 0
UART0_ENABLED 1
UART0_CONFIG_USE_EASY_DMA 1
NRFX_PRS_ENABLED 1
NRFX_PRS_BOX_4_ENABLED 1
Could you try to remove the nrfx_uarte.c and nrfx_prs.c from your project and see if it works then?