Codewarrior with S12XD use non banked memory.

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

Codewarrior with S12XD use non banked memory.

2,006 Views
gae037
Contributor I

On our project, we have a S12X. The bootloader is in area 0xc000 to 0xffff. And our application code need 20kB the problem is that the non banked flash size in 0x4000 is 16kB. We want to use the area 0x8000 to 0xBFFF as non banked area. Is it possible to do that. We don't want to use pragma in our code. We tried this and it doesn't work. How can we do that?

Can somebody help us?

Labels (1)
0 Kudos
Reply
4 Replies

622 Views
CompilerGuru
NXP Employee
NXP Employee

>We tried this and it doesn't work

What does not work?

 

Try to use 0xFE8000..0xFEBFFF and make sure PPAGE is (and stays) 0xFE.

When using 0xFE8000 there maybe some linker warnings about cutting 0xFE8000 to 0x8000 which you can safely ignore.

 

Daniel

 

0 Kudos
Reply

622 Views
gae037
Contributor I

Ok now it works the problem was that the .copy area was not between 0x4000 and 0x7FFF so the varaible initialisation was bad.

I have another question concerning the S19 file generation. On our .map file the adress are in 16 bit (that means without the page index) for exemple we have 0x8000 and not 0xFE8000. But in the S19 file we have 0xFE8000 is it possible to have 16 bit adress in the S19 file (0x8000 instead of 0xFE8000)?

 

0 Kudos
Reply

622 Views
CompilerGuru
NXP Employee
NXP Employee

Not sure why having .copy in 0x8000..0xBFFF would not work, I would think it should if PPAGE is setup before (or the reset value works). Well anyway.

 

For the SRecord, look at the bbl file. It supports to map any addresses for the generated SRecords,

see the burner chapter in the build tools manual.

Daniel

0 Kudos
Reply

622 Views
J2MEJediMaster
Specialist I

Look in the Build Tool Utilities Manual (Build_Tools_Utilties.pdf), located in the Help folder of the CodeWarrior Installation. Check out the chapters on the Burner Utility.

 

Also, enter "SRECCVTSW" on the keyword search (it's text box at upper right on this web page) to find the archive that contains the S-record convertor program. It can change an existing S-record file into different formats, one which might meet your needs.

 

---Tom

0 Kudos
Reply