'.text' will not fit in region `m_text !!!! Need Help!

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

'.text' will not fit in region `m_text !!!! Need Help!

跳至解决方案
5,041 次查看
edwardkäding
Contributor III

Dear Freescale Community,

I am using Code Warrior 10.5 with Processor Expert.

I created a programm for the FRDM KL02Z with the integrated MKL02Z32VFM4 MCU with 5 Input signals, 1 ADC and 1 TUI.

Everything works fine with this processor expert application.

Then I wanted to have the same program for a MKL02Z8VFG4 MCU again using processor expert. Made all the settings and wrote the adjusted code.

When building the code I always get the Error notice: .../programme/freescale - code warrior/cw mcu v10.5/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/bin/ld.exe: Kinetis_CABV1.1.0.elf section `.text' will not fit in region `m_text'.

At first I thought my programm is too large. Then I set up a new project with the same configurations but this time without the code and I get the same Error notice !

Just what is going on? What could I have done wrong? Really need to get this working.

Thank you in advance.

Edward.

标签 (1)
0 项奖励
1 解答
2,925 次查看
edwardkäding
Contributor III

Hello Erich,

I have found all your great posts due to this issue of reducung code size.

You do an excellent job making tutorials.

Thank you from all the noobs like me.

Edward.

在原帖中查看解决方案

0 项奖励
3 回复数
2,925 次查看
BlackNight
NXP Employee
NXP Employee

Hello,

I suggest to have a look at the linker file (Project_Settings\Linker_Files\ProcessorExpert.ld) and check the size for the .txt area.

Maybe it is smaller as it should?

Check in the console (or project settings) if this linker file is indeed used.

You might try to artificially (for testing) increase the .text size to find out in the map file what is taking more space than necessary.

I hope this helps,

Erich

2,925 次查看
edwardkäding
Contributor III

Hello Erich,

Thank you for quick response.

You where right to analyse the ..\ProcessorExpert.Id file and check the available size of the MCU.

Sadly, the Processor Expert tool produces so much code that my Flash of the MKL02Z8VFG4 MCU was immediately full.

I have to start all over again without Processor Expert. Maybe Processor Expert should be adjusted to this kind of problem.

Thank you again,

Edward.

0 项奖励
2,926 次查看
edwardkäding
Contributor III

Hello Erich,

I have found all your great posts due to this issue of reducung code size.

You do an excellent job making tutorials.

Thank you from all the noobs like me.

Edward.

0 项奖励