flash permanent storage

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

flash permanent storage

582件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tbelo on Fri Oct 18 03:22:42 MST 2013
Hi,
I'm using lpc1115 and my application needs 3 permanent integer values to be stored during programm flow. (weight scaler and are needed for calibration).
I saw some other mcu's  that provide some memory segment A etc.

Do I have any alternatives with the lpc1115 mcu?

Best regards,

ラベル(1)
0 件の賞賛
8 返答(返信)

539件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by darlaflick on Sun Oct 05 04:17:34 MST 2014
Hi.
Excuse me but
LPC_IOCON->R_PIO1_1 &= ~(2<<3); isn't the same of LPC_IOCON->R_PIO1_1 &= ~(0x10); ???

Howeverm I substitute my code with yours but I have PIO1_1 to 3,3V even if I set the pin to low.

I can't understand this behaviour..
0 件の賞賛

539件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tbelo on Wed Oct 23 12:16:25 MST 2013
Finally it isn't as easy as it first appeared!
0 件の賞賛

539件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Mesozoic on Wed Oct 23 10:26:12 MST 2013
Yeah, that's pretty good.  I had to modify the flash_nvol.c file a bit in order to get it working for my LPC11C24 chip, but it works pretty good!
0 件の賞賛

539件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tbelo on Tue Oct 22 08:44:13 MST 2013
Thank you people for your answers.

And the app note is very good!

0 件の賞賛

539件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Paul on Fri Oct 18 07:27:28 MST 2013
You can find an app note with code examples at:
http://www.lpcware.com/content/nxpfile/an11008-flash-based-non-volatile-storage-software
0 件の賞賛

539件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MarcVonWindscooting on Fri Oct 18 06:19:32 MST 2013
I'm sure, someone else provides you with an appnote or similar.

I try to do most things myself. The user manual provides enough information.
In your case I would use sector 12 at 0x0000 C000.
Perform prepare, sector erase, copy RAM-to-FLASH.
Use the smallest block size (256B). Put your data into an array/structure-union temporarily allocated on the stack and do a copy RAM-to-FLASH with that array.
0 件の賞賛

539件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tbelo on Fri Oct 18 05:41:10 MST 2013
Hi,
I wasnt aware of the IAP existence.
I need to (store-update-read) 3 variables. Can you advise an application note or anything ?

0 件の賞賛

539件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MarcVonWindscooting on Fri Oct 18 03:39:24 MST 2013
You can use IAP flash commands for that.

EDIT:

Misread your question.

But why use an alternative? You don't have to erase a page on every update, you can erase a page and write many times to consecutive locations. That way you save many erase cycles which are probably your concern.
I did this some time ago.
0 件の賞賛