2018-06-12 12:44 AM
Hello everyone,
I am looking for a board with a STM32F4 or any other microcontroller (STM32) with 2 CAN. The main issue I am facing, is finding a developpement board where the 2 CAN inputs/outputs are available (for example in the STM32F4 discovery board, one is connected to the USB, which doesn't suit me).
So if anyone knows a board that could fit my needs !
In advance, thanks !
#board #stm32f4 #can #development Note: this post was migrated and contained many threaded conversations, some content may be missing.2018-06-12 03:56 AM
Hello,
STM3240G-EVAL and STM3241G-EVAL boards have two CAN interfaces (but only one transceiver).
All CAN signals are available on external headers however:
2018-06-12 05:48 AM
The RedDragon407 has 2 CAN ports, demo'd functionality several years back.
There was an issue with pins swaped on a jumper but was able to work with it, they might have reved the board since.
CAN code and jumper info
https://community.st.com/0D50X00009XkiDZSAZ
2018-06-12 07:02 AM
That would work exactly the same way as if I had two transceivers, right ?
For you to understant a bit more, I am trying to basically create a link between two CAN network working at a different rate. These boards could work for this application, right ?
Thanks !
Edit : I just looked at the prices of these two boards and oh boy, it's pretty expensive ... There aren't any cheaper boards doing the same thing, no ?
2018-06-12 07:44 AM
EVAL boards are pretty expensive but the only ones that have onboard transceiver and DB9 connector.
As a much cheaper alternative you may want to go with a
and mount external transceivers such as (just picked up the first Amazon choice, double check if suits your needs).2018-06-12 09:05 AM
This alternative looks like it would suit my needs better. DB9 connector is far from being a necessity in my case, and having external transceivers is not a real issue either.
Just to be sure I won't make any mistake, if I chose the Nucleo board, I would need to buy 2 transceivers, right (or find one that could take 2 inputs, 2 outputs and send them on 2 different CAN bus) ?
Thanks again for your help.
2018-06-12 09:08 AM
Thank you for your answer.
However, this alternative still looks a bit expensive for me.
Nonetheless, thank you very much for your code, it is highly appreciated and will help me a lot I hope.
2018-06-12 09:10 AM
Just to be sure I won't make any mistake, if I chose the Nucleo board, I would need to buy 2 transceivers, right (or find one that could take 2 inputs, 2 outputs and send them on 2 different CAN bus) ?
Yes, that's correct. One transceiver per CAN interface.
2018-06-12 10:11 AM
I took a look at the Nucleo schematics and I don't understand something, where am I supposed to connect the transceivers ? I saw that the 2 CAN IO are on pins : PB12-13 and PA11-12, are these pin available ? Because it seems that they are also connected to the USB DM/DP and JTCK/SWDIO
2018-06-12 10:35 AM
It depends whether you will use or not USB function. JTCK/SWDIO are on PA13/PA14, not PB12/PB13 so there's not conflict (I think you looked to the STM32F103 which implements ST-Link functionality).
Note that you can also map CAN1 on PB8/PB9 and CAN2 on PB5/PB6 if the other pin mappings conflict with a function you need in your application.
If still short of pins you may consider to move to a solution with more IOs such as the NUCLEO-F446ZE.
You can use CubeMX tool to find and configure the alternate functions of your application very easily.