LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

C Code to store values to flash?

Hello,

 

I have come quite a ways with my MCB2300 eval board. Now, I would like to store one (or a few) values to flash memory and update them periodically throughout running. From all the previous threads on this subject, it seems that an inline C node must be implemented. I was wondering if anybody has succesfully achieved this for the LPC 2378?

 

I have found the LPC_IAP2_512 folder in the Keil directory. There seems to be the coding for the IAP flashing process. I am not versed in C coding, so it is a little difficult for me to try to figure how to implement the code in an inline C call in my VI.

 

 

Again, has anybody figured out how to do this yet? I am looking to simply update a number and retain its last value over power downs.

 

 

Thanks,

 

Mark

 

 

0 Kudos
Message 1 of 2
(5,593 Views)

for the lm3s8962 I have used some code of the luminary site.

Source code for application note AN01267 - "Using Stellaris Microcontrollers Internal Memory to Emulate EEPROM"

http://www.luminarymicro.com/products/LM3S8962.html

 

it's code for emulating EEPROM on the internal flash.

They use functions of flash.h

 

maybe you should look at it for your microcontroller.

 

good luck!

 

Wouter

Wouter.
"LabVIEW for ARM guru and bug destroyer"
0 Kudos
Message 2 of 2
(5,568 Views)