We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello! Here is a general question that probably doesn't have a definite answer: What data does memory (static RAM) hold if it never was initialized? What I mean is if the controller boards (with external S-RAM) are manufactured, then a software is loaded that doesn't access parts of the RAM, is it possible to "know" what data one would find there before writing to it? A couple of tests with different boards gave me always $FF for every memory location never initalized, but I am not sure if one could count on this. Might also depend on the manufacturer of the RAM... maybe? Thanks for any help Holger
The content of SRAM after powerup is udefined - that is, it could be anything, and it doesn't have to be repeatable or predictable. This is why embedded code must never use a variable before it has been initialised (whether explicitly in your code, or by your startup routines).