9S12XDT256 flash read problems

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

9S12XDT256 flash read problems

1,256件の閲覧回数
ejay
Contributor II

Hello!

I want save Flash from microcontroller 9S12XDT256 in computer. I use Codewarrior to read information from microcontroller.

block.jpg

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!

4 返答(返信)

1,065件の閲覧回数
kef2
Senior Contributor V

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.

1,065件の閲覧回数
ejay
Contributor II

Thanks a lot! Now all is working when I use these commands:

SAVE 0xE08000..0xE0BFFF Dump1.sx
SAVE 0xE18000..0xE1BFFF Dump1.sx ;A

0 件の賞賛
返信

1,065件の閲覧回数
ejay
Contributor II

I use these commands:

code.jpg

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.

0 件の賞賛
返信

1,065件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Can you please share the linker file (.prm) of the loaded project?

Thanks,

BR, Daniel

0 件の賞賛
返信