I have just the light version of CodeWarrior that is supplied with DEMO boards, and I'm targeting a 9S08RC16. It's maddening. I can scroll through the memory just fine, but there's no file>save or anything close. The only idea I have is to take screen shots and put them under an OCR scanner, but you know how much work that will be.
With CodeWarrior HC08 or HC12 you can dump content of memory in a s record file using the command SAVE.
- Open a Command window (Select "Component" -> "Open" and select "Command" - Enter the SAVE command. Format of the command is SAVE <StartAddress>..<EndAddress> <FileName>
For example to save content of memory between 0x1800 to 0x1900 into a file called data.s19, enter the following command
SAVE 0x1800..0x1900 data.s19
I hope this helps
Thanks, Cat, you're a genius. I don't really know what the .s19 format is, but it doesn't look like the memory display in debug. I tried a SAVE>xxxx..yyyy name.bin and it saved it, but that too looked strange. Any way to get a file that looks exactly like the memory dump window?
If you just want to read the bytes by eye you have it already with the s19 file.
You just need to know how to interpret it.
The first line often you just ignore, but maybe not.
The first char pair in each line is S1 or S9. S1 means code/data with a 16bit address.
S9 means a terminating record.
The next char pair is the amount of char pairs following in hex.
The next two char pairs is the address of the data byte following.
Then all of the next char pairs, except the last one, are your data just like in your memory window.
The last char pair is a checksum.
If you google for s19 or Motorola S-record etc you can find many conversion programmes as well that may suit you better.
If you save code just in hex and you get just 1 bit corrupted it can be useless to the CPU. This is the purpose of the format. (as well as being able to specify the address).
Thanks vey much, peg. I think that tells me everything I need to know.
Retrieving data ...