diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2017-05-08 16:16:14 -0700 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2017-05-16 12:34:21 -0700 |
commit | a1efb7f2ebf90307a692a1f54a03bd14714371f5 (patch) | |
tree | 9450f3ce2068f26291a2813732d51be589900de2 /examples/imx7_colibri_m4/demo_apps/hello_world/armgcc/CMakeLists.txt | |
parent | 9206d2483dd242cd4973c7d8845f2be4f44ff60b (diff) |
use OCRAM_S for interrupt vectors by default
The Cortex-M4 core starts executing at 0x00000000, which is OCRAM_S.
So far the bootloader (bootaux) copied the reset vector and the initial
stack pointer to that location, however, this does not work well when
using debuggers. Also, newer U-Boot support elf loading, which allow to
load the reset vector directly to the right location. It also safes some
bytes in the area where the firmware is stored.
This basically mandantes to use elf files since bin firmware files can
not be sparse... Hence disable building bin files by default.
Preserve the old linker files with _bin extension in case bin files are
still preferred.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'examples/imx7_colibri_m4/demo_apps/hello_world/armgcc/CMakeLists.txt')
-rw-r--r-- | examples/imx7_colibri_m4/demo_apps/hello_world/armgcc/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/imx7_colibri_m4/demo_apps/hello_world/armgcc/CMakeLists.txt b/examples/imx7_colibri_m4/demo_apps/hello_world/armgcc/CMakeLists.txt index 287e9f8..3942552 100644 --- a/examples/imx7_colibri_m4/demo_apps/hello_world/armgcc/CMakeLists.txt +++ b/examples/imx7_colibri_m4/demo_apps/hello_world/armgcc/CMakeLists.txt @@ -144,4 +144,5 @@ SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Xlinker -Map=${ProjectNa # BIN AND HEX ADD_CUSTOM_COMMAND(TARGET ${ProjectName} POST_BUILD COMMAND ${CMAKE_OBJCOPY} -Oihex ${EXECUTABLE_OUTPUT_PATH}/${ProjectName}.elf ${EXECUTABLE_OUTPUT_PATH}/${ProjectName}.hex) -ADD_CUSTOM_COMMAND(TARGET ${ProjectName} POST_BUILD COMMAND ${CMAKE_OBJCOPY} -Obinary ${EXECUTABLE_OUTPUT_PATH}/${ProjectName}.elf ${EXECUTABLE_OUTPUT_PATH}/${ProjectName}.bin) +# bin does not support sparse memory area, which our default linker file uses... +#ADD_CUSTOM_COMMAND(TARGET ${ProjectName} POST_BUILD COMMAND ${CMAKE_OBJCOPY} -Obinary ${EXECUTABLE_OUTPUT_PATH}/${ProjectName}.elf ${EXECUTABLE_OUTPUT_PATH}/${ProjectName}.bin) |