region `m_text' overflowed by 2612 bytes

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

region `m_text' overflowed by 2612 bytes

跳至解决方案
3,566 次查看
vigneshkumarp
Contributor III

I'm using my own board of MKV10Z32VLC7(which having 32-bit, Flash memory- 32KB, RAM - 8KB), when I'm trying to port the code(size about 29KB) from MC56F82726(32-bit, Flash memory- 32KB, RAM - 6KB) to MKV10Z32VLC7, it shows the error like "region `m_text' overflowed by 3136 bytes". But the same code is used for MC56F82726 of same flash memory(32KB) working fine and the code get downloaded. How to get out of this error??  MarMipavelrechDavidSkubanbvicentegomezkhumphriMandar‌Deactivated user‌dhavalhttps://community.nxp.com/community/kinetis

0 项奖励
回复
1 解答
3,021 次查看
DavidS
NXP Employee
NXP Employee

Hi,

Please review your *.map file to see how much flash space the application wants.  If you have any code optimization you can do to reduce flash space that helps.

You can also open the Properties of the project and change the Optimization Level being used.  Typically it defaults to None so setting it to something higher can help save space.

image001.png

Clean and then re-build project and look at *.map file again.

Lastly, if neither help you probably need a KV device with more flash.

Regards,

David

在原帖中查看解决方案

2 回复数
3,022 次查看
DavidS
NXP Employee
NXP Employee

Hi,

Please review your *.map file to see how much flash space the application wants.  If you have any code optimization you can do to reduce flash space that helps.

You can also open the Properties of the project and change the Optimization Level being used.  Typically it defaults to None so setting it to something higher can help save space.

image001.png

Clean and then re-build project and look at *.map file again.

Lastly, if neither help you probably need a KV device with more flash.

Regards,

David

3,021 次查看
vigneshkumarp
Contributor III

Hi David E Seymour,

Thank you so much it worked fine now.

0 项奖励
回复