AnsweredAssumed Answered

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

Question asked by tian xiang on Sep 1, 2011
Latest reply on Apr 26, 2012 by slaroche

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);

 }

 …

Outcomes