use dual CAN on stm32f105,can2 can not send
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-07-22 12:50 AM
Posted on July 22, 2010 at 09:50
use dual CAN on stm32f105,can2 can not send
This discussion is locked. Please start a new topic to ask your question.
11 REPLIES 11
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:59 AM
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..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:59 AM
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.
- « Previous
-
- 1
- 2
- Next »