EmbeddedRelated.com
Forums

flash data storage on lpc

Started by zhli...@yahoo.com September 13, 2008
Hi,
Has anyone used the flash on a LPC2468 as application data storage? I have a file system and wish to store files on the unused part of the flash. What are the ways of gaining access?

Thanks for your help.

Regards,

Zhao

An Engineer's Guide to the LPC2100 Series

Hi

Be carefull with that idea, there are a finite number of times you
can write to flash before the part becomes unusable.

Regards

Jean-Jacques
--- In l..., zhliu@... wrote:
>
> Hi,
> Has anyone used the flash on a LPC2468 as application data storage?
I have a file system and wish to store files on the unused part of
the flash. What are the ways of gaining access?
>
> Thanks for your help.
>
> Regards,
>
> Zhao
>

I only read from it most of the time. I'm just not sure how to use IAP to write stuff to flash and read from it. I suppose to write functions in RAM space? what other ways to are there to do the same thing?

Any suggestion is much appreciated.

Thanks.

Zhao

Hi,
>Has anyone used the flash on a LPC2468 as application data storage? I have a file system and wish to store files on the unused part of the flash. What are the ways of gaining access?
>
>Thanks for your help.
>
>Regards,
>
>Zhao
>
>

The demo code at http://jcwren.com/arm has examples of using IAP.
--jc

On Sat, Sep 13, 2008 at 9:43 AM, wrote:

> I only read from it most of the time. I'm just not sure how to use IAP
> to write stuff to flash and read from it. I suppose to write functions in
> RAM space? what other ways to are there to do the same thing?
>
> Any suggestion is much appreciated.
>
> Thanks.
>
> Zhao
> Hi,
> >Has anyone used the flash on a LPC2468 as application data storage? I have
> a file system and wish to store files on the unused part of the flash. What
> are the ways of gaining access?
> >
> >Thanks for your help.
> >
> >Regards,
> >
> >Zhao
> >
> >
> >
> >
>

IAP is not a difficult issue,you can refer to the user manual of
lpc24xx which can be download form the office website of NXP
But there are some key points to you
1.you should shut down all INTs
2.the data must align
So I guess I'm on the right track. there is no other easier way of doing this.

Can I have INT routine in RAM? I would like to run my SD card driver there so I may update firmware using hex store in the card memory.

Hi,
>Has anyone used the flash on a LPC2468 as application data storage? I have a file system and wish to store files on the unused part of the flash. What are the ways of gaining access?
>
>Thanks for your help.
>
>Regards,
>
>Zhao
>
>

At 10:35 13.09.2008 -0400, you wrote:
>So I guess I'm on the right track. there is no other easier way of doing this.
>
>Can I have INT routine in RAM? I would like to run my SD card driver
>there so I may update firmware using hex store in the card memory.

Yes, that is possible, be aware that you have to copy the interrupt
vectors to RAM as well and set MEMAP=2

Herbert
There's a flash eeprom emulator code example in the files section of
this user group.

Cheers,
Bruce

-----Original Message-----
From: l... [mailto:l...] On Behalf
Of z...@yahoo.com
Sent: Sunday, 14 September 2008 12:35 AM
To: l...
Subject: [lpc2000] Re: flash data storage on lpc

So I guess I'm on the right track. there is no other easier way of doing
this.

Can I have INT routine in RAM? I would like to run my SD card driver
there so I may update firmware using hex store in the card memory.

Hi,
>Has anyone used the flash on a LPC2468 as application data storage? I
have a file system and wish to store files on the unused part of the
flash. What are the ways of gaining access?
>
>Thanks for your help.
>
>Regards,
>
>Zhao
>
>

can you share your code. I will update that with iap code.
and i will not have to work for file system!!
On 9/13/08, z...@yahoo.com wrote:
>
> Hi,
> Has anyone used the flash on a LPC2468 as application data storage? I have
> a file system and wish to store files on the unused part of the flash.
> What are the ways of gaining access?
>
> Thanks for your help.
>
> Regards,
>
> Zhao
>
>

--
Doshi Harshal
POTENT
F-27, VRAJWADI COMPLEX,
Nr. UTKARSH SCHOOL,
OLD PADRA ROAD,
VADODARA
GUJARAT 390015, INDIA
PH: 09429071421

Hi All,
Got the sample code to work going to implement my own now. Thanks for the help.

Another thing I'm stuck on is how to copy interrupt vectors to ram and do i set MEMMAP during IAP programming only?

Thanks for the help.

Z.L.
--- On Sun, 9/14/08, Herbert Demmel wrote:

> From: Herbert Demmel
> Subject: Re: [lpc2000] Re: flash data storage on lpc
> To: l...
> Date: Sunday, September 14, 2008, 1:12 PM
> At 10:35 13.09.2008 -0400, you wrote:
> >So I guess I'm on the right track. there is no
> other easier way of doing this.
> >
> >Can I have INT routine in RAM? I would like to run my
> SD card driver
> >there so I may update firmware using hex store in the
> card memory.
>
> Yes, that is possible, be aware that you have to copy the
> interrupt
> vectors to RAM as well and set MEMAP=2
>
> Herbert