From 9bb29aec36d3cf01117024397aefb5a419364550 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 18 Jan 2024 10:43:11 +1100 Subject: [PATCH] AP_Periph: ensure no external flash in periph bootloader protocol cannot support it in its current form --- Tools/AP_Periph/can.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/AP_Periph/can.cpp b/Tools/AP_Periph/can.cpp index d01fcf9f9b..3bd020cd2f 100644 --- a/Tools/AP_Periph/can.cpp +++ b/Tools/AP_Periph/can.cpp @@ -148,6 +148,10 @@ HALSITL::CANIface* AP_Periph_FW::can_iface_periph[HAL_NUM_CAN_IFACES]; SLCAN::CANIface AP_Periph_FW::slcan_interface; #endif +#ifdef EXT_FLASH_SIZE_MB +static_assert(EXT_FLASH_SIZE_MB == 0, "DroneCAN bootloader cannot support external flash"); +#endif + /* * Node status variables */