Yahoo Groups archive

Lpc2000

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

Message

Re: Reading from flash

2005-06-28 by albin_martinsson

Hi
Thanks for the quick answer,

the MAM is disabled,
PLL is set to MUL with 4  (clock freq * (4+1))
Im using the MCB2100 so the clock freq is 12 MHz and with the PLL 
the running speed is 60MHz. 

Do you think its better to slower down the PLL or should I configure 
the MAM function?

/FM


--- In lpc2000@yahoogroups.com, "Dan Beadle" <dan.beadle@i...> wrote:
> The JTAG dump does not run at the same speed as the internal FLASH.
> (Generally slower).  I would GUESS that you might have the MAM set 
up
> too fast or the PLL too fast.  This could cause FLASH to read back
> incorrectly at execution time, but the slower JTAG dump would read 
it
> correctly.  
> 
> 
> Dan
> 
>  
> 
>  
> 
>   _____  
> 
> From: lpc2000@yahoogroups.com [mailto:lpc2000@yahoogroups.com] On 
Behalf
> Of albin_martinsson
> Sent: Monday, June 27, 2005 11:29 PM
> To: lpc2000@yahoogroups.com
> Subject: [lpc2000] Reading from flash
> 
>  
> 
> Hi
> 
> Anyone knows why I get some bit-errors when I am reading from the 
> flashmemory. In my program I store some data (texts and other 
> configurations) with the IAP routines. But if I compare the 
recently 
> written data from RAM with the programmed data from Flash there 
are 
> some bits that has changed, resulting in a checksum error for the 
> data I have written to Flash. But!  when i do a memory dump from 
the 
> flash memory with the LPC2100-program I always read the correct 
data.
> 
> I read from Flash by pointing a byte pointer like this:
> 
> tU8 *ptr;
> flashaddress = 0x00020000;
> ...
> ptr = (tU8 *)flashaddress;
> 
> When i turned off the MAM funktion the error reduced but there are 
> still some errors. 
> 
> Can someone explain why this is so?
> 
> B.R  /Fredrik Martinsson
> 
> 
> 
> 
> 
>   _____  
> 
> YAHOO! GROUPS LINKS 
> 
>  
> 
> *	 Visit your group "lpc2000
> <http://groups.yahoo.com/group/lpc2000> " on the web.
> 	  
> *	 To unsubscribe from this group, send an email to:
> 	 lpc2000-unsubscribe@yahoogroups.com
> <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe> 
> 	  
> *	 Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> . 
> 
>  
> 
>   _____  
> 
> 
> 
> [Non-text portions of this message have been removed]

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.