From ae031c4f3f9773cbf8ca37955578b83acf376c2f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 18 Jan 2024 10:42:47 +1100 Subject: [PATCH] AP_Bootloader: prevent external flash in DroneCAN bootloader --- Tools/AP_Bootloader/can.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/AP_Bootloader/can.cpp b/Tools/AP_Bootloader/can.cpp index ad92aa41e7..0026ffc9c5 100644 --- a/Tools/AP_Bootloader/can.cpp +++ b/Tools/AP_Bootloader/can.cpp @@ -63,6 +63,10 @@ static ChibiOS::CANIface can_iface[HAL_NUM_CAN_IFACES]; #define CAN_APP_NODE_NAME "org.ardupilot." CHIBIOS_BOARD_NAME #endif +#ifdef EXT_FLASH_SIZE_MB +static_assert(EXT_FLASH_SIZE_MB == 0, "DroneCAN bootloader cannot support external flash"); +#endif + static uint8_t node_id_allocation_transfer_id; static uavcan_protocol_NodeStatus node_status; static uint32_t send_next_node_id_allocation_request_at_ms;