Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Flash Programming

Flash Programming

2005-08-22 by vishakha vaibhav

I have to write array of size 384 bytes continuously
on the FlashROM to store it permanently. As far as I
know ,we can not write on the Flash directly.We will
first have to write on RAM and then copy RAM to
Flash.But only 32 bytes of RAM is available for this
purpose.Do I have to write on RAM and copy it to Flash
in a loop,writing 32 bytes at a time?I also did not
understand that while writing on Flash the minimum no.
of bytes given is 512,so if i have to write 384 bytes
,whether the rest 128 bytes will be empty?If now I
have to write another array of same size, do I have to
start from the next sector or can I use the same
sector?Plz reply,if anybody knows about this..

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

Re: Flash Programming

2005-08-22 by lpc2100_fan

Hi,

did you check out the EE_Demo.zip file in the files section. It has
been posted recently by Philips Apps and shoudl address your issues. I
copied the first paragraph of the project description:
---
About the EE_demo project
=========================
EE_demo is a project originally developed for the LPC213x family of
microcontrollers.
These devices do not have on-board EEPROM, and the intention was to
provide a mechanism
and some simple functions that can help to use the on-board Flash in
the LPC213x family 
as an EEPROM. 

Basic functionality of any EEPROM would include the ability to erase
its content on a 
granularity of a single byte or a small block (several bytes). Also,
write access to an 
EEPROM should be provided with the same resolution. 

In essence, it is necessary	to treat a portion of the LPC213x Flash to
act as an EEPROM. 
The term "EEPROM" in the following text will refer to a part of a
LPC213x on-chip Flash
that is used as an EEPROM memory.

The EE_demo project is organized as follows:

EE_demo.c file illustrates typical usage of functions supplied in
LPC2k_ee.C file.
LPC2k_ee.h file contains general "EEPROM" setup.
LPC2k_ee.C file contains function code.
EE_demo.txt gives background of the implemented solution and its
characteristics.
EE_setup.txt walks thru the initialization of LPC2k_ee.h file.
.........
---

Cheers, Bob


--- In lpc2000@yahoogroups.com, vishakha vaibhav <vishakha406@y...> wrote:
Show quoted textHide quoted text
> I have to write array of size 384 bytes continuously
> on the FlashROM to store it permanently. As far as I
> know ,we can not write on the Flash directly.We will
> first have to write on RAM and then copy RAM to
> Flash.But only 32 bytes of RAM is available for this
> purpose.Do I have to write on RAM and copy it to Flash
> in a loop,writing 32 bytes at a time?I also did not
> understand that while writing on Flash the minimum no.
> of bytes given is 512,so if i have to write 384 bytes
> ,whether the rest 128 bytes will be empty?If now I
> have to write another array of same size, do I have to
> start from the next sector or can I use the same
> sector?Plz reply,if anybody knows about this..
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.