Is there a way to write configuration data to onboard flash from within my application? If not, is this an upcoming feature? I remember a previous thread about this but I can't find it.
Thanks...Scott
Writing to onboard flash
Started by pugtech, Oct 28 2011 05:05 AM
3 replies to this topic
#1
Posted 28 October 2011 - 05:05 AM
#2
Posted 28 October 2011 - 07:08 AM
Hi pugtech,
There's a new feature in .NET MF 4.2 named "simple storage" which is designed to meet this requirement. It's more of a framework than a feature, but we're going to see if we can fit it into the firmware and expose a class to let you save/load a bit of data in flash.
If you feel comfortable with a bit of native code interop, you can also write data in the config sector (where your network address is stored) but that could be a bit of a project
Chris
#3
Posted 28 October 2011 - 07:46 AM
Is simple storage part of RC3?
#4
Posted 28 October 2011 - 08:20 AM
Technically, the framework is compiled into RC3. But unless we build and expose a set of native and managed code components, it is just a holding area. We need to expose a class to let you save/load a bit of data in flash.Is simple storage part of RC3?
[Also, .NET MF 4.2 uses new floating-point code. By default it switches the SAM7X micro to emulated floating point so that the image doesn't grow and grow. We may need to switch to the new floating-point code and pull the simple storage framework. But if we have to do that, we'll create a way to save a bit of config data in the Config sector instead.]
These changes were all late-breaking (post-RC1) and we're digging into them...but it will take a bit of work to sort out what we can fit. And as always, it's all open source--so you can customize it any way you'd like if you want to dig in.
But we'll find a good balance that offers the bugfixes and some new features of .NET MF 4.2...while also keeping the size down.
Chris
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users