Yahoo Groups archive

Lpc2000

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

Message

Unused ROM data-0 or 0xFF?

2006-04-06 by Saravanakumar S

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?
For Each cycle of operation,I want to check the unused ROM space,to ensure 
the Microcontroller status.How can I achieve this one.

Please tell me Where I done a wrong thing?

Regards
S.Kumar




[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.