Skip to content

Commit

Permalink
Update RTC backup register notes
Browse files Browse the repository at this point in the history
Finalize version changeover at v1.20
Use RTC backup register numbers consistent with RM0008
  • Loading branch information
devanlai authored Sep 11, 2021
1 parent 1013c98 commit 3f5f387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The high memory bootloaders do not use the lower part of the flash, so you only
### Switching to the bootloader
The bootloader can be built to look for arbitrary patterns, but the default looks for a magic value stored in the RTC backup registers. Writing the magic value and then resetting will run the bootloader instead of the main application.

In version v1.11 and earlier, the bootloader for STM32F103 targets looks for `0x544F` in RTC backup register 1 and `0x4F42` in RTC backup register 0 (together they spell "BOOT" in ASCII). In the current master branch and any subsequent releases, the bootloader will only use RTC backup register 0 and check for `0x4F42` on targets with 16-bit backup registers and `0x544F4F42` on targets with 32-bit backup registers.
In version v1.11 and earlier, the bootloader for STM32F103 targets looks for `0x544F` in RTC backup register 2 and `0x4F42` in RTC backup register 1 (together they spell "BOOT" in ASCII). From v1.20 on, the bootloader will only use RTC backup register 1 and check for `0x4F42` on targets with 16-bit backup registers and `0x544F4F42` on targets with 32-bit backup registers.

The backup register and bootloader command word can be customized with the `REG_BOOT` and `CMD_BOOT` defines respectively.

Expand Down

0 comments on commit 3f5f387

Please sign in to comment.