how to run some codes before tasks?

rtel wrote on Tuesday, July 09, 2013:

I can run it under debugger. Could you please provide more steps helping me find out the prolbem?

The first thing to do would be to run the code with the debugger attached, wait until it crashes, then pause the debugger and see where/what the program is executing.

Regards.

richard_damon wrote on Wednesday, July 10, 2013:

Remember, that as you increase the sizes of task stacks, you are probably going to also need to increase the size of your heap to make room for them.

In the debugger, you can put a breakpoint in the Overflow Hook function, so that when it trigger, you can look at what task is overflowing. That task will either need to be given more memory, or made to use less.

You can possible look around your system when the breakpoint is triggered, to figure out why that task needs so much memory, that might help you.