New CAN Bus Library for the stm32f103

Working libraries, libraries being ported and related hardware
mack
Posts: 3
Joined: Sat Feb 08, 2020 2:33 am

Re: New CAN Bus Library for the stm32f103

Post by mack »

Thank you, works well for me as well. :D

Arduino IDE 1.8.13 official core
Bluepill - (128k)
65HVD234 transceiver

I do get this warning:

WARNING: library eXoCAN claims to run on STM32F1 architecture(s) and may be incompatible with your current board which runs on stm32 architecture(s).

kjn
Posts: 4
Joined: Wed Apr 15, 2020 4:21 am

Re: New CAN Bus Library for the stm32f103

Post by kjn »

mack wrote:
Wed Jul 08, 2020 12:40 am
WARNING: library eXoCAN claims to run on STM32F1 architecture(s) and may be incompatible with your current board which runs on stm32 architecture(s).
Yes I had this too, it said the example wouldn't suit my board, this is just a pretty straightforward library definition.

There are a few funky things in the library too, which I'm sure serve some purpose to the original author, but could be tidied up.

e.g. BusType in msgFrm struct seems unnecessary (and confusing)

with a little bit of work it would be a perfect library to include with the core.

Ideally it would be refactored to match the other Arduino can libraries (e.g. avr_can, due_can or FlexCAN) for ease of use and porting of existing code.

I might even have a look at this, time permitting.

mack
Posts: 3
Joined: Sat Feb 08, 2020 2:33 am

Re: New CAN Bus Library for the stm32f103

Post by mack »

It would be very good if it could use the 2nd CAN port of the stm32F105RBT.

Btw I like the way you can select Alternate pins. In my case I did use PA11,PA12

kjn
Posts: 4
Joined: Wed Apr 15, 2020 4:21 am

Re: New CAN Bus Library for the stm32f103

Post by kjn »

mack wrote:
Thu Jul 09, 2020 4:19 am
It would be very good if it could use the 2nd CAN port of the stm32F105RBT.

Btw I like the way you can select Alternate pins. In my case I did use PA11,PA12
Are the STM32F105xxxx parts supported by this core?

mack
Posts: 3
Joined: Sat Feb 08, 2020 2:33 am

Re: New CAN Bus Library for the stm32f103

Post by mack »

No the stm32F105 isn't supported. It is very similar to the 103. I hope to add the 105 for my purposes but it will be the first time for to attempt to add a new variant.

Post Reply

Return to “Libraries & Hardware”