LPUART using interrupt (not async) not working

Hi,

I'm trying to use LPUART in interrupt mode (not async), but I can't get it to work.

I'm using the sample in NCS, which works when using async.

When I uncomment the line in prj.conf to activate the interrupt mode, the power consumption goes way up (around +1 mA).

What am I doing wrong to work with LPUART in interrupt mode ?

Regards

Giuliano

Parents Reply
  • Hello, I tested the LPUART sample with interrupt NCS 2.0.0, nrf5340dk_nrf5340_cpuapp and CONFIG_NRF_SW_LPUART_INT_DRIVEN=y. I measured a current of 94.3 uA, not as low as I expected, but definitely lower than 1 mA. When using the lpuart in async mode, I measured a current of around 94 uA as well. 

    You can see that the communication happen as expected with 600ms between each transfer.

    Here is the sample I used, with build folder attached, so you can compare. I used NCS v2.0.0 and the nRF5340DK v0.11.0. I disabled uart logging and enabled the interrupt driven Kconfig.

    lpuart_test.zip

    Let me know if you get the same result (94uA) or 1mA

    Best regards,

    Simon

Children
No Data
Related