STM32F105 and CAN2

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
wertex
Posts: 14
Joined: Wed Jul 10, 2013 2:36 pm

STM32F105 and CAN2

Post by wertex »

Does ChibiOS support CAN2 on STM32F105? I try to compile program, but get error "C:/ChibiOS/os/hal/platforms/STM32/can_lld.c:448:5: warning: implicit declaration of function 'rccEnableCAN2' [-Wimplicit-function-declaration]"
I see, that rccEnableCAN2 define only for STM32F4xx platform.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F105 and CAN2

Post by Giovanni »

Hi,

I will open a ticket about this and add the missing macros in 2.6.6. Of course you can go ahead and add the missing macro in order to continue your work.

Giovanni
wertex
Posts: 14
Joined: Wed Jul 10, 2013 2:36 pm

Re: STM32F105 and CAN2

Post by wertex »

Ok, thank you!
akpc806a
Posts: 1
Joined: Tue Apr 14, 2015 6:06 am

Re: STM32F105 and CAN2

Post by akpc806a »

Still does not fixed in 2.6.7
I just copied the rccEnableCAN2 definition from STM32F4xx\stm32_rcc.h. Works fine
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F105 and CAN2

Post by Giovanni »

Added a ticket about that: https://sourceforge.net/p/chibios/bugs/578/

Giovanni
Post Reply