Yahoo Groups archive

Lpc2000

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

Message

Re: LPC2000 on-chip Flash used as EEPROM demo/C-routines

2005-09-08 by ashuvighne

--- In lpc2000@yahoogroups.com, "philips_apps" <philips_apps@y...> 
wrote:
> Hello all,
> 
> We have just uploaded EE_demo.zip in the Files section of the 
group. 
> When unzipped, EE_demo folder with EE_demo.uv2 project developed 
in 
> Keil's uVision3 environment is created.
> 
> Here you will find a demo code developed for LPC2138 that shows 
how 
> to configure and use microcontroller's on-chip Flash as EEPROM 
> memory. The code is written in C and provides EEPROM erase, write 
> single entry, read last entry, read the n-th entry, and count 
> entries functions.
> 
> Details on the software implementation can be found in EE_demo.txt 
> and EE_setup.txt files in the Documentation section of the project.
> 
> Although the project was developed for LPC2138 device, the code 
can 
> be easily modified and ported to other LPC2000 microcontrollers.
> 
> Regards,
> 
> Philips Apps Team

Hi:

While trying to use this ee_demo project (using Keil uV3 and Keil 
MCB2130 board). 
Noticed -
- all works well as is, I mean when tried running the project 
  without any chnages.
- however, when only "ee_count()" is called from main(), following
  a reset. Which was to test/ verify whether or not the Flash 
  contents are retained. 
  The count (in fact both response_ee[0] and [1]) returned 0! 
  I was expecting response_ee[1] to be 0x0B as it showed with 
  unchanged ee_demo execution.

Is the flash area, which is supposed to be "reserved" being stepped 
over or reinitialized somehow. Any known cures for this issue?

Any help, suggestions in this regard will be greatly appreciated.

Thanks;

Attachments

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.