Forum : ARM
Original Post
| Post Information | Post |
|---|---|
|
September 12, 2007 - 11:54am
|
I need technical support for the following: Would like to be able to set the start address of a program at 0x08002000 on a STM32F103RBT6, load the vector table and the program code set next to this address. Can't find proper directive to do that thing. I can’t change the code start address in the PROCESSOR menu using ride7. Is there any ways to do that Thanks a lot Stéph |
Hi Stéphane,
the best recommended way is to create a customized linker script (you can use as a basis the autogenerated scripts and include them into one standalone file) and modify the FLASH line in the MEMORY section that looks like this:
MEMORY { RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 32K FLASHB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0 EXTMEMB0 (rx) : ORIGIN = 0x00000000, LENGTH = 0 EXTMEMB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0 EXTMEMB2 (rx) : ORIGIN = 0x00000000, LENGTH = 0 EXTMEMB3 (rx) : ORIGIN = 0x00000000, LENGTH = 0 }regards
Lionel