I need to force a certain function to a fixed address in the code space - so I can jump to this address when required
this is an entry point for an app to jump into the bootloader
I cant seem to find this in your documentation
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I need to force a certain function to a fixed address in the code space - so I can jump to this address when required
this is an entry point for an app to jump into the bootloader
I cant seem to find this in your documentation
Hi Steven,
Your question can be best answered by the compiler forum if my answer does not answer your question. Let me know if you want me to move your post to the compiler forum or you can create a new post there.
I think you can use the #pragma CODE_SECTION. See below example excerpt from the compiler userguide.
#pragma CODE_SECTION(fn, "my_sect") int fn(int x) { return x; }
In the linker command file you can then map the section to a physical address.