AnsweredAssumed Answered

STM32 CanBus cannot get out of interrupt handler

Question asked by karakaya.mehmet on Feb 28, 2017
Latest reply on Mar 1, 2017 by T J
hello dear forum,  I try to make CANBUS of STM32F103RC work I managed to make CANBUS send message in 
loopback mode however when I turn on receive interrupt the processor hangs at first message and watchdog
resets the micro
--------------------------------------------- 
CAN_ITConfig(CAN1, CAN_IT_FMP0, ENABLE);
---------------------------------------------
I suspect the code enters the interrupt handler and cannot leave
it I want to ask how do I fill following lines to reset interupt flag and  pending bit ( in std library I could
not find any information about this )
---------------------------------------------
void USB_LP_CAN1_RX0_IRQHandler(void) { CAN_ClearFlag(CAN1, ??????????);
CAN_ClearITPendingBit(CAN1,??????????);    CanRxMsg RxMessage;    CAN_Receive(CAN1, CAN_FIFO0, &RxMessage);
---------------------------------------------
thank you

Outcomes