Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Unused ROM data-0 or 0xFF?

2006-04-06 by Tom Walsh

Saravanakumar S wrote:

>Hi all, 
>        I am newbie to this field.I am using LPC 2106 for my application.
>
>I write the code to test the unused ROM data.My program size is 500 
>bytes.After 500 bytes, remaining bytes are unused ROM space only
>
>May be the  unused ROM data  will be either 0x00 or 0xFF ?
>
>My code :
>
>void main (void)
>{
>        unsigned int Output=0,Pass=0;
>        Output=ROM_Check(0x00000800,10);
>        if(Output == 0)
>                Pass=0;
>        else
>                Pass=1;
>}
>unsigned int ROM_Check(unsigned int *Start_address,unsigned int ROM_Size)
>{
>        unsigned int c;
>        for (c = 0; 0 < ROM_Size; ROM_Size- -)
>        {
>                c += *Start_address;
>                Start_address++;
>        }
>        return (c);
>}
>
>But, when I check the ROM data, I am getting different kind of data like 
>this  EF   D5   EA  E4   EE   D0   F6   D0   E3   FA
>
>I want to know whether it is correct or not ?
>What will be the unused ROM data?
>  
>
Unprogragmmed Flash memory is $ff, same as "normal" flash.

TomW

-- 
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------------------------------------------

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.