05-16-2020, 03:11 PM
(05-15-2020, 04:29 PM)lupyuen Wrote:(05-15-2020, 05:36 AM)danielt Wrote: Is there any code in your SPINOR code to manage power saving mode? I took a quick look and couldn't see it.
This issue caught me out for wasp-os (https://github.com/daniel-thompson/wasp-...-599203312 ) and it will save debugging later to ensure the wakeup command is issued by mynewt and mcuboot automatically.
Nope sorry :-) My code will mostly be used by the MCUBoot Bootloader, which doesn't have to worry about power issues (I think)
You definitely will need to ensure the SPI NOR FLASH wakeup command is issued by mcuboot before trying to send commands to the flash.
If a payload puts the SPI NOR FLASH into low power mode then mcuboot will not be able to access it after a reset unless it sends the wakeup command first.
Some developers dodge this issue bcause they allow the battery to run out whilst they are working on the watch (which also disables the low poer mode) but others hit it *immediately* because the dev kits come programmed with a firmware that does put the FLASH to sleep. Obviously as the open source firmware's implement better power saving then it will also become an issue for the bootloader.