HAL_ChibiOS: enable ISRs during flash ops in bootloader

this makes a huge difference in AP_Periph bootloader speeed, where
disabling interrupts prevents CAN packets from being received
This commit is contained in:
Andrew Tridgell 2023-09-01 19:55:47 +10:00
parent f353ae4933
commit fbd44dddd0
1 changed files with 1 additions and 0 deletions

View File

@ -1258,6 +1258,7 @@ class ChibiOSHWDef(object):
#ifndef CH_CFG_USE_DYNAMIC
#define CH_CFG_USE_DYNAMIC FALSE
#endif
#define STM32_FLASH_DISABLE_ISR 0
''')
if not self.env_vars['EXT_FLASH_SIZE_MB'] and not args.signed_fw:
f.write('''