Hello, I want to place my startup code at different absolute locations to support a bootloader. I was hoping that the RealView assembler will allow something like the below code snippet, that works for the STR7 with a Keil compiler:
AREA STARTUPCODE, CODE, AT CODE_BASE
this piece of code in the startup file is followed by the vector table, where CODE_BASE is the desired address. I checked the latest RealView assembler documentation but it seems that AREA does not support this anymore (which explains my compile time errors...). Do you know how this can be done?
I looked in "RealView® Compilation Tools Version 3.1 Linker and Utilities Guide". Paragraph 5.3.3 describes how to located regions. So, you can use your .sct file to instruct the linker to place sections at specific places. I wonder if that can be done directly via the startup file?
ok; the good news is that each target type in microvision can be configued to have a separate .sct file. So, I can make one for the application, and another one for the boot code.