This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF Connect SDK undefined reference to nrfx_timer_*

I'm trying to build support for uart async api by adding:

CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y

 to my prj.conf.  Without CONFIG_UART_ASYNC_API the app compiles, but uart_callback_set fails (as expected).  When I add CONFIG_UART_ASYNC_API to get support for CONFIG_UART_ASYNC_API, then the build fails with messages like this:

/opt/nordic/ncs/v1.7.1/toolchain/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.bfd: /Users/denis/sandbox/itamar/workspace/zephyr/drivers/serial/uart_nrfx_uarte.c:530: undefined reference to `nrfx_timer_increment'

Do I need something else to get the nrfx timer support?

Parents
  • Hello,

    I do not get this if I error if I only add the 2 kconfig symbols you mentioned:

    CONFIG_SERIAL=y
    CONFIG_UART_ASYNC_API=y
    But I do if I also add CONFIG_UART_<instance>_NRF_HW_ASYNC=y. Can you check your .conf file if you may have this enabled (<build directory>\zephyr\.conf)?
    Alternatively, add CONFIG_UART_<uarte instance>_NRF_HW_ASYNC_TIMER=<timer instance>. This configuration should pull in the neccessary dependencies for HW byte counting (i.e. enable NRFX_TIMER and NRFX_PPI).
    Best regards,
    Vidar
    Edit:
    Forgot to add that I tested this on the nRF9160, the nRF5340 might have other default settings for the async driver.
Reply
  • Hello,

    I do not get this if I error if I only add the 2 kconfig symbols you mentioned:

    CONFIG_SERIAL=y
    CONFIG_UART_ASYNC_API=y
    But I do if I also add CONFIG_UART_<instance>_NRF_HW_ASYNC=y. Can you check your .conf file if you may have this enabled (<build directory>\zephyr\.conf)?
    Alternatively, add CONFIG_UART_<uarte instance>_NRF_HW_ASYNC_TIMER=<timer instance>. This configuration should pull in the neccessary dependencies for HW byte counting (i.e. enable NRFX_TIMER and NRFX_PPI).
    Best regards,
    Vidar
    Edit:
    Forgot to add that I tested this on the nRF9160, the nRF5340 might have other default settings for the async driver.
Children
No Data
Related