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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

983件の閲覧回数
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 返信

676件の閲覧回数
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.