HAL_ChibiOS: set FLASH_RESERVE_START_KB in the environment

used to correctly setup an intel hex file
This commit is contained in:
Andrew Tridgell 2018-06-23 14:54:02 +10:00
parent 1c807e0078
commit e868a4fe8b

View File

@ -455,6 +455,8 @@ def write_ldscript(fname):
flash_reserve_start = get_config(
'FLASH_RESERVE_START_KB', default=16, type=int)
env_vars['FLASH_RESERVE_START_KB'] = str(flash_reserve_start)
# space to reserve for storage at end of flash
flash_reserve_end = get_config('FLASH_RESERVE_END_KB', default=0, type=int)