Codewarrior, PRM File, PPAGE and ROM

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

Codewarrior, PRM File, PPAGE and ROM

Jump to solution
4,000 Views
Adam
Contributor III
I am using an mc9s12gc32 chip with Codewarrior 5.5. My project is set up with the small model.

One problem, by default it looks like when the code/project is up and running with the P&E Micro debugger that I am running without paged ROM as I show valid ROM at 0x4000 to 0x7fff and 0xC000 to 0xFFEF. According to the Freescale documentation, 0x4000 to 0x7fff should be free while 0x8000 should be used for the ROM pages (and C000 is fixed).

Am I wrong here?!? Or is it right that 0x4000 and 0xC000 are the start of the ROM areas (instead of 0x8000 and 0xC000).

================================================================
Next problem, the PRM file looks like this immediately after a new project is created:
SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
RAM = READ_WRITE 0x0400 TO 0x0FFF;

/* unbanked FLASH ROM */
ROM_C000 = READ_ONLY 0xC000 TO 0xFEFF;

/* banked FLASH ROM */
PAGE_3D = READ_ONLY 0x3D8000 TO 0x3DBFFF;
/* PAGE_3F = READ_ONLY 0x3F8000 TO 0x3FBFFF; not used: equivalent to ROM_C000 */
END

With a fresh project, I can click make and load into the debugger and I get this error:
Error while writing to 3d8000 to 3d8200. Information: No memory available at this address.

Why is it that a fresh project made for this specific CPU can't access ROM area to erase that it thinks should be there?!?

================================================================

if page 3F will show as ficed in 0xc000, then how do I get page 3e moved so it shows up in 0x8000 instead of 0x4000?
Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,165 Views
Lundin
Senior Contributor IV
GC32 has no page 3D, which would explain the error.

You have:

4000-7FFF, which is equal to 3E8000-3EFEFF
C000-FEFF, which is equal to 3F8000-3FFEFF

Since that derivate has only got 32k you don't need to touch the PPAGE register at all.

View solution in original post

0 Kudos
Reply
5 Replies
1,166 Views
Lundin
Senior Contributor IV
GC32 has no page 3D, which would explain the error.

You have:

4000-7FFF, which is equal to 3E8000-3EFEFF
C000-FEFF, which is equal to 3F8000-3FFEFF

Since that derivate has only got 32k you don't need to touch the PPAGE register at all.
0 Kudos
Reply
1,165 Views
CrasyCat
Specialist III

Hello

I would need to know which version of CodeWarrior HC12 you are using.

To retrieve that information:
  - Start the IDE
  - Select "Help" -> "About Metrowerks CodeWarrior"
  - Click on "Installed Products".

What is written on top of the dialog? V3.0 or V3.1?

Did you install some additional patches (You will see the patches listed on top of the Installed Products dialog as well).

CrasyCat

0 Kudos
Reply
1,165 Views
Adam
Contributor III
I put that info at the top of my previous message. CW for HC12 v5.5. I have every patch for this revision installed (the message would be huge to list them all).
0 Kudos
Reply
1,165 Views
CrasyCat
Specialist III

Hello

CodeWarrior for HC12 V5.5 does not exist.

With IDE version number only I cannot do anything.

Can you please do the following:
  - Start the IDE
  - Select "Help" -> "About Metrowerks CodeWarrior"
  - Click on "Installed Products".
  - Click on "Save As", save the information in a text file and attach it to the thread.

CrasyCat

0 Kudos
Reply
1,165 Views
Adam
Contributor III
I apologize.

It is v3.1 build 4047.
0 Kudos
Reply