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
SRAM will hold whatever random value that the device will hold after power is applied. One doesn't have to "initialize" SRAM anyhow. SDRAM, requires an init. sequence before it can be used. If this is C related, all file scoped variables are either zeroed by the C run-time (.bss) or set to a particular value by the C run-time (.data). Automatic variables are indeterminate and should always be set before use.