PE CPU Component, Build Options, MemoryArea Qualifier

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

PE CPU Component, Build Options, MemoryArea Qualifier

跳至解决方案
1,501 次查看
sys
Contributor III

Hello,

I'm using CW 10.6 with PE on Kinetis MKE02Z32VLH4.

I have a question about the CPU Component on PE: in the tab "Build options", for every ROM/RAM Areas u have to set the "Qualifier" field.

Can someone explain me the various options? (R/RW/RX/RWX).

I tried the "Help on component", but there isnt the help about the "Build Options" tab...

Thanks in advance!

1 解答
1,305 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Sandro:

That question is more related to the linker rather than Processor Expert.

From a user perspective changing the qualifier will not have any effect, unless you manually modify the linker script (ProcessorExpert.ld).

The linker uses those attributes to allocate input sections which are not directed to a specific output section.

:smileyinfo: In your CodeWarrior installation there is a file (ld.pdf) describing this. Check Chapter 3.7 MEMORY Command:

C:\Freescale\CW MCU v10.6\Cross_Tools\arm-none-eabi-gcc-4_7_3\share\doc\gcc-arm-none-eabi\pdf\ld.pdf

I recommend you not to change the qualifier and go with the defaults. All should be fine :smileyhappy:.


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

4 回复数
1,305 次查看
BlackNight
NXP Employee
NXP Employee

R: Read

RW: Read/Write

RX: Read/Execute

RWX: Read/Write Execute

Erich

1,305 次查看
sys
Contributor III

Thanks Erich,

but I would like to go more deeply...the tooltip says "...specify where this memory section will be allocated".

But anyway I select in the other fields Address and Size of the memory, so what this qualifier precisely does to the memory that I allocate with Address/Size fields?

I take this opportunity to ask also this: is it possible to "split" the m_text default area (where the code is) in 2? For example one piece of m_text from 0x410 to 0x7000 and the other one from 0x7200 to 0x7BF0? numbers are for example.

thanks again,

Sandro

0 项奖励
回复
1,306 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Sandro:

That question is more related to the linker rather than Processor Expert.

From a user perspective changing the qualifier will not have any effect, unless you manually modify the linker script (ProcessorExpert.ld).

The linker uses those attributes to allocate input sections which are not directed to a specific output section.

:smileyinfo: In your CodeWarrior installation there is a file (ld.pdf) describing this. Check Chapter 3.7 MEMORY Command:

C:\Freescale\CW MCU v10.6\Cross_Tools\arm-none-eabi-gcc-4_7_3\share\doc\gcc-arm-none-eabi\pdf\ld.pdf

I recommend you not to change the qualifier and go with the defaults. All should be fine :smileyhappy:.


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,305 次查看
BlackNight
NXP Employee
NXP Employee

Yes, you can split a memory area: add with the '+' a new segment, reduce the size of the previous one and set the size of the new one.

Erich

0 项奖励
回复