MCU Codewarrior: Problem report is - region 'm_data' overflowed

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

MCU Codewarrior: Problem report is - region 'm_data' overflowed

跳至解决方案
3,590 次查看
armendgecaj
Contributor III

Hi all,

 

i am working with Kinteis K -series (with Codewarrior).

 

I am developing an algorithm, that produces a random labyrinth (with C).

Now i will show my labyrinth on a LCD Display.

 

But if i build my Project in Codewarrior i get the problem report: region 'm_data' overflowed by 12808 bytes.

 

I researched that the memory of the Kinetis K - family is seperated in two (m_data and m_data_20000000). I looked in my Project map file but my memory is not seperated.

 

I looked after another solution but i did not find any.

 

 

Does anybody have a solution?

Can it be that the memory requirements of my algorithm is to big for my microcontroller?

Or can i do something in the settings of Codewarrior to solve the Problem.

 

 

 

Armend

Original Attachment has been moved to: mapFile.map.zip

标签 (1)
0 项奖励
回复
1 解答
3,293 次查看
TICS_Fiona
NXP Employee
NXP Employee

Hello Armend

Usually,  ‘m_data’ is used to save global variables, stack, heap.  And the array ’abyrinth’ in your application is placed in .bss, which also locates in ‘m_data’. Since the ’abyrinth’  is a big array, please try to enlarge the size of ‘m_data’  in your link command file.


Best Regards
Fiona Kuang
TIC - Technical Information Center
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

2 回复数
3,294 次查看
TICS_Fiona
NXP Employee
NXP Employee

Hello Armend

Usually,  ‘m_data’ is used to save global variables, stack, heap.  And the array ’abyrinth’ in your application is placed in .bss, which also locates in ‘m_data’. Since the ’abyrinth’  is a big array, please try to enlarge the size of ‘m_data’  in your link command file.


Best Regards
Fiona Kuang
TIC - Technical Information Center
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

3,293 次查看
armendgecaj
Contributor III

Hi Kuang,

i thank you very much. I tried your suggestion and it works. As you told me i changed the length of 'm_data' in my command file.

Agian: thank you!

If you have some time can you explain me why this works. Well, why can i enlarge 'm_data'?

I thought this is given me by my microcontroller.

Is 'm_data' a part of the memory of my microcontroller?

If yes, why can i change it?

Thank you very much!

Best Regards

Armend

0 项奖励
回复