Content originally posted in LPCWare by trongtinbk on Tue Dec 06 03:13:52 MST 2011
OMG! After init CAN2, it didn't jump to HardFault anymore :). I still don't understand why! I don't use CAN2, why I must init it! I try 3 different LPC1769 and this error always happens.:confused:
I still a small problem! When I debug, debugger always suspends at a line in main.c of 1769SLAVE project although I didn't create any breakpoint.I hadn't sent any CAN messages before so CAN1RxDone can't equal TRUE.:eek:
while(1)
{
if(CAN1RxDone == TRUE) // debugger suspended here
{
CAN1RxDone = FALSE;
CANCheck();
}
}
return 0;
}
Thank for your help!:)