STM32F4 hangs on _spi_wait_s

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

stormracer
Posts: 14
Joined: Mon Jun 11, 2012 9:50 pm

Re: STM32F4 hangs on _spi_wait_s

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F4 hangs on _spi_wait_s

Post by Giovanni »

It is limited just by the RAM availability.

Giovanni
stormracer
Posts: 14
Joined: Mon Jun 11, 2012 9:50 pm

Re: STM32F4 hangs on _spi_wait_s

Post 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
Attachments
BuffOVL.png
BuffOVL.png (167.34 KiB) Viewed 2753 times
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F4 hangs on _spi_wait_s

Post 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
Post Reply