Code LPCxpresso write flash specific address

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Code LPCxpresso write flash specific address

1,030 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by marcossmart on Tue Jan 15 06:09:42 MST 2013
how do I write to a specific address using C code? LPCXPRESSO in, for example want to write 0x01 at address 0x7F00 the flash.
0 Kudos
Reply
4 Replies

990 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by whitecoe on Wed Jan 16 06:11:29 MST 2013
If you try doing a search for something like "fixed flash" using the sticky post at the top of the thread list, you'll find quite a few previous threads on this area. For example:

http://knowledgebase.nxp.com/showthread.php?t=1682

HTH!
0 Kudos
Reply

990 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by marcossmart on Wed Jan 16 05:53:45 MST 2013
I'm not talking about IAP, want the code in C LPCXPRESSO set a fixed value in memory Fash, set the value 0x01 at address 0x7F00.
In the pic (microchip) I wore org0x7F00 DE 0x01, want to know what is the equivalent command in LPCXPRESSO.

MCU: LPC1114.
0 Kudos
Reply

990 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by serge on Wed Jan 16 00:32:17 MST 2013
Which MCU?
Flash is NOT eeprom!
Flash has a limited number of write cycles.
Flash has to be erased in blocks.

Look at the IAP commands for your MCU. The user manual is your friend :rolleyes:
0 Kudos
Reply

990 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by marcossmart on Tue Jan 15 15:24:50 MST 2013
Anyone know?
I reserve the memory and put the command below but does not record the flash.

__attribute__((section (".mem2"))) const unsigned char byteTest = 'w';

id="MFlash32" edited="true" size="0x8000" location="0x0" derived_from="Flash"/
id="RamLoc8" edited="true" size="0x2000" location="0x10000000" derived_from="RAM"
id="mem2" edited="true" size="0x100" location="0x7f00" derived_from="Flash"
0 Kudos
Reply