FLAT8000_P30 memory

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

FLAT8000_P30 memory

跳至解决方案
1,350 次查看
michaelsarafidi
Contributor II

hi there,

 

We are using HC12DG256  and Codewarrior 3.1. These days we are evaluating Codewarior 5.1.

We have opened our project with CW 5.1 built it and run it successfully.

 

What i want to ask is what is FLAT8000_P30 or flash window (memory from 0x8000 to 0xBFFF).

At CW3.1 this area was empty (0xFF), at CW5.1 is full.

 

Thanks in advance.

 


标签 (1)
1 解答
1,257 次查看
RadekS
NXP Employee
NXP Employee

At address 0x8000 to 0xBFFF is flash memory window.

S12DG256 is 16bit MCU, therefore we can directly address only 64kB memory range (0x0000~0xFFFF).

S12DG256 contain 256kB flash, this flash is divided to sixteen 16kB pages (page 30~3F). We can access whole flash trough memory window. At address 0x8000 to 0xBFFF is visible page content according PPAGE register settings. Two pages (3E, 3F) are accessible directly (0x4000~0x7FFF, 0xC000~0xFFFF) and we call them as non-banked.

Default placement for your code is paged flash (banked). Therefore you see your code at page 30.

For details, please check your project *.prm file. Placement of your code you can drive by #pragma commands (for example):

#pragma CODE_SEG NON_BANKED

//your code

#pragma CODE_SEG DEFAULT


在原帖中查看解决方案

2 回复数
1,258 次查看
RadekS
NXP Employee
NXP Employee

At address 0x8000 to 0xBFFF is flash memory window.

S12DG256 is 16bit MCU, therefore we can directly address only 64kB memory range (0x0000~0xFFFF).

S12DG256 contain 256kB flash, this flash is divided to sixteen 16kB pages (page 30~3F). We can access whole flash trough memory window. At address 0x8000 to 0xBFFF is visible page content according PPAGE register settings. Two pages (3E, 3F) are accessible directly (0x4000~0x7FFF, 0xC000~0xFFFF) and we call them as non-banked.

Default placement for your code is paged flash (banked). Therefore you see your code at page 30.

For details, please check your project *.prm file. Placement of your code you can drive by #pragma commands (for example):

#pragma CODE_SEG NON_BANKED

//your code

#pragma CODE_SEG DEFAULT


1,257 次查看
GordonD
Contributor IV

Michael,

Where are you seeing the text "FLAT8000_P30" in the .map file? In the .prm file?

Regards,

Gordon

0 项奖励
回复