2010-07-22 12:50 AM
use dual CAN on stm32f105,can2 can not send
2011-05-17 04:59 AM
>>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.2011-05-17 04:59 AM
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.