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

Initialization of the application

I am actually using the default __main function in the Startup.s file, but i would like to replace it by creating my own __main than branches to __rt_entry.
How can i define it? how to branch it to __rt_entry ?

  • Pretty sure you'd need to IMPORT the symbol and jump to it, and have enough dependencies so it doesn't dead-code eliminate the functions and load region tables, etc.

    I know I've used __scatterload in a project where I had no main() function.