Skip to content

Commit

Permalink
AP_Bootloader: cope with RAM0_START not matching between bl and periph
Browse files Browse the repository at this point in the history
this allows us to stay in bootloader based solely on RTC_BOOT_CANBL
without the RAM0 area matching between bootloader and periph fw

fixes an issue with current bootloaders where the old bl may not match
current RAM0 value
  • Loading branch information
tridge committed Feb 12, 2024
1 parent bb8047c commit 7199cca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tools/AP_Bootloader/AP_Bootloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ int main(void)
}
#endif // AP_CHECK_FIRMWARE_ENABLED
#ifndef BOOTLOADER_DEV_LIST
else if (timeout != 0) {
// fast boot for good firmware
else if (timeout == HAL_BOOTLOADER_TIMEOUT) {
// fast boot for good firmware if we haven't been told to stay
// in bootloader
try_boot = true;
timeout = 1000;
}
Expand Down

0 comments on commit 7199cca

Please sign in to comment.