This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

POF configuration when using soft device

Hi,

I'm using nrf52840,

I'm using SDK 15.

I can see that in nrf_drv_power_pof_init function only few power setting are allowed - is that true? can I only use those values which are in this function?

Also, is there any clear example dealing with POF?

Thanks,

Lior.

Parents
  • It looks like the underlying softdevice call sd_power_pof_threshold_set supports all the below thresholds as mentioned in nrf_soc.h file

    /**@brief Power failure thresholds */
    enum NRF_POWER_THRESHOLDS
    {
      NRF_POWER_THRESHOLD_V17 = 4UL, /**< 1.7 Volts power failure threshold. */
      NRF_POWER_THRESHOLD_V18,       /**< 1.8 Volts power failure threshold. */
      NRF_POWER_THRESHOLD_V19,       /**< 1.9 Volts power failure threshold. */
      NRF_POWER_THRESHOLD_V20,       /**< 2.0 Volts power failure threshold. */
      NRF_POWER_THRESHOLD_V21,       /**< 2.1 Volts power failure threshold. */
      NRF_POWER_THRESHOLD_V22,       /**< 2.2 Volts power failure threshold. */
      NRF_POWER_THRESHOLD_V23,       /**< 2.3 Volts power failure threshold. */
      NRF_POWER_THRESHOLD_V24,       /**< 2.4 Volts power failure threshold. */
      NRF_POWER_THRESHOLD_V25,       /**< 2.5 Volts power failure threshold. */
      NRF_POWER_THRESHOLD_V26,       /**< 2.6 Volts power failure threshold. */
      NRF_POWER_THRESHOLD_V27,       /**< 2.7 Volts power failure threshold. */
      NRF_POWER_THRESHOLD_V28        /**< 2.8 Volts power failure threshold. */
    };
    

    So this can only mean that nrf_drv_power_pof_init has not implemented the rest of the thresholds. You can add them yourself as the thresholds are already defined in nrf_power.h file. It is just the matter of you extending the switch cases in the function nrf_drv_power_pof_init 

  • Thanks, I saw that in the code, yet is this an official answer from Nordic? can I be positive that those values are supported?

    In the code you can fine this note:

    /* Currently when SD is enabled - the configuration can be changed
             * in very limited range.
             * It is the SoftDevice limitation.
             */

    ???

    Regards,

    Lior.

  • Yes, latest softdevice versions supports it, so modifying library that uses softdevice API should support more values.

Reply Children
No Data
Related