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

global variable initialization

Hello

I got a application for a Cortex-m0 device.

the application has no entry point, so no main().
This is the way it was designed.

In a way the application does what is supposed to do, but now my problem.
I got a few global variables, but they don't get initialized the way i want them to.

When i do add the main function and call that from my startup.s file it does work fine.
I read something about scatter loading has something to do with it.

Can someone maybe explain how this works?
Or just help with the initialization of the global variables.

Thank you!

Martijn

0