Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Writing to onboard flash


  • Please log in to reply
3 replies to this topic

#1 pugtech

pugtech

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationScotts Valley, CA

Posted 28 October 2011 - 05:05 AM

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

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

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 pugtech

pugtech

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationScotts Valley, CA

Posted 28 October 2011 - 07:46 AM

Is simple storage part of RC3?

#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 28 October 2011 - 08:20 AM

Is simple storage part of RC3?

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.

[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

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.