From b49a7da32aedb38fac160e533b86ccfc8c46b050 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 18 Jan 2024 10:45:59 +1100 Subject: [PATCH] hwdef: disable use of external flash in PPPGW we cannot upload new firmware on CAN or network with external flash --- libraries/AP_HAL_ChibiOS/hwdef/include/network_PPPGW.inc | 3 +++ libraries/AP_HAL_ChibiOS/hwdef/include/network_bootloader.inc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/include/network_PPPGW.inc b/libraries/AP_HAL_ChibiOS/hwdef/include/network_PPPGW.inc index a0188bc94f..c49bfa387c 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/include/network_PPPGW.inc +++ b/libraries/AP_HAL_ChibiOS/hwdef/include/network_PPPGW.inc @@ -19,3 +19,6 @@ define AP_FILESYSTEM_ROMFS_ENABLED 1 define AP_PARAM_DYNAMIC_ENABLED 1 ROMFS_DIRECTORY Tools/AP_Periph/Web + +# we don't want to use external flash with network bootloader +EXT_FLASH_SIZE_MB 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/include/network_bootloader.inc b/libraries/AP_HAL_ChibiOS/hwdef/include/network_bootloader.inc index 4b886896bf..67dbc2df63 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/include/network_bootloader.inc +++ b/libraries/AP_HAL_ChibiOS/hwdef/include/network_bootloader.inc @@ -15,5 +15,8 @@ define AP_NETWORKING_ENABLED 1 ROMFS_WILDCARD Tools/AP_Bootloader/Web/*.html env ROMFS_UNCOMPRESSED True +# we don't want to use external flash with network bootloader +EXT_FLASH_SIZE_MB 0 + # don't combine sdcard bl and network bl undef AP_BOOTLOADER_FLASH_FROM_SD_ENABLED