PRAM configuration in MC9s21eq512 controller

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

PRAM configuration in MC9s21eq512 controller

304 Views
dalmeda
Contributor I

I am using MC9S12eq512 with code warrior in my project. this controller contain 32k  but default we can access only 8k RAM area. I want to increase my RAM area . please helpme how will configure the PRAM area in my project.

Labels (1)
0 Kudos
1 Reply

221 Views
kef
Specialist I

Probably you meant MC9S12XEQ512?

 

It depends on what are you going to do with this RAM. In case all your data arrays are <=4kB (which is size of RAM R-page window), just surrend your banked RAM variable declarations and definitions with two pragmas.

 

#pragma DATA_SEG __RPAGE_SEG PAGED_RAM

//add your data here

#pragma DATA_SEG DEFAULT

 

Depending on your code you may need to change setting of Compiler for HC12 -> Code Generation -> Assume objects are in same page for = never for different objects.

0 Kudos