mirror of https://github.com/ArduPilot/ardupilot
Tools: Change erase sectors size
Stm32L4r5 flash has 512 sectors in dual bank configuration -tested
This commit is contained in:
parent
533bc504c1
commit
7d23e14f85
|
@ -630,7 +630,7 @@ bootloader(unsigned timeout)
|
|||
led_set(LED_OFF);
|
||||
|
||||
// erase all sectors
|
||||
for (uint8_t i = 0; flash_func_sector_size(i) != 0; i++) {
|
||||
for (uint16_t i = 0; flash_func_sector_size(i) != 0; i++) {
|
||||
#if defined(STM32F7) || defined(STM32H7)
|
||||
if (!flash_func_erase_sector(i, c == PROTO_CHIP_FULL_ERASE)) {
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue