I would like to connect, on the same CAN bus, two different microcontrollers, one uses FDCAN and the other on is using CAN 2.0.
Is it possible for them both to communicate ?
Also, can i configure the FDCAN RXD interrupt ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-01-11 6:07 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-01-12 1:38 AM
from //can-newsletter.org : "Hybrid CAN and CAN FD networks":
it says: "While CAN FD controllers can interpret and transmit both CAN FD and Classical CAN messages, Classical CAN controllers will report CAN FD messages as an error. This mandates a strict separation of CAN FD and Classical CAN networks".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-01-12 1:15 AM
Dear @ABouk.1
If you are looking for the usage of FDCAN peripheral to communicate (in CAN FD mode) with a classical can on the same bus , you can refer to these documents they are discussing cohabitation of CAN and CAN FD in the same bus/system:
Knowing that, you can configure FDCAN peripheral in classical CAN mode.
I think the best way is to use an MCU with two FDCAN peripherals, one which communicates with CAN FD protocol and the other configured in classical mode in such way you will have a bridge between classical CAN and CAN FD.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-01-12 1:19 AM
@Community member you should take a lok at AN5348
page 2:
CAN-FD features
Main features of the CAN-FD protocol are listed below:
• Compatibility with the CAN protocol: CAN-FD node is able to send/receive CAN messages according to
ISO 11898-1
page5:
And this is why FDCAN supports CAN2.0, the data frames are very similar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-01-12 1:25 AM
@Javier Muñoz ,
This is when FDCAN peripheral is configured in classical mode so no CAN FD frame is transmitted on the bus. I think the original question is: the possibility of the cohabitation of classical CAN & CAN FD frames on the same bus which causes CAN errors from the node using classical CAN frame format according to the doc I mentioned previously in link 2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-01-12 1:38 AM
from //can-newsletter.org : "Hybrid CAN and CAN FD networks":
it says: "While CAN FD controllers can interpret and transmit both CAN FD and Classical CAN messages, Classical CAN controllers will report CAN FD messages as an error. This mandates a strict separation of CAN FD and Classical CAN networks".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-01-12 1:49 AM
I understand that I must configure the frame Format on Classic mode in order to send/receive CAN 2.0 frames with the FDCAN controller.
There is also some configuration to set up the bus timings (Mbit/s - timeseg1 - timeseg2 ...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-01-12 1:54 AM
For FDCAN in classical mode configuration, please refer to the example provided in STM32CubeH7 under the path STM32H743I-EVAL\Examples\FDCAN\FDCAN_Classic_Frame_Networking
-> No config of nominal bit time for Data phase.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-02-18 5:23 AM
What about the CRC length if a CAN 2.0 MCU communicate with a FDCAN MCU in classic mode ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-02-18 5:49 AM
In Classic mode, FDCAN behaves as classical CAN.
See example provided in STM32CubeH7 under the path: Projects\STM32H743I-EVAL\Examples\FDCAN\FDCAN_Classic_Frame_Networking
This example shows how to send/receive classical CAN frames using FDCAN peripheral to/from STM32 MCUs featuring bxCAN like STM32F1, STM32F4 families etc ..
