paging problem

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

paging problem

600 Views
embitel
Contributor I

Hi everyone,

 

I am using code warrior 5.1 and MC9S12C64.

 

i want to use memory locations as below in rpm

 

lookup  = READ_ONLY 0x102400 TO 0x103FFF;

 

   CLT_ROM,    
   EGO_ROM,    
   MAF_ROM,    
   MAT_ROM    INTO lookup;

 

All table data into section lookup.

 

Please tell what are the changes i have to do in start12,c and prm file.

 

When i try to flash using PE usb multilink i get the error as follows

 

Error while writing to 0x102400 TO 0x103FFF to 0x102600.

INFORMATION: no memory at this location.

 

Thanks,

Embitel.

Labels (1)
0 Kudos
6 Replies

447 Views
kef
Specialist I

Yes, there's no memory at 0x102400 in C64. Banked flash starts at 0x3C8000 in this device.

0 Kudos

447 Views
embitel
Contributor I

 

can't this be global address....

0 Kudos

447 Views
embitel
Contributor I

OR page 10 address

0 Kudos

447 Views
kef
Specialist I

No global addressing, no PPAGE 0x10, no external memory bus on S12C.

0 Kudos

447 Views
embitel
Contributor I

We have gcc  compiled code which is working fine..

 

In memory.x file of gcc code the below line of code is used

 

lookup  (rx)  : ORIGIN = 0x102400, LENGTH = 0x1C00

 

We are trying to port to codewarrior compatible.

 

IF  there is no PPAGE 0X10 || GLOBAL ADDRERSSING || EXTERNAL MEMORY...

 

then how gcc code is working fine.

 

Thanks,

Embitel.

 

 

0 Kudos

447 Views
kef
Specialist I

Either GCC ignores not existing page, or maybe this fake address extension is used to do separate S records files for code and eeprom data. 

 

0 Kudos