PRAM configuration in MC9s21eq512 controller

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

PRAM configuration in MC9s21eq512 controller

623 次查看
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 回复

540 次查看
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 项奖励
回复