AnsweredAssumed Answered

pre set values in sram

Question asked by pirie.russell on Jan 26, 2013
Latest reply on Jan 26, 2013 by Clive One
I want to add some features to my program where it remembers some settings, i want to do this by storing the values in the sram.

But when i upload the firmware to the stm32 i need these values to be preset to a certain value. is this possible? (upload is done by dfu on my project)

When you upload the firmware to a fresh stm32 micro-controller is all the sram already set to 0x0 by default?(from the factory). If i do a simple check to see if its 0x0 and if it is just set my default value. but if not 0x0 leave it alone (already been set by previous init). would this work?

Any advice would be appreciated.

Thanks :)

Outcomes