Filed under: Uncategorized

Problem
I have an HCS12X/HCS12XE S-record file that contains only global addresses. Can I load it into the CodeWarrior® debugger?
Solution
The issue here is that the CodeWarrior debugger does not know whether the addresses specified in a S-record file are global addresses, or logical addresses. You can notify the debugger that you are loading an S-record file containing global addresses as follows:
Close the CodeWarrior debugger.
Edit your debug configuration file (usually P&E_ICD.ini). If you are not sure of the configuration file name, you should see the full name of that file in the debugger’s title bar. Alternatively, it is the name of the file you specify in the -Prod option when starting the debugger.
In the [HI-WAVE] section of the configuration file, add following line:
SRECISS12XGLOBALADR=1
Save the file and restart the debugger.
From now on, the debugger will assume all S-record files contain global addresses. If you wish to load a logical S-record, you must first remove that line.
You can also work with two distinct .ini files, one configured for global S-records, and another one for logical S-records.





