RAM ROM Check with IAR EW6812

Started by Patrick Gempeler July 28, 2003

is there anybody out there, who solved a RAM and ROM check with use the labels in the config file?

I use the 912DG128A with IAR EW6812.

Is there a solution to realise a RAM ROM check like follow?

unsigned char ramchk(void)
unsigned char result;
unsigned char * zadr;

for (result=0, zadr=&CODE, count=0; !result && (zadr<=(&CODE+sizeof(CODE))); zadr++)
check the writable of the zadr;

} Thanks for any help.

Patrick Gempeler <>
ProEda AG Datenmanagement <http://www.proeda.ch/>
Bollstr. 32, CH-3076 Worb
Tel +41 31 838 45 00, Fax +41 31 838 45 40