| ||||||||
Technical Support Support Resources Product Information | µVISION DEBUGGER: FILL MEMORY WITH CONSTANT BEFORE LOADInformation in this article applies to:
QUESTIONI need the code space filled with 0xFF before I load code from a HEX file. Is there a way to do this? I have the following code in an assembler source file. CSEG at 1000H version: dw 0 crc: dw 03273H,0F1A6H date: dw 042B0H,025D3H pad: ds 100 checksum: dw 00F71H When the simulator loads the program, the data in pad is all 0x00. When it is loaded into the target it is all 0xFF. Is there a way to fill the memory in the simulator with 0xFF? ANSWERYes. The µVision debugger has several pre-defined debug functions. The function memset allows you to initialize the memory with a constant. The following steps explain how to preset the memory in the simulator:
You may automate this process by using an INI file that contains these debugger commands. This INI file can be entered under Project — Options — Debug — Initialization File. MORE INFORMATION
SEE ALSO
FORUM THREADSThe following Discussion Forum threads may provide information related to this topic. Last Reviewed: Thursday, January 11, 2007 | |||||||
| ||||||||