Page 4 of 4

Re: STM32F4 hangs on _spi_wait_s

Posted: Thu Sep 06, 2012 3:50 pm
by stormracer
Hello,
now i get it working. Actually i have no problem. After i checked the stack size of all threads and test them.
How large is the maximum stack size in sum of all threads?

Christian

Re: STM32F4 hangs on _spi_wait_s

Posted: Thu Sep 06, 2012 3:54 pm
by Giovanni
It is limited just by the RAM availability.

Giovanni

Re: STM32F4 hangs on _spi_wait_s

Posted: Mon Sep 17, 2012 12:19 pm
by stormracer
Hello,
i got a stack overflow in the main after starting the application. I step over the first two commands (halInit(), chSysInit()). The stack gets normal after some more steps.
Could this be a problem?
I've attached a snapshot where i've done 4 steps.

Christian

Re: STM32F4 hangs on _spi_wait_s

Posted: Mon Sep 17, 2012 12:35 pm
by Giovanni
Most likely a bug of the debugger plugin triggered by a stack entirely unused, this is why it fixes itself after few steps.

Nothing to worry about.

Giovanni