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 variables are not initialized

Hi,

For the last couple of years we've been working on an embedded ARM project.
This worked fine all until suddenly out of nowhere global variables are no longer initialized.
The problem happens in C99 code. The C99 project runs in non-protected mode (UM10562 rev.3, page 882).
The program is not doing anything special, it has an "int main(void)" from where everything is happening, no special startup-code.
The code started to fail when a malloc+free was introduced which was removed later on, and then it kept(!) failing (so no more mallocs/frees where in the code!).

What is the cause of this? And how can I resolve it?

regards