'hard fault' Interrupt occurs in project of TWR-K60N512_Quick_Start_Demo

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

'hard fault' Interrupt occurs in project of TWR-K60N512_Quick_Start_Demo

995 次查看
Tim_X
Contributor I

Hi,guy

I use socket for testing enet,but the interrupt of hard fault  occuring.

I modify  some codes  in TWR-K60N512_Quick_Start_Demo. just add a task for listen the port 502. but when send some datas,  i found the unhandled interrupt 'hard fault' was occured,by using terminal window application  . why ?if someone has experience doing this it would be a huge help for me.

thx

 

char sendbuf[13] ={0x0,0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc};

….

newsockid = accept(initsockid, &local_sin, &local_sin_len);

if (newsockid != RTCS_SOCKET_ERROR)

{

send(newsockid, sendbuf, 13, 0);

 }

 …

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

688 次查看
slaroche
Contributor II

I sometimes get that unhandled interrupt too.  The task causing the fault waits for a lwevent to trig, then it picks up a received message from the flexcan module.  The PC in the memory dump points to the "__enable_interrupt" in the PSP, but I don't really know what causes that fault.