9s12xd64 ram address

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

9s12xd64 ram address

Jump to solution
1,952 Views
D64
Contributor I
I am using 9s12xd64 and 'accidentally' set the ram location start from 0x1000 to 0x1FFF. There are 4K ram on board. It worked fine. I figured out later the ram is supposed to be at the unpaged window of 0x3000. I think if the rpage register is 0xFF, then using the paged window at 0x1000 still makes sense. But I checked the rpage register with Zap debugger. It was 0xfd. Anybody could explain this to me, please. Thanks in advance.
Labels (1)
0 Kudos
Reply
1 Solution
820 Views
kef
Specialist I

Depending on maskset, you chip may have more RAM and flash than you expect. For example

9S12XD64 0L15Y maskset may have 32kB of RAM. But 9S12XD64 0M84E/1M84E maskset may have 16kB of RAM etc.

I don't know if 9S12XD64 's with pure 64k-flash maskset are available already or not, but if you design for 9S12XD64, then you shouldn't use more mamory than is expected in XD64. Else maskset change will break you code.

View solution in original post

0 Kudos
Reply
4 Replies
821 Views
kef
Specialist I

Depending on maskset, you chip may have more RAM and flash than you expect. For example

9S12XD64 0L15Y maskset may have 32kB of RAM. But 9S12XD64 0M84E/1M84E maskset may have 16kB of RAM etc.

I don't know if 9S12XD64 's with pure 64k-flash maskset are available already or not, but if you design for 9S12XD64, then you shouldn't use more mamory than is expected in XD64. Else maskset change will break you code.

0 Kudos
Reply
820 Views
D64
Contributor I

Thanks for your response.

 

The maskset on my device is 2M42E. Is there any way I could check the detail on the MCU based on maskset?

0 Kudos
Reply
820 Views
kef
Specialist I

According to Table 0-1 in the datasheet, Chapter 29 (128k flash module) applies to *M42E maskset... So your S12XD64 is like S12XD128.

0 Kudos
Reply
820 Views
D64
Contributor I
I cannot tell if it is s12xd128 or the s12xdg128. But I guess it might be the xdg version since it has 12K RAM.
0 Kudos
Reply