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.
I think this is about freertos heap or stack problem.
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
已解决! 转到解答。
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.
Regards
Daniel
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
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