HAL_ChibiOS: enable stack checking on f303 boards

This commit is contained in:
Andrew Tridgell 2020-11-28 15:20:52 +11:00
parent 573cd6db6d
commit c778d14fd3
2 changed files with 4 additions and 7 deletions

View File

@ -144,4 +144,7 @@ RAM_RESERVE_START 256
env ROMFS_UNCOMPRESSED True
# reduce the number of CAN RX Buffer
define HAL_CAN_RX_QUEUE_SIZE 32
define HAL_CAN_RX_QUEUE_SIZE 32
# disable stack checking to reduce flash cost
define CH_DBG_ENABLE_STACK_CHECK FALSE

View File

@ -821,12 +821,6 @@ def write_mcu_config(f):
if env_vars.get('ROMFS_UNCOMPRESSED', False):
f.write('#define HAL_ROMFS_UNCOMPRESSED\n')
if 'AP_PERIPH' in env_vars:
f.write('''
#define CH_DBG_ENABLE_STACK_CHECK FALSE
''')
def write_ldscript(fname):
'''write ldscript.ld for this board'''
flash_size = get_config('FLASH_USE_MAX_KB', type=int, default=0)