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

Storing data into flash memory ?


  • Please log in to reply
12 replies to this topic

#1 Pascal Auclair

Pascal Auclair

    New Member

  • Members
  • Pip
  • 2 posts
  • LocationFrance (Nmes)

Posted 07 December 2011 - 05:11 PM

Hello, I would like to save (and restore on power on) a data (Int32) into Flash memory (calibration factor)(I don't want to use an extern eeprom). In principle, it would be possible with using "ExtendedWeakReference" class but I failed to do (with Netduino mini). Is there somebody to help me to do that ? Best regards Pascal

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 07 December 2011 - 08:47 PM

Hi toto3030, We're looking at implementing this in a future firmware update. We're still sorting out whether or not we can fit it in, but there's a new "simple storage" feature down in the .NET MF 4.2 source which we could write code to expose... Chris

#3 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 12 December 2011 - 09:28 PM

I would very much like to see this, as I gather this would be a nice way to store various app specific config data between power cycles.

#4 Raidah

Raidah

    New Member

  • Members
  • Pip
  • 1 posts

Posted 05 January 2012 - 02:05 AM

Hi toto3030,

We're looking at implementing this in a future firmware update. We're still sorting out whether or not we can fit it in, but there's a new "simple storage" feature down in the .NET MF 4.2 source which we could write code to expose...

Chris


Now that the .NET MF 4.2 RTM is out can you elaborate on this feature? Any links to samples or documentation? Did the feature make it to RTM?

#5 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 06 January 2012 - 08:38 AM

Hi Raidah, The core internals of the Simple Storage feature made it into the core .NET MF 4.2 RTM PK. Once we get some more bug fixes checked in and move the Netduino 4.2 firmware to 4.2 RTM as well, we'll see if we can fit this feature on the board. .NET MF 4.2 takes more room than 4.1, so we're not totally sure what will and won't fit yet. Chris

#6 dx9s

dx9s

    Member

  • Members
  • PipPip
  • 12 posts

Posted 17 March 2012 - 07:38 PM

I assuming the the "simple storage" isn't unique to Netduino Mini but will be available across all three platforms?! Is there a better place one can read up on changes between 4.1 and 4.2 ? Is 4.2 available for general public yet? I have a (small) list of questions being a new owner of a Netduino and this is one of them. I understand that in order to implement this (self flash-erase and write) is more a technical topic. I suspect the implementation would require a compile time option -- how much code ROM to set aside for "EEPROM" like functions at compile time. I suspect it is connected to the block size of the flash erase operation (and without knowing the ARM7 instructions and flash-erase instructions, it could be 4 bytes, or as big as 64KB). Erasing ONE byte really means reading the whole block, flash erasing it, modifying the one byte you want and writing the whole block back. All of those flash block operations "exposed" in some C# library is not difficult, but it requires design decisions. Thanks in advance.

#7 Nizze

Nizze

    Member

  • Members
  • PipPip
  • 12 posts

Posted 04 October 2013 - 01:47 PM

Hi 

 

Are there any news about this issue  ??

 

I would also be glad if i could write some data to "eeprom" . 

 

// Nizze



#8 cys

cys

    Advanced Member

  • Members
  • PipPipPip
  • 113 posts
  • LocationSoCal

Posted 06 October 2013 - 06:45 PM

I write data to an [color=rgb(51,51,51);font-family:Arial, 'MS Sans Serif', Geneva, sans-serif;]AT45DB161D [/color]chip that I get from Spark Fun.



#9 Nizze

Nizze

    Member

  • Members
  • PipPip
  • 12 posts

Posted 07 October 2013 - 11:08 AM

I write data to an [color=rgb(51,51,51);font-family:Arial, 'MS Sans Serif', Geneva, sans-serif;]AT45DB161D [/color]chip that I get from Spark Fun.

Hi 

Sound great !

Do u have any code that u want to share ??

Reading and writing . 

 

Br 

 

Nizze



#10 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 07 October 2013 - 05:48 PM

Hi Nizze,

I have been using a Fujitsu MB85RC6464K (8 K 8) Bit I2C FRAM.

http://www.digikey.c...d=0&pageSize=25

This memory is fast like SRAM, but non-volatile. It is basically like EEPROM, but better,

http://www.fujitsu.c...Overview_BR.pdf

The larger ones get a bit pricy. I have a Visual Basic program for the Mini that I can upload if you are interested. It stores/retrieves variables by name and also logs data by timestamp.



#11 cys

cys

    Advanced Member

  • Members
  • PipPipPip
  • 113 posts
  • LocationSoCal

Posted 08 October 2013 - 03:20 AM

There is code on the ghi site for the [color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;background-color:rgb(247,247,247);][color=rgb(51,51,51);font-family:Arial, 'MS Sans Serif', Geneva, sans-serif;]AT45DB161D [/color][/color][color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;background-color:rgb(247,247,247);]chip, and at least one example on this site.[/color]



#12 Nizze

Nizze

    Member

  • Members
  • PipPip
  • 12 posts

Posted 08 October 2013 - 01:01 PM

Hi Nizze,

I have been using a Fujitsu MB85RC6464K (8 K 8) Bit I2C FRAM.

http://www.digikey.c...d=0&pageSize=25

This memory is fast like SRAM, but non-volatile. It is basically like EEPROM, but better,

http://www.fujitsu.c...Overview_BR.pdf

The larger ones get a bit pricy. I have a Visual Basic program for the Mini that I can upload if you are interested. It stores/retrieves variables by name and also logs data by timestamp.

Hi 

 

I do not need to store any bigger amount of data. 

And sample code is always welcome to save some hours behind the screen...

I need to store ~100 Bytes

 

Br

 

Nizze 



#13 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 08 October 2013 - 07:40 PM

Here is the download link,

https://www.dropbox....6zsv/Dd3fTmwMZa

I used the I2C code from here,

http://forums.netdui...90&fromsearch=1






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.