Hello,
I’m working with MC60 and I want to get coordinates in a certain time interval by using multitasking. In proc_subtask1 function, while using the GPS read function (RIL_GPS_Read(“GPSRead=”,rdBuff) the CPU is getting restarted again and again. Please follow the sample function.
void proc_subtask1(s32 TaskId)
{
bool keepGoing = TRUE;
ST_MSG subtask1_msg;
u8 rdBuff[1000];
Ql_Sleep(3000);
RIL_GPS_Read("GPSRead=<rmc>",rdBuff);
while(1){
APP_DEBUG("%s\r\n",rdBuff);
Ql_Sleep(3000);
}
}
Now in the documentation, it was saying that we cannot use QL_sleep() function and the CPU will get restarted for that. But when I don’t use RIL_GPS_Read(“GPSRead=”,rdBuff); this function, the subtask is working fine with QL_sleep. Even the CPU is getting restated without using Ql_sleep() function while using GPS read function.
Please help me with this.
Thanks.