-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Higher consumption on nRF52832 when boot from mcuboot #36
Comments
Is it possible that the SPI Flash is consuming the extra power? Remember that MCUBoot starts the SPI Flash Driver to render the boot logo to the display. Might be good to power off SPI Flash after rendering the boot logo. |
I don't really. I can make a try. I was also asking myself if semihosting in mynewt, or serial log in mcuboot were or not activated. I will see if I managed to deinit SPI flash, and keep you in touch. |
Yep thanks 🙂 |
Hi @lupyuen, I opened same issue in mcuboot repo : But I don't really know how to implement answers I was given. |
DO you know how I can change mcuboot to point on nrfconnect fork? |
Sorry not sure about that. Could you post the question to the Mynewt or MCUBoot community on Slack? |
That's ok, I found how to do that:
And perform a newt upgrade
Now, I good error during compilation.
EDIT : manage to build project, deleting this variable. Quite ugly, but it works. |
I tried to to back port this commit : nrfconnect/sdk-mcuboot@18a0a8a And especially the function I put this back port at startup of Infinitime , in main function. You can find my work in this commit : vbelloir/InfiniTime@f486e4f Do you think that I should do this in bootloader instead? Thanks. |
Sorry I'm tied up with LoRa on BL602, I won't be able to help right now. I hope you're updating the new repo for PineTime Bootloader? |
A savings of 500µA for managing the SPI flash sounds like a great win! @vbelloir How are you measuring the current draw? I'd like to investigate this further. Also, what's the compile error you're getting when you deactivate spi with nrf_drv_spi_uninit? |
Hi @nanch , I don't really remember the compile error I had. |
hi @nanch, |
Hi @lupyuen,
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
The text was updated successfully, but these errors were encountered: