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

CortexM4:How to change the entrypoint by binary file data in the program

Hello.

There is an executable file built by setting the address of the entry point (RO_Base) to 0x00000000 with Keil's linker setting.

I converted this executable file into plain binary format data using "fromelf - bin" command.

This binary data is loaded into the memory  without using the debugger.

Although installing in memory 0x00000000 will work without problems, setting it to 0x00010000 does not work well.

When binary data built by setting 0x00010000 at entry point is installed in memory 0x00010000, it works.

Is there a way to rewrite the binary data created with entry point 0x00000000 to 0x00010000 in the C program or Assembler?