EmbDev.net

Forum: ARM programming with GCC/GNU tools in lpc2148, read & write in programme(flash) memory through programme


von Pragati S. (Company: services india) (pragati)


Rate this post
useful
not useful
How to read & write in programme-memory through programme in lpc2148?
In lpc2148 we hv 512kB flash memory, we want to use some of the flash to 
store data. how we can do this?

von mthomas (Guest)


Rate this post
useful
not useful
It's explained in the LPC214x users's manual, look for IAP (in 
application programming)

von Pragati S. (Company: services india) (pragati)


Rate this post
useful
not useful
Thanks

I have read it.But i think that it programmes Flash in running mode. Is 
it right?.Actually i want to store input data in Flash during running 
mode & whenever need comes,I want to read it & gives output to another 
peripheral.It means i want to use internal Flash like external memory 
storage device(use of 64K from 512K Flash)I am confused that,if i use 
IAP,it damages my Boot programme of LPC2148? So if u have any suggestion 
or code then Plz give it me.Tkank you once again........................

von Martin T. (mthomas) (Moderator)


Rate this post
useful
not useful
Pragati Shah wrote:
> Thanks
>
> I have read it.But i think that it programmes Flash in running mode. Is
> it right?.
IAP can be used to write flash-sectors and to erase flash-pages from the 
user-application.

> Actually i want to store input data in Flash during running
> mode & whenever need comes I want to read it & gives output to another
> peripheral.
> It means i want to use internal Flash like external memory
> storage device(use of 64K from 512K Flash)I am confused that,if i use
> IAP,it damages my Boot programme of LPC2148?
Which boot-program? A secondary bootloader? Just make sure that the 
address-range used for the emulated "external memory storage device" 
does not intersect with the address-range with the "boot programme"'s 
code.

> So if u have any suggestion
> or code then Plz give it me.
see here:
http://jcwren.com/arm/ (for LPC2148, files iap/iap.*)
and maybe here:
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/glcd_dcf77/index.html 
(for different LPC2000 (2106), files iap*.*)

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.