Hello,
Is there any option within the Kiel Compiler ( using Linker Script ) for filling the unused memory location (0x00) with the user determined byte say 0x02 for 8051 type MCUs
Best regards, Denn
http://www.keil.com/forum/docs/thread14220.asp
Usually, device programmers have this facility.
Otherwise, you would do it as part of the conversion to Intel Hex format, or whatever.
Note that 0x02 wouldn't be a particularly good choice for an 8051; the standard flash erased state of 0xFF is fairly innocuous, and a NOP is 0x00...
See: www.8052.com/.../8051op.pdf And: www.nxp.com/.../80C51_FAM_PROG_GUIDE_1.pdf
Dear Andy Nel,
I meant to say the Flash memory location.
Its better to initialise the unused flash locations with a known byte 0x02 before programming the MCU.Is there any way to do that in Keil IDE
regards, Denn
You would have to do this in the startup file:
http://www.keil.com/support/man/docs/c51/c51_ap_customfiles.htm
View all questions in Keil forum