Open wuhuaroubj opened 6 years ago
What is this? Do you mind to give an explanation?
in my project, freertos is used and GSM_RTOS set as 1 , then mutex is used.
There are 2 tasks,
void GSM_Update_Thread( void const params )
{
while( 1 )
{
/ Process GSM update */
GSM_Update( &GSM );
}
}
void mainTask( void const* argument ) { uint8_t ret; uint32_t i = 0, j = 0;
printf( ">>main task start\r\n" );
// gsm power control
/* Init GSM library with PIN code */
GSM_Init( &GSM, GSM_PIN, 115200, GSM_Callback );
while( 1 )
{
//osDelay(1000);
/* Process callback checks */
GSM_ProcessCallbacks( &GSM );
if( ( gsmRes = GSM_GPRS_Attach( &GSM, GSM_APN, GSM_APN_USER, GSM_APN_PASS, 1 ) ) == gsmOK )
{
printf( "GPRS Attached\r\n" );
}
}
assert configASSERT( pxTCB == pxCurrentTCB ); happened, do you have any good idea for this problem?
pxTCB : 0x20000B30 pxCurrentTCB: 0x20003738