EmbeddedRelated.com
Forums

Reading data storaged from internal Flash LPC2138 ?

Started by Claudionor santos April 22, 2010
Hello ,I'm confused

how do I read data previously written to the internal flash memory of the
LPC2148?
I read somewhere that I have to use pointers, but I did not understand how
to use pointers to read data from FLASH.
can anyone help me?
thanks

An Engineer's Guide to the LPC2100 Series

Claudionor santos wrote:
> I read somewhere that I have to use pointers, but I did not understand
> how to use pointers to read data from FLASH.

I'm afraid, this is completely off topic but anyway for example at the
very end of this:

http://publications.gbdirect.co.uk/c_book/chapter5/pointers.html

--

Timo

I am not writing the code for you, coz this is basic C. Declare a pointer
and assign it the flash address you want to read. Thats it.

On Fri, Apr 23, 2010 at 1:40 AM, Claudionor santos
wrote:

> Hello ,I'm confused
>
> how do I read data previously written to the internal flash memory of the
> LPC2148?
> I read somewhere that I have to use pointers, but I did not understand how
> to use pointers to read data from FLASH.
> can anyone help me?
> thanks
>
>

--
With Regards,
Nishant Agrawal
Hello everybody, thanks for the tip.
I am newbie in c programming language, then I apologize for the email.
I will not let you down again (I hope hehehe ), the next step will be to
communicate with PC using USB,and set the RTC to act as an alarm.

Nishant Agrawal and Timo , thanks for the help

With Regards,
Claudionor

2010/4/23 Nishant Agrawal

> I am not writing the code for you, coz this is basic C. Declare a pointer
> and assign it the flash address you want to read. Thats it.
> On Fri, Apr 23, 2010 at 1:40 AM, Claudionor santos > gmail.com> wrote:
>
>> Hello ,I'm confused
>>
>> how do I read data previously written to the internal flash memory of the
>> LPC2148?
>> I read somewhere that I have to use pointers, but I did not understand
>> how to use pointers to read data from FLASH.
>> can anyone help me?
>> thanks
>> --
> With Regards,
> Nishant Agrawal
>
>

--
Eng. Eletrônico Claudionor Santos
DCSH - Divisăo de Concepçăo de Sistemas de Hardware
CTI- Centro de Tecnologia da Informaçăo Renato Archer
Rod. SP 65 km 143,6 - Campinas - SP
CEP: 13069-901
Telefone: (19) 3746 6041
--- In l..., Claudionor santos wrote:
>
> Hello everybody, thanks for the tip.
> I am newbie in c programming language, then I apologize for the email.
> I will not let you down again (I hope hehehe ), the next step will be to
> communicate with PC using USB,and set the RTC to act as an alarm.
>
> Nishant Agrawal and Timo , thanks for the help
>
> With Regards,
> Claudionor
Then you REALLY want to see JC Wren's demo code: www.jcwren.com/arm
JC has done all the heavy lifting in terms of getting USB working with a PC. The code is for the 2148 but it should be close enough.

Richard

In fact I will use the USB as a virtual communication.
I'm reading AN10420 (NXP) and files VirtualCOM.zip (LPC2000 Group).
I have a long road ahead.

I'm using KEIL uVISION4 compiler and simulating LPC2138 component in
PROTEUS.
Can anyone tell me if there is a component to simulate the LPC2148 for USB
support on PROTEUS ?

Thanks,
Claudionor.

2010/4/23 rtstofer

> --- In l... , Claudionor
> santos wrote:
> >
> > Hello everybody, thanks for the tip.
> > I am newbie in c programming language, then I apologize for the email.
> > I will not let you down again (I hope hehehe ), the next step will be to
> > communicate with PC using USB,and set the RTC to act as an alarm.
> >
> > Nishant Agrawal and Timo , thanks for the help
> >
> > With Regards,
> > Claudionor
>
> Then you REALLY want to see JC Wren's demo code: www.jcwren.com/arm
> JC has done all the heavy lifting in terms of getting USB working with a
> PC. The code is for the 2148 but it should be close enough.
>
> Richard
>
>
>