Hello everyone,
I'am trying to create a personnal bootloader on a K64 microcontroller using MCUexpresso 11.2.0.4120 and SDK 2.8.2.
My bootloader application is supposed to copy the new application binary on flash (at adress 0x1000) then jump to the new application address in flash.
I tried to modify the ld file of the flashed application for that the ISR vector begins at the address 0x1000.
(The ld files are generated by MCUexpresso)
You can see clearly on the attached map files that :
- The .isr_vector starts at address 0x00000 for bootloader.map file
- The .isr_vector starts at address 0x10000 for flashapplication.map file
By using the Memory debugger of the MCUexpresso i verified that the binary is flashed correctly (after clearing flash with 0xFF) at the address 0x1000. Theni try to jump to the new application at address 0x1000 it restarts the bootloader application instead of launching the flashed application.
Can enybody check with me the ld files if they are well configured and tell me if there's another method to map the flash memory.
Here is the .ld files attached.
BR,
Ahmed HRABI.