Simulator hangs on 'wait until..'

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

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
pito
Posts: 199
Joined: Sun Nov 06, 2011 3:54 pm

Simulator hangs on 'wait until..'

Post by pito »

Hi, when debugging under iar with simulator, it is hanging everywhere where we wait on some flags be ready ie.(VL and F4 Disco demo) after starting (or reseting) the debugger it hangs in hal_lld.c (on every 'while..') and it never enters into the line with 'int main(void)'. (a memory setup issue ??)

Code: Select all

 while (!(RCC->CR & RCC_CR_HSIRDY))
    ;                                       /* Wait until HSI is stable.    */


Is that a feature of the simulator or a proper simulator setup/config is needed?
Thanks.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Simulator hangs on 'wait until..'

Post by Giovanni »

Hi,

It is because the simulator only simulates the core not the RCC peripheral (nor any other peripheral) so it never exits that loop because there is no peripheral to set that bit.

You may disable the initialization phase if you really need a simulator.

Giovanni
pito
Posts: 199
Joined: Sun Nov 06, 2011 3:54 pm

Re: Simulator hangs on 'wait until..'

Post by pito »

..we need better simulators :)
Thanks!
Post Reply