Jaime R wrote:
1.- Why is this message appearing?
2.- How to get the stack size for an specific task?
3.- If the application is crashing with this simple tasks, will it be enought memory when I add more complex tasks(USB, CAN, Main application)?
4.-What would be the maximum stack size that I can use for an specific task?
5.-Is there a restriction for the stack size that I can use for ALL the tasks?
1. there is not enough RAM memory to satisfy an allocation request for 225 bytes.
2. the tk command shows the tasks with their maximum and used stack sizes.
3. no. freescale has used up almost the entire 32K of SRAM just to implement their toy applications. You will have to find memory that they have wasted, and change their code to free it up for your own use.
4. the limit for all uses is the total amount of RAM on the chip, which cannot be expanded.
Fortunately, the stack sizes are where most of the memory is wasted. The size for "Inet main" is set by the linker file, and others are set in tables. Make sure you run the tasks, then see what they actually use with the tk command. Then reduce the task sizes to provide memory for other uses.
In your system design, you may need to minimize the total number of tasks, and in programming be careful about use of arrays or buffers on the stack(s).
You mentioned USB. I don't think the 52235 supports USB. The USB on the eval board is for the debugging device only (?)
Other RTOS/IP combinations might be a better fit for the limited RAM memory of these chips.