From 33529c98a925c54b1af07cd1ccbd3e00160f9ad8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 5 Oct 2021 16:36:47 +1100 Subject: [PATCH] HAL_ChibiOS: check the ROMFS line for IOMCU is added --- libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index b99d51be78..76490cf191 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -1391,6 +1391,9 @@ def write_UART_config(f): (devnames[idx], devnames[idx])) if 'IOMCU_UART' in config: + if not 'io_firmware.bin' in romfs: + error("Need io_firmware.bin in ROMFS for IOMCU") + f.write('#define HAL_WITH_IO_MCU 1\n') idx = len(uart_list) f.write('#define HAL_UART_IOMCU_IDX %u\n' % idx)