nrfx_uarte tx_rx_non_blocking not work (nRF5340)

I'm just trying this sample: nrfx_uarte tx_rx_non_blocking, but this is what I can see in the terminal. Why those errors?

[00:00:00.253,479] <inf> NRFX_EXAMPLE: Starting nrfx_uarte non-blocking example.

[00:00:00.261,322] <inf> NRFX_EXAMPLE: Content of TX buffer: Nordic Semiconductor

[00:00:00.261,352] <inf> NRFX_EXAMPLE: Content of RX buffer:

[00:00:00.275,421] <inf> NRFX_EXAMPLE: UARTE event: 3

ASSERTION FAIL [p_cb->state == NRFX_DRV_STATE_INITIALIZED] @ WEST_TOPDIR/modules/hal/nordic/nrfx/drivers/src/nrfx_uarte.c:1628

[00:00:00.275,970] <err> os: r0/a1:  0x00000004  r1/a2:  0x0000065c  r2/a3:  0x00000002

[00:00:00.275,970] <err> os: r3/a4:  0x00000000 r12/ip:  0x00000014 r14/lr:  0x000077d1

[00:00:00.276,000] <err> os:  xpsr:  0x69000000

[00:00:00.276,000] <err> os: Faulting instruction address (r15/pc): 0x0000ade2

[00:00:00.276,031] <err> os: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0

[00:00:00.276,062] <err> os: Current thread: 0x20000860 (unknown)

Parents
  • Hello Maria, thank you very much.

  • Hello,

    I hope the workaround is working for you, because the sample not be updated. The reason for this is that we recommend using Zephyr APIs and not nrfx directly. You can read about the available Zephyr APIs for UART here.

    Just to be clear: The nrfx drivers will be updated when needed, but the examples will not.

    Best regards,

    MAria

  • Hello, I moved the nrfx_uarte_ininit function at the end of the main and it works. Thank you for your clarification. Marika

Reply Children
No Data