AnsweredAssumed Answered

Building a small CAN-Bus with CAN1 and CAN2 module of the STM32F105

Question asked by mubin.icyer on Apr 3, 2014
Latest reply on Apr 4, 2014 by mubin.icyer
I want to build a small CAN-Bus Network using CAN1 and CAN2 module of the STM32F105RCT6. Before testing the network I noticed something in the standard periphery library from ST.

In my startup file startup_stm32f10x_md.c all of the IRQ handlers are listed (defined or whatever) except IRQHandlers for CAN2. I have following Handlers regarding to CAN:

USB_HP_CAN1_TX_IRQHandler,    /*!< 19: USB High Priority or CAN1 TX         */
USB_LP_CAN1_RX0_IRQHandler,   /*!< 20: USB Low  Priority or CAN1 RX0        */
CAN1_RX1_IRQHandler,                  /*!< 21: CAN1 RX1                             */
CAN1_SCE_IRQHandler,                 /*!< 22: CAN1 SCE                             */

Where is the IRQHandlers for CAN2. Can I just add them at the end of list?

And another issue: In file stm32f10x_can.c the functions CAN_FilterInit and CAN_SlaveStartBank use only one parameter assuming that the CAN module being used is number 1. Is that correct?

What shall I do if I want to init a filter for CAN2?