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

Adding UART code to the 'light switch server' project

Hi,

I am evaluating the nRF52840-DK and wanted to add some debug code to the UART.

I have used the same libraries as the 'UART_PCA10056 (which works), but when the code is linked an error comes as follows:-

Please advise where to look at for this error.

Parents
  • Hi Paul, 
    It's complaining that the UART0 interrupt handler was defined twice. 
    Could you do a full search (Ctrl+Shift+F) and look for "UARTE0_UART0_IRQHandler" ?
    Note that in nrf51_to_nrf52.h file we have a define     #define UART0_IRQHandler        UARTE0_UART0_IRQHandler 
    So if there is a define of UART0_IRQHandler function somewhere else then we will also have a multiple definition. 

    Note that in mesh SDK we also have a serial library called serial_uart.c that you may use. 

Reply
  • Hi Paul, 
    It's complaining that the UART0 interrupt handler was defined twice. 
    Could you do a full search (Ctrl+Shift+F) and look for "UARTE0_UART0_IRQHandler" ?
    Note that in nrf51_to_nrf52.h file we have a define     #define UART0_IRQHandler        UARTE0_UART0_IRQHandler 
    So if there is a define of UART0_IRQHandler function somewhere else then we will also have a multiple definition. 

    Note that in mesh SDK we also have a serial library called serial_uart.c that you may use. 

Children
Related