Saving Memory Dump

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Saving Memory Dump

11,561 Views
okasional
Contributor I
I have searched in vain for a way to save the memory display in CodeWarrior, perhaps as a .txt file, so that it can be printed out and studied.  Is there a way?
Labels (1)
0 Kudos
10 Replies

1,987 Views
Teo
NXP Employee
NXP Employee
I assumed you are using CodeWarrior for ColdFire. It should be a similar dialog in other CodeWarrior's as well. What architecture you are targetting?

Teo
0 Kudos

1,987 Views
okasional
Contributor I

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.

 

0 Kudos

1,987 Views
J2MEJediMaster
Specialist I
Can you set the editor's insertion point in the window? Then you might do a Select All from the Edit menu, then Copy. Next, Paste the text into Notepad or another editor. Kludgy, I'll admit, but far easier than trying to grab screen shots and OCR them...

---Tom
0 Kudos

1,987 Views
okasional
Contributor I
You're over my head.  There is no EDIT command in the memory window, nor can I find a COPY command anywhere.  Sorry to be so stupid.  Incidentally, I can highlight a page of memory, but that must be just for copying or moving it because I can't send it to the clipboard.
0 Kudos

1,988 Views
CrasyCat
Specialist III

Hello

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

CrasyCat

0 Kudos

1,988 Views
okasional
Contributor I

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?

Tommy

 

0 Kudos

1,988 Views
peg
Senior Contributor IV

Hi Tommy,

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.

BR Peg

P.S.

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).

 

0 Kudos

1,988 Views
okasional
Contributor I

Thanks vey much, peg.  I think that tells me everything I need to know.

 

0 Kudos

1,988 Views
Teo
NXP Employee
NXP Employee
You can do this from Load/Save memory dialog. It can bi access from Debug->ColdFire->Load/Save Memory.

You will have different options for .txt file format, including as s-rec.

Teo
0 Kudos

1,988 Views
okasional
Contributor I
Do I have to buy a copy of ColdFire?
0 Kudos