Hello!
I want save Flash from microcontroller 9S12XDT256 in computer. I use Codewarrior to read information from microcontroller.
I get information that flash save in such address blocks:
block0
page $E0 0x08000 - 0x0BFFF
page $E1 0x18000 - 0x1BFFF
page $E2 0x28000 - 0x2BFFF
page $E3 0x38000 - 0x3BFFF
page $E4 0x48000 - 0x4BFFF
page $E5 0x58000 - 0x5BFFF
page $E6 0x68000 - 0x6BFFF
page $E7 0x78000 - 0x7BFFF
block1
page $F8 0x88000 - 0x8BFFF
page $F9 0x98000 - 0x9BFFF
page $FA 0xA8000 - 0xABFFF
page $FB 0xB8000 - 0xBBFFF
page $FC 0xC8000 - 0xCBFFF
page $FD 0xD8000 - 0xDBFFF
page $FE 0xE8000 - 0xEBFFF
page $FF 0xF8000 - 0xFBFFF
In first address 0x08000..0x0BFFF range I can see information, but in others ranges are text "CAFECAFECAFE"
Where can be problem? Maybe flash address ranges are incorrect?
Thanks!
It seems you saved in SX file 0x018000..0x01BFFF, 0x028000..0x02BFFF etc instead of 0xE18000..0xE1BFFF, 0xE28000..0xE2BFFF etc..
I think it's normal to read 0xCAFE from unimplemented pages.
Update: fixed 0xE0 to 0xE1 etc.
0x8000.0xBFFF is valid because it's current PPAGE window, not necessarily 0xE08000..0xE0BFFF.
Thanks a lot! Now all is working when I use these commands:
SAVE 0xE08000..0xE0BFFF Dump1.sx
SAVE 0xE18000..0xE1BFFF Dump1.sx ;A
I use these commands:
I get information that Codewarrior works with addresses in local format, but I try use addresses in global format.
So I need somewhere get flash addresses in local format.
Hi,
Can you please share the linker file (.prm) of the loaded project?
Thanks,
BR, Daniel