This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

creating .hex for bootloader with cubeMX-Project

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

Parents
  • 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

Reply
  • 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

Children
No data