Does .text/.text_vle section have to be contiguously allocated?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Does .text/.text_vle section have to be contiguously allocated?

1,059 Views
codehead9
Contributor I

I have a large .text_vle section and need to allocate some memory at a fixed address in the middle of the region that would otherwise fit it.

I am using CW for MPC55xx, MPC56xx 2.10.

Is there a way to configure the LCF file place the .text_vle section around this?

Labels (1)
0 Kudos
2 Replies

459 Views
TICS_Fiona
NXP Employee
NXP Employee

Hello Ben

.text and.text_vle section can be allocated at different memory area.

You can place the .text_vle at a fixed address by LOAD command in link command file, or create a new memory area specially for .text_vle section, and place it into this area.

To understand the commands and directives in link command file, please review chapter 13 in:

http://cache.freescale.com/files/soft_dev_tools/doc/ref_manual/CWMCUPABTR.pdf

The application note in the link below should also be helpful:

http://cache.freescale.com/files/soft_dev_tools/doc/app_note/AN4497.pdf

Hope this helps!

Best Regards

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

459 Views
codehead9
Contributor I

Thanks for the reply. Let me clarify my question a little.

Does text_vle have to be allocated contiguously? I have three 128kb sectors available:

0x20000 length 0x20000 (128kb)

0x40000 length 0x20000 (128kb)

0x60000 length 0x20000 (128kb)


I have some fixed memory that occupies 0x40000-0x42FFF.

Can my .text_vle be larger than 0x3D000 (244kb)? This would assume that allocate it to 0x43000-0x7FFFF.

Thanks!

0 Kudos