2021-06-28 01: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.
2021-06-28 05: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
2021-06-28 05:06 AM
Hello,
STM32
2021-06-28 05:25 AM
Hello,
2021-06-28 05: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
2021-06-28 06:32 AM
hi,
can i use the interrupt in loopback mode?
2021-06-28 06:36 AM
Hello,
Yes of course, for Tx & Rx.
STM32
2021-06-29 07:37 AM
hello
i just change in loopback mode in cube mx and i d'nt have any interrupt.
2021-06-29 07: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