nrf52840 low power pwm in nRF Connect SDK

There is a low power pwm in nRF5 SDK. I can not find it in the nRF Connect SDK. Any suggestion how to achieve the same using nRF Connect SDK? 

  •   thank you very much for taking the time and checking it on your end.

    Can you double check that the overlay files are used?

    The app.overlay is used - without it I get a build break as the pwm_led1 is undefined.

    If they are, then you should see that CONFIG_PWM_NRF5_SW=y in build/zephyr/.config

    I see CONFIG_PWM_NRF5_SW=y in build/zephyr/.config:

    As you can see I have set CONFIG_PWM_LOG_LEVEL_DBG=y to mimic your settings. I still see the same "error":

    At this point I will assume this is a minor issue related to VS Code and how it does the on the fly parsing. I will try to update to nRF Connect SDK 2.2.0 during the weekend and let you know if it changes something.

    BTW - is there a way to add an offset between PWM cannel 0 and PWM channel 1? I have seen some discussions how to do in the legacy nRF5 SDK, but I do not know how to do it in Zephyr using nRF Connect SDK.

  • Hi,

    pmochocki said:
    At this point I will assume this is a minor issue related to VS Code and how it does the on the fly parsing.

    Yes, that seems likely (although it is a bit strange that I don't see the same on my end).

    pmochocki said:
    BTW - is there a way to add an offset between PWM cannel 0 and PWM channel 1? I have seen some discussions how to do in the legacy nRF5 SDK, but I do not know how to do it in Zephyr using nRF Connect SDK.

    There is no direct support for that. It might be possible to achieve it somehow, but I am not able to suggest anything specific.

  • I will try to update to nRF Connect SDK 2.2.0 during the weekend and let you know if it changes something.

    Just FYI. I have updated the nRF Conncet SDK to version 2.2.0. I have created the project again and I do not see this strange "error" anymore.

Related