File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ OTACloudProcessInterface::State STM32H7OTACloudProcess::flashOTA() {
83
83
storageClean ();
84
84
85
85
// this sets the registries in RTC to load the firmware from the storage selected at the next reboot
86
- STM32H747::writeBackupRegister (RTCBackup::DR0, 0x07AA );
86
+ STM32H747::writeBackupRegister (RTCBackup::DR0, STM32H747OTA::MAGIC );
87
87
STM32H747::writeBackupRegister (RTCBackup::DR1, STM32H747OTA::STORAGE_TYPE);
88
88
STM32H747::writeBackupRegister (RTCBackup::DR2, STM32H747OTA::PARTITION);
89
89
STM32H747::writeBackupRegister (RTCBackup::DR3, _program_length);
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ namespace STM32H747OTA {
26
26
static const uint32_t constexpr STORAGE_TYPE = ((1 << 2 ) | (1 << 5 ) | (1 << 7 ));
27
27
/* Default OTA partition */
28
28
static const uint32_t constexpr PARTITION = 2 ;
29
+ /* OTA Magic number */
30
+ static const uint32_t constexpr MAGIC = 0x07AA ;
29
31
}
30
32
31
33
class STM32H7OTACloudProcess : public OTADefaultCloudProcessInterface {
You can’t perform that action at this time.
0 commit comments