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.

Compiler not complaining about RAM usage [possible bug?]

I am using the technique of creating a big variable (2 MB) and managing its space implementing some malloc functions by myself, to
dynamically give ram addresses.

I didn't know how big the ram space in my board (F5529) is, but I wanted to make sure the code worked so I expanded it to 4MB. Suddenly,
I could not debug. No compiler errors, no new warnings. Created a new project with the same files but had the same problem, the program
was not going through the main function, not even the first line.


I then guessed it was my code's fault. I changed it back to 2MB and can debug now. I suppose that the initialization code executed before my
main function aborted the execution or something like that.

I would like someone to confirm this and ask why the compiler is not throwing any error/warnings.

Thank you.