EmbDev.net

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

Author: Pragati Shah (Company: services india) (pragati)
Posted on: 2009-12-24 14:12

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?
Author: mthomas (Guest)
Posted on: 2009-12-24 14:31

It's explained in the LPC214x users's manual, look for IAP (in
application programming)
Author: Pragati Shah (Company: services india) (pragati)
Posted on: 2009-12-25 07:49

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........................
Author: Martin Thomas (mthomas) (Moderator)
Posted on: 2009-12-25 13:02

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...
(for different LPC2000 (2106), files iap*.*)

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]






webmaster@embdev.netContactAdvertising on EmbDev.net