STM32的CAN硬件本身就是完全符合CAN总线规范的呀,硬件上就支持自动重发!配置问题!看看CAN_MCR寄存器的NART位描述:
Bit 4 NART : No automatic retransmission
0: The CAN hardware will automatically retransmit the message until it has been
successfully transmitted according to the CAN standard.
1: A message will be transmitted only once, independently of the transmission result
(successful, error or arbitration lost).
STM32的CAN硬件本身就是完全符合CAN总线规范的呀,硬件上就支持自动重发!配置问题!看看CAN_MCR寄存器的NART位描述:
Bit 4 NART : No automatic retransmission
0: The CAN hardware will automatically retransmit the message until it has been
successfully transmitted according to the CAN standard.
1: A message will be transmitted only once, independently of the transmission result
(successful, error or arbitration lost).
一周热门 更多>