I’m having trouble getting a locally compiled program to flash OTA, so I was hoping to get a better understanding of how the whole flash/bootloader system worked. Anybody mind giving an explanation?
Specific things I was wondering:
- when you build apps from the user folder in the firmware tree and flash them, does it also flash a new version of the firmware?
- if so, how does the bootloader check for valid firmware? I looked through the bootloader source, and saw the checks for 0x0005 or 0x0055 written to the backup register to determine validity, but don’t understand the checks that cause those to be written or not