i.MX RT1064 evk freertos task creation failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX RT1064 evk freertos task creation failed

Jump to solution
1,568 Views
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 Kudos
1 Solution
1,563 Views
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

View solution in original post

0 Kudos
3 Replies
1,564 Views
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 Kudos
1,558 Views
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 Kudos
1,550 Views
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 Kudos