ESP8266 Developer Zone The Official ESP8266 Forum 2015-08-03T10:24:08+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=868 2015-08-03T10:24:08+08:00 2015-08-03T10:24:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=868&p=3019#p3019 <![CDATA[Re: Fatal exception (9)]]>
您可以参考帖子 viewtopic.php?f=61&t=292

在 eagle.S 中查找您出错的地址,对应的是哪个函数。添加 log,进一步查证问题原因。

如果您的问题仍未解决,可以提供您的测试代码,我们将协助您一同查证。

Statistics: Posted by ESP_Faye — Mon Aug 03, 2015 10:24 am


]]>
2015-07-30T18:37:19+08:00 2015-07-30T18:37:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=868&p=2942#p2942 <![CDATA[Fatal exception (9)]]> 附上错误打印信息和s文件部分信息:
Fatal exception (9):
epc1=0x4010532b, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000007, depc=0x00000000

UDPSend.h
typedef struct _SendInfo{
volatile unsigned int iValid;
volatile unsigned int iValidTime;
struct espconn *iConn;
SOCKIP iRemoteIP;
int iRemotePort;
int iLength;
char iBuffer[512];
}SendInfo;


user1.1024.new.2.S:
int sendTo(SendInfo *aInfo){
4010531c:f0c112 addia1, a1, -16
4010531f:21c9 s32i.na12, a1, 8
40105321:3109 s32i.na0, a1, 12
40105323:02cd mov.na12, a2
if (aInfo && aInfo->iConn && aInfo->iConn->proto.udp){
40105325:b2ac beqz.na2, 40105354 <sendTo+0x38>
40105327:2228 l32i.na2, a2, 8
40105329:72ac beqz.na2, 40105354 <sendTo+0x38>
4010532b:2258 l32i.na5, a2, 8
espconn_sent(aInfo->iConn, (unsigned char *)aInfo->iBuffer, (unsigned short)aInfo->iLength);

return aInfo->iLength;
}

return false;
4010532d:020c movi.na2, 0
}
}
}
int sendTo(SendInfo *aInfo){
if (aInfo && aInfo->iConn && aInfo->iConn->proto.udp){
4010532f:211527 beqa5, a2, 40105354 <sendTo+0x38>
os_memcpy(aInfo->iConn->proto.udp->remote_ip, &aInfo->iRemoteIP, 4);
40105332:3ccb addi.na3, a12, 12
40105334:440c movi.na4, 4
40105336:25cb addi.na2, a5, 12
40105338:ec6601 l32ra0, 401004d0 <call_user_start_local+0x298>
4010533b:0000c0 callx0a0

aInfo->iConn->proto.udp->remote_port = aInfo->iRemotePort;
4010533e:2c28 l32i.na2, a12, 8
40105340:4c58 l32i.na5, a12, 16
40105342:2238 l32i.na3, a2, 8

espconn_sent(aInfo->iConn, (unsigned char *)aInfo->iBuffer, (unsigned short)aInfo->iLength);
40105344:0a1c42 l16uia4, a12, 20
int sendTo(SendInfo *aInfo){
if (aInfo && aInfo->iConn && aInfo->iConn->proto.udp){
os_memcpy(aInfo->iConn->proto.udp->remote_ip, &aInfo->iRemoteIP, 4);

aInfo->iConn->proto.udp->remote_port = aInfo->iRemotePort;
40105347:0359 s32i.na5, a3, 0

espconn_sent(aInfo->iConn, (unsigned char *)aInfo->iBuffer, (unsigned short)aInfo->iLength);
40105349:18cc32 addia3, a12, 24
4010534c:fff301 l32ra0, 40105318 <isUDPInited+0xc>
4010534f:0000c0 callx0a0

return aInfo->iLength;
40105352:5c28 l32i.na2, a12, 20
}

return false;
}

Statistics: Posted by janson — Thu Jul 30, 2015 6:37 pm


]]>