Difference between revisions of "PineTime bootloader improvements"

Jump to navigation Jump to search
Line 17: Line 17:


== Current memory map ==  
== Current memory map ==  
[[PineTime| Pinetime Devkit0]] is using a nRF52832-QFAA MCU with 512kB flash and a [https://datasheet.lcsc.com/szlcsc/2005251035_XTX-XT25F32BSOIGU-S_C558851.pdf XT25F32B SPI NOR external flash] with 4096kB.
[[File:MemoryMap.png]]
[[File:MemoryMap.png]]


Internal flash:
Internal flash (512Kb):
* Page size is 4Kb
* Bootloader contains the MCUBoot bootloader.  
* Bootloader contains the MCUBoot bootloader.  
* Boot log is currently not used. Can be use to provide reboot logs to the application
* Boot log is currently not used. Can be use to provide reboot logs to the application
Line 25: Line 29:
* Scratch is used by MCUBoot as temporary storage for swap operation
* Scratch is used by MCUBoot as temporary storage for swap operation


External flash:
External flash (4096Kb):
* Bootloader assets : boot logo
* Bootloader assets : boot logo
* OTA : SECONDARY SLOT for MCUBoot. During OTA, this is where the new version of the firmware is stored.
* OTA : SECONDARY SLOT for MCUBoot. During OTA, this is where the new version of the firmware is stored.