How to use low-power UART demos other than lpuart

Hi all,

  I want to use UART periodically, but because I need to communicate with other standard UART, I cannot use LPUART

I saw that Zephyr's demos all use CONF_SERIAL=y, which has an impact on power consumption

I saw the demo of tx_rx_non-blocking, but there is no option for nrf54l15. I'm not sure if it can be used.

Do you have any simple low-power demos?

Parents
  • Hi

    I recommend that you suspend the UART peripheral when it isn't used as that will decrease the current consumption a lot.

    Set the following configs =y in your prj.conf file:

    CONFIG_PM_DEVICE=y and CONFIG_UART_ASYNC_API=y and add the following to your project to make the application suspend the UART when not in use:

    #include <zephyr/pm/device.h>
    static const struct device* uart_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_console));
    err = pm_device_action_run(uart_dev, PM_DEVICE_ACTION_SUSPEND);

    Best regards,

    Simon

Reply
  • Hi

    I recommend that you suspend the UART peripheral when it isn't used as that will decrease the current consumption a lot.

    Set the following configs =y in your prj.conf file:

    CONFIG_PM_DEVICE=y and CONFIG_UART_ASYNC_API=y and add the following to your project to make the application suspend the UART when not in use:

    #include <zephyr/pm/device.h>
    static const struct device* uart_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_console));
    err = pm_device_action_run(uart_dev, PM_DEVICE_ACTION_SUSPEND);

    Best regards,

    Simon

Children
No Data
Related