i.MX RT1064 evk freertos task creation failed

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

i.MX RT1064 evk freertos task creation failed

跳至解决方案
2,298 次查看
allen_tseng
Contributor I

Hi

My project using freertos, lwip stack(socket, http server, mdns, dhcp), uart, usb(composite, host).

And I add canbus function to this project, when the http server connecting, console show "task creation failed", and no reaction anymore.

DTCM, ITCM, OCRAM are not fulled.

擷取.PNG

I think this is about freertos heap or stack problem.

擷取.PNG

But it is using heap_3.c, I can not observe freertos memory usage in run time.

How should I do to solve this porblem?

 

Allen

0 项奖励
回复
1 解答
2,293 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Allen:

 

Please try to increase the heap size from the 'Managed Linker Script' as below picture shows.  Maybe the default value is not enough.

 

danielchen_0-1603773933455.png

 

Regards

Daniel

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,294 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Allen:

 

Please try to increase the heap size from the 'Managed Linker Script' as below picture shows.  Maybe the default value is not enough.

 

danielchen_0-1603773933455.png

 

Regards

Daniel

0 项奖励
回复
2,288 次查看
allen_tseng
Contributor I

Hi Daniel

Thanks for your reply

My project had already set heap 0x10000 and stack 0x5000 before.

And still occur this problem.

I set heap size to 0x20000, the problem is solved.

One more question.

How do check the heap and stack usage?

 

Allen

0 项奖励
回复
2,280 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Allen:

 

Sorry , current IDE can not show the heap usage when you using heap_3 .  MCUXpresso  IDE can show the FreeRTOS heap usage if you  are using all other heaps except heap_3.   

 

Regards

Daniel

0 项奖励
回复