map文件链接:https://pan.baidu.com/s/1aPRLBJejX9vP7hQefBpIsw
提取码:cv4t
后面调试定位到__lopp_entry中while退出,return之后就会msg: Instruction access fault
static int __loop_entry(void *arg)
{
paho_mqtt_cb_t *cb;
cb = arg;
while((NULL != cb) && (cb->stop == 0))
{
if((NULL != cb) && MQTTIsConnected(&cb->client))
{
(void) MQTTYield(&cb->client, CONFIG_PAHO_LOOPTIMEOUT);
}
///< for some operation system ,the task could not be awake when release,so do some wait to give up the cpu
osal_task_sleep(1);///< when disconnect, this has been killed
}
cb->stoped =1;
return 0;
}
单独写一个测试程序,只要嵌套create task,task退出时就会出现同样的错误,出错log都一样,如下
Exception Entry--->>>
mcause 38000001, mepc 00000000, mtval 00000000
Exception code: 1
msg: Instruction access fault