region `m_text' overflowed by 2612 bytes

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

region `m_text' overflowed by 2612 bytes

ソリューションへジャンプ
2,840件の閲覧回数
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 解決策
2,295件の閲覧回数
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 返答(返信)
2,296件の閲覧回数
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,295件の閲覧回数
vigneshkumarp
Contributor III

Hi David E Seymour,

Thank you so much it worked fine now.

0 件の賞賛
返信