PE CPU Component, Build Options, MemoryArea Qualifier

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

PE CPU Component, Build Options, MemoryArea Qualifier

ソリューションへジャンプ
1,514件の閲覧回数
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,318件の閲覧回数
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,318件の閲覧回数
BlackNight
NXP Employee
NXP Employee

R: Read

RW: Read/Write

RX: Read/Execute

RWX: Read/Write Execute

Erich

1,318件の閲覧回数
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,319件の閲覧回数
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,318件の閲覧回数
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 件の賞賛
返信