do you have an example of how to setup the linker file to start at address:
APP_START_ADDRESS = 0x00020000
so it can be compiled and downloaded using a bootloader
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
do you have an example of how to setup the linker file to start at address:
APP_START_ADDRESS = 0x00020000
so it can be compiled and downloaded using a bootloader
If you take the standard sys_link.cmd generated by HALCoGen and then modify the MEMORY section to move the start of the VECTORS and FLASH0 sections up by 0x20000 and decrease the size of FLASH0 by 0x20000.
MEMORY
{
VECTORS (X) : origin=0x00020000 length=0x00000020
FLASH0 (RX) : origin=0x00020020 length=0x0015FFE0
FLASH1 (RX) : origin=0x00180000 length=0x00180000
STACKS (RW) : origin=0x08000000 length=0x00001500
RAM (RW) : origin=0x08001500 length=0x0003EB00
}
The boot loader then would handle reset by branching to location 0x20000. The instruction at that location is a branch instruction to the beginning of your application code.