Browse Source

HAL_ChibiOS: enable stack checking on f303 boards

c415-sdk
Andrew Tridgell 4 years ago
parent
commit
c778d14fd3
  1. 3
      libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.dat
  2. 6
      libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

3
libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.dat

@ -145,3 +145,6 @@ env ROMFS_UNCOMPRESSED True @@ -145,3 +145,6 @@ env ROMFS_UNCOMPRESSED True
# reduce the number of CAN RX Buffer
define HAL_CAN_RX_QUEUE_SIZE 32
# disable stack checking to reduce flash cost
define CH_DBG_ENABLE_STACK_CHECK FALSE

6
libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

@ -821,12 +821,6 @@ def write_mcu_config(f): @@ -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)

Loading…
Cancel
Save