We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi everyone,
I have a problem linking my application to an alternative start-address.
When I create a standard keil project, e.g. a simple LED-toggle program, I can set the base-address to another value in the tagret settings of the project an everything works fine.
But when I do the same with a cubeMX-generated project, the program does not even reach the reset-handler in debugging-mode.
I am pretty confused about that. Do I have to set anything else to another address, e.g. the interrupt vector table? In my understanding, the remapping stuff is done in the SystemInit() that is called from the reset-handler. But I don´t even get there...
thanks for any help.
Joerg
Review the .MAP file to understand where the linker is placing code now.
Review the Target pane of the Project Options, or the scatter file (.sct) in Linker pane, to change where the code is placed. The processor starts execution of FLASH based code at 0x08000000
Review the Output pane to select the creation of a .HEX file.
If you still have code issues, then go to the Debug pane and uncheck "run to main" and debug and step through to SystemInit(), and then __main