NCS 2.6.0 Low-Power

My chip is battery powered, so I need very low power, and when I try to play with the code, the PPK2 device always gets weird spikes.

prj.conf

CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y

overlay

main.c

I have no idea how I would change this, even though I have completely commented out all the code that could be commented.

When I try to recreate a new empty program, the spike is gone, but if I change the device tree file and the CONFIG file based on it, it happens again, even if I comment it out again.

When I use bare-metal applications (without zephyr), this doesn't happen.

Parents
  • Hello,

    The LFRC source is calibrated periodically against the HFXO to acheive 500 ppm accuracy required for BLE. Calibration can be turned off by adding CLOCK_CONTROL_NRF_K32SRC_RC_CALIBRATION=y to your prj.conf file.

    Also, you should remove the while loop you have in main() to allow the idle thread to run. The idle thread will call __WFE() to allow the chip to enter System ON (sleep).

    Best regards,

    Vidar

Reply
  • Hello,

    The LFRC source is calibrated periodically against the HFXO to acheive 500 ppm accuracy required for BLE. Calibration can be turned off by adding CLOCK_CONTROL_NRF_K32SRC_RC_CALIBRATION=y to your prj.conf file.

    Also, you should remove the while loop you have in main() to allow the idle thread to run. The idle thread will call __WFE() to allow the chip to enter System ON (sleep).

    Best regards,

    Vidar

Children
Related