assertion "first != _Chain_Tail( &ready_queues[ index ] )"
    Sebastian Huber 
    sebastian.huber at embedded-brains.de
       
    Wed May 22 05:41:39 UTC 2019
    
    
  
On 22/05/2019 04:34, Jython wrote:
> finally i find it's usleep call causes that
>
>     while(retry && ((RCC_BDCR & 0x02) == 0))  // External low-speed
>     oscillator ready
>     {
>     retry--;
>
>                 usleep(5000);
>                 #if 0
>                 volatile int k = 0;
>                 (void)k;
>                 int j;
>                 for(j = 0; j < 1000; j++)
>                     k = k + 1;
>                 #endif
>     }
>
You must call usleep() in a task context, e.g. not during system 
initialization.
-- 
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
    
    
More information about the users
mailing list