PRAM configuration in MC9s21eq512 controller

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

PRAM configuration in MC9s21eq512 controller

624件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
1 返信

541件の閲覧回数
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 件の賞賛
返信