mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
AP_HAL_ChibiOS: Copy vector table to RAM if external flash is primary
This commit is contained in:
parent
84ccd046c6
commit
0c93800ec1
@ -264,6 +264,10 @@ endif
|
|||||||
# Define ASM defines here
|
# Define ASM defines here
|
||||||
UADEFS =
|
UADEFS =
|
||||||
|
|
||||||
|
ifeq ($(COPY_VECTORS_TO_RAM),yes)
|
||||||
|
UADEFS += -DCRT0_INIT_VECTORS=1
|
||||||
|
endif
|
||||||
|
|
||||||
# List all user directories here
|
# List all user directories here
|
||||||
UINCDIR =
|
UINCDIR =
|
||||||
|
|
||||||
|
@ -1363,6 +1363,7 @@ INCLUDE common_mixf.ld
|
|||||||
''' % (flash_base, flash_length, ext_flash_base, ext_flash_length, ram0_start, ram0_len))
|
''' % (flash_base, flash_length, ext_flash_base, ext_flash_length, ram0_start, ram0_len))
|
||||||
else:
|
else:
|
||||||
self.env_vars['HAS_EXTERNAL_FLASH_SECTIONS'] = 1
|
self.env_vars['HAS_EXTERNAL_FLASH_SECTIONS'] = 1
|
||||||
|
self.build_flags.append('COPY_VECTORS_TO_RAM=yes')
|
||||||
f.write('''/* generated ldscript.ld */
|
f.write('''/* generated ldscript.ld */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user