I have create a project to communicate via a fdcan bus on stm
32h723zgt microcontroller but i have no interrupt generated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-28 1:11 AM
i have connected the tx pin to rx pin on fbcan3 interface
you will find my project in attacheement
thanks
Solved! Go to Solution.
- Labels:
-
FDCAN
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-28 5:59 AM
Hello,
Using nucleo-H723ZG board: to use CAN with this board you have either:
- Use FDCAN in loopback mode not in normal mode (which is your current config). The CAN cannot be handled as UART or SPI it has same specificity like arbitration, error management etc.. this arbitration is done when at least two nodes are connected via CAN bus through transceivers (normal mode).
In loopback mode, this arbitration mode is managed internally in the cell. so Rx and Tx pins are connected internally in the chip. refer to RM0468 rev2 page 2524/2524: External and internal loop back modes
For loopback mode example, please refer to the example provided under: \Projects\STM32H743I-EVAL\Examples\FDCAN\FDCAN_Loopback
- Use FDCAN in normal mode but you have to add an external transceiver to connect your board to another CAN node through CAN bus (differential mode). You can use For example FDCAN2/FDCAN3 in normal mode but you have to add a transceiver for each one.
But at the same time you have to select the correct transceiver: classic mode which reaches 1Mb/s and FDCAN: it depends on what bitrates you will use.
For the clock, for loopback mode you may not encounter communication issues, but in normal mode you will. So for your design you have to an external precise crystal. For example you can use the clock source provided by ST-Link (8MHz) in bypass mode.
STM32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-28 5:06 AM
Hello,
- Could you please tell us what is the HW used? is it an ST board (Nucleo/Disco/Eval)? or something custom?
- What do you mean by "i have connected the tx pin to rx pin on fbcan3 interface", did you connect FDCAN3_Tx to FDCAN3_Rx using a wire?
- Just to note that it's not recommended to use HSI for CAN communication, please use an external precise crystal with RCC HSE config.
STM32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-28 5:25 AM
Hello,
- I used the nucleo-H723ZG board.
- Yes, I connected a FDCAN3_Tx and FDCAN3_Rx with a wire.
- in my design i used the hsi clock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-28 5:59 AM
Hello,
Using nucleo-H723ZG board: to use CAN with this board you have either:
- Use FDCAN in loopback mode not in normal mode (which is your current config). The CAN cannot be handled as UART or SPI it has same specificity like arbitration, error management etc.. this arbitration is done when at least two nodes are connected via CAN bus through transceivers (normal mode).
In loopback mode, this arbitration mode is managed internally in the cell. so Rx and Tx pins are connected internally in the chip. refer to RM0468 rev2 page 2524/2524: External and internal loop back modes
For loopback mode example, please refer to the example provided under: \Projects\STM32H743I-EVAL\Examples\FDCAN\FDCAN_Loopback
- Use FDCAN in normal mode but you have to add an external transceiver to connect your board to another CAN node through CAN bus (differential mode). You can use For example FDCAN2/FDCAN3 in normal mode but you have to add a transceiver for each one.
But at the same time you have to select the correct transceiver: classic mode which reaches 1Mb/s and FDCAN: it depends on what bitrates you will use.
For the clock, for loopback mode you may not encounter communication issues, but in normal mode you will. So for your design you have to an external precise crystal. For example you can use the clock source provided by ST-Link (8MHz) in bypass mode.
STM32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-28 6:32 AM
hi,
can i use the interrupt in loopback mode?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-28 6:36 AM
Hello,
Yes of course, for Tx & Rx.
STM32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-29 7:37 AM
hello
i just change in loopback mode in cube mx and i d'nt have any interrupt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-29 7:46 AM
Hello,
Please refer to one of the following examples provided in STM32H7Cube which are using Rx interrupts:
\Projects\STM32H743I-EVAL\Examples\FDCAN\FDCAN_Classic_Frame_Networking
\Projects\STM32H743I-EVAL\Examples\FDCAN\FDCAN_Com_IT
The interrupt config is the same either in loopback or normal mode.
STM32
