cancel
Showing results for 
Search instead for 
Did you mean: 

use dual CAN on stm32f105,can2 can not send

55722827
Associate
Posted on July 22, 2010 at 09:50

use dual CAN on stm32f105,can2 can not send

11 REPLIES 11
Posted on May 17, 2011 at 13:59

>>The problem is not CAN2, but CAN1. If the interrupt CAN1_RX0_IRQn is enabled, the microcontroller hangs up some cycles after the reception of a CAN message.

I'm not a CAN guy, but the classic hang up issue with interrupts on the STM32 (M3/NVIC) is that if you fail to clear all the pending interrupts it will tail-chain back into your IRQ code in a tight circle, and no user space code will run.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
cb
Associate II
Posted on May 17, 2011 at 13:59

Ok, I got it: In the start-up code, I used the wrong name for the interrupt handler,

USB_LP_CAN1_RX0_IRQHandler

instead of

CAN1_RX0_IRQHandler.

Now it works fine.