From 2df0a71a4bb84c9a760cdfc3bfe493855c2091ea Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 7 Jun 2018 17:41:28 +1000 Subject: [PATCH] HAL_ChibiOS: fixed flash load address in hwdef.h --- libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index ae97a4ec97..58cf90ad15 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -413,7 +413,7 @@ def write_mcu_config(f): flash_reserve_start = get_config( 'FLASH_RESERVE_START_KB', default=16, type=int) f.write('\n// location of loaded firmware\n') - f.write('#define FLASH_LOAD_ADDRESS 0x%08x\n' % flash_reserve_start) + f.write('#define FLASH_LOAD_ADDRESS 0x%08x\n' % flash_reserve_start*1024) f.write('\n') ram_size_kb = get_mcu_config('RAM_SIZE_KB', True)