danielkucera opened a new issue #2393:
URL: https://github.com/apache/mynewt-core/issues/2393


   Hi,
   
   I'm tuning the low power consumption with nRF52832. I was able to get to 
170uA in System On mode with no modifications to mynewt-core.
   
   But to get to 1.9uA I had to add following patch:
   ```
   diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_os_tick.c 
b/hw/mcu/nordic/nrf52xxx/src/hal_os_tick.c
   index bca24c440..10bc94967 100644
   --- a/hw/mcu/nordic/nrf52xxx/src/hal_os_tick.c
   +++ b/hw/mcu/nordic/nrf52xxx/src/hal_os_tick.c
   @@ -154,6 +154,7 @@ os_tick_idle(os_time_t ticks)
            nrf52_os_tick_set_ocmp(ocmp);
        }
    
   +    NRF_CLOCK->TASKS_HFCLKSTOP = 1;
        __DSB();
        __WFI();
    ```
   
   AFAIK, HFCLK is managed by softdevice but since mynewt is not using it, it 
has to manage HFCLK by itself.
   
   Would you consider adding this to the codebase or is there something I am 
missing?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to