Openthread and serial uart - merging

I'm trying to merge two projects together, one including openthread while the other is based on the serial example. But I get these errors: 

../../../../../../external/openthread/lib/nrf52840/gcc/libopenthread-nrf52840-sdk.a(alarm.c.o): in function `RTC2_IRQHandler':

../../../../../../external/openthread/lib/nrf52840/gcc/libopenthread-nrf52840-transport.a(uart.c.o): in function `UARTE0_UART0_IRQHandler':

I tried some troubleshooting myself, but no solution. I Have followed for the most part this thread -https://devzone.nordicsemi.com/f/nordic-q-a/80597/uart-with-openthread

I'm using UART1 so UART0 should be available for openthread.

Parents
  • Hi,

    If you configure nrf_serial to use UARTE1, there should not be any compatibility issues with the OpenThread stack that uses UART0, just make sure that you disable UART0 for the UART driver in your sdk_config.h file (UART0_ENABLED and NRFX_UART0_ENABLED set to 0).

    I'm not sure where the conflict with RTC2 is coming from, as nrf_serial should use app_timer (RTC1) for timeouts. Can you check the full build output, which should tell you both locations of the conflict?

    That said, I would recommend you to look into using libUARTE instead of nrf_serial. nrf_serial is deprecated and removed in nRF5 SDK v17.x.x, and is generally not as mature and feature complete as libUARTE.

    Best regards,
    Jørgen

Reply
  • Hi,

    If you configure nrf_serial to use UARTE1, there should not be any compatibility issues with the OpenThread stack that uses UART0, just make sure that you disable UART0 for the UART driver in your sdk_config.h file (UART0_ENABLED and NRFX_UART0_ENABLED set to 0).

    I'm not sure where the conflict with RTC2 is coming from, as nrf_serial should use app_timer (RTC1) for timeouts. Can you check the full build output, which should tell you both locations of the conflict?

    That said, I would recommend you to look into using libUARTE instead of nrf_serial. nrf_serial is deprecated and removed in nRF5 SDK v17.x.x, and is generally not as mature and feature complete as libUARTE.

    Best regards,
    Jørgen

Children
Related