Configure Mynewt for SPI Flash
(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 ( ) 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.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye

Messages In This Thread
Configure Mynewt for SPI Flash - by lupyuen - 05-14-2020, 06:18 PM
RE: Configure Mynewt for SPI Flash - by danielt - 05-15-2020, 05:36 AM
RE: Configure Mynewt for SPI Flash - by lupyuen - 05-15-2020, 04:29 PM
RE: Configure Mynewt for SPI Flash - by danielt - 05-16-2020, 03:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Article: Bluetooth Time Sync and LVGL on PineTime Mynewt lupyuen 0 931 10-15-2020, 05:51 PM
Last Post: lupyuen
  FreeRTOS, RIOT, Mynewt and wasp-os Firmware now auto-building with GitHub Actions lupyuen 1 1,469 08-01-2020, 09:10 AM
Last Post: lupyuen
  Article: Porting MicroPython and wasp-os to Mynewt on PineTime lupyuen 0 1,061 06-03-2020, 07:07 PM
Last Post: lupyuen

Forum Jump:

Users browsing this thread: 1 Guest(s)