Flash Pages configuration

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

Flash Pages configuration

545 Views
embitel
Contributor I

Hi everyone,

 

I am using code warrior 5.1 and MC9S12C64.

 

I am using pages 3c and 3d and can find my prm file as attached.

 

My application is too big and when i compile i get the following error

 

Out of allocation space in segment PAGE_3D at addrress Ox3DBA88.

 

 

We tried configuring pages 3e and 3f also but we got error as overlaping with ROM_4000.

 

Can some one tell how can i efficiently configure all four pages (3c,3d,3e,3f) to allocate the application.

 

Please tell us know how to handle this.

 

Cant we use global memory map.

 

 

 

Thanks,

EMBITEL

Labels (1)
0 Kudos
3 Replies

360 Views
kef
Specialist I

ROM_4000 physically is the same segment as PAGE_3E. ROM_C000 is the same segment as PAGE_3F. I'm don't know what exact error message do you get, but you have to use either ROM_4000 or PAGE_3E, not both at the same time. One of these segments should be commented out and not used. You are allowed to  allocate paged routines in to nonbanked ROM_4000 and ROM_C000. So first try avoiding using ROM_4000 at all. Use it only if your nonbanked routines (ISR's and some runtime routines) and strings don't fit ROM_C000. DEFAULT_ROM placement should be to PAGE_3C, PAGE_3D, PAGE_3E, ROM_C000.

In case there's not enough room for strings, comment out PAGE_3E segment and uncomment ROM_4000. Then edit DEFAULT_ROM placement to PAGE_3C, PAGE_3D, ROM_C000,ROM_4000. Don't forget to add -OnB=b to compiler command line.

 

 

0 Kudos

360 Views
embitel
Contributor I

Hi kef,

 

thanks for your reply.

 

i have tried what u have said still getting the same memory alocation error.

 

my question hw many pages i can use in page window 0x8000 to 0xbfff.

 

or how to use global addrerssing in order  to increase my memory space to allocate my application.

 

Thanks,

Embitel.

 

 

0 Kudos

360 Views
kef
Specialist I

Number of pages is determined by hardware. S12C64 has 64kB of flash or 4 x 16kB P-pages.

  

Global addressing is not available in S12C family. If you need it, then you should use devices like S12X, S12P.

 

It is not clear what errors do you get. Could you reproduce your problem in non- IPsensitive project and show it?

0 Kudos