InfiniTimeOrg / pinetime-mcuboot-bootloader

An open source bootloader for the PineTime based on MyNEWT and MCUBoot.
Apache License 2.0
68 stars 18 forks source link

Higher consumption on nRF52832 when boot from mcuboot #8

Open nanch opened 3 years ago

nanch commented 3 years ago

Moving this issue from https://github.com/lupyuen/pinetime-rust-mynewt/issues/36

Lup doesn't work on mcuboot anymore and his repo isn't the right place for this issue.

@vbelloir says:

I'm working with @JF002 on power consumption of Pinetime watch, using Infinitime from JF.

I noticed that consumption is higher when Infinitime is booted by mcuboot than when it is stand-alone. Difference is about 500µA.

As a example, I disabled watchdog in bootloader, and add a simple __WFE loop in main function of Infinitime. Booting from mcuboot gives a consumption of 574µA, while booting in stand-alone configuration gives 170µA.

Resources may be used in mcuboot/mynewt and not de-initialized in mcuboot, nor in Infinitime.

Do you have any idea for me? How can I identify which resource is consuming power?

Thanks for your help. Vincent

nanch commented 3 years ago

I'm investigating this and will report any findings.