使用can1原来使用baud rate:1Mbit,通讯正常 改为:250k ,就无法正常收发数据,请各位帮忙看看问题点所在 #if 0 Can1_Handle.Instance = CAN1; Can1_Handle.Init.Prescaler = 6; Can1_Handle.Init.Mode = CAN_MODE_NORMAL; Can1_Handle.Init.SyncJumpWidth = CAN_SJW_1TQ; Can1_Handle.Init.TimeSeg1 = CAN_BS1_5TQ; Can1_Handle.Init.TimeSeg2 = CAN_BS2_3TQ; Can1_Handle.Init.TimeTriggeredMode = DISABLE; Can1_Handle.Init.AutoBusOff = ENABLE; Can1_Handle.Init.AutoWakeUp = ENABLE; Can1_Handle.Init.AutoRetransmission = DISABLE; Can1_Handle.Init.ReceiveFifoLocked = DISABLE; Can1_Handle.Init.TransmitFifoPriority = DISABLE; if (HAL_CAN_Init(&Can1_Handle) != HAL_OK) { Error_Handler(); } #endif //250kbps --> CAN_BS1_7TQ ,CAN_BS2_1TQ ,Prescaler =24 #if 1 Can1_Handle.Instance = CAN1; Can1_Handle.Init.Prescaler = 24; Can1_Handle.Init.Mode = CAN_MODE_NORMAL; Can1_Handle.Init.SyncJumpWidth = CAN_SJW_1TQ; Can1_Handle.Init.TimeSeg1 = CAN_BS1_7TQ; Can1_Handle.Init.TimeSeg2 = CAN_BS2_1TQ; Can1_Handle.Init.TimeTriggeredMode = DISABLE; Can1_Handle.Init.AutoBusOff = ENABLE; Can1_Handle.Init.AutoWakeUp = ENABLE; Can1_Handle.Init.AutoRetransmission = DISABLE; Can1_Handle.Init.ReceiveFifoLocked = DISABLE; Can1_Handle.Init.TransmitFifoPriority = DISABLE; if (HAL_CAN_Init(&Can1_Handle) != HAL_OK) { Error_Handler(); } #endif |
STM32H750如何搭配88E6320來使用?
硬件的spi单线传输怎么读写寄存器。
STM8AF6266 LIN通讯实例
STM32L4R9最大支持SD卡的容量是?支持SDXC 64G卡吗?
有使用过芯讯通的A7680C这个4G模块吗?
ST60系列可以使用OFDM调制进行发射接收吗?
STM32F103的LIN Break问题
关于使用STM32G030C8T6的串口收发过程中串口接收问题
有人知道stm32cubemx中,如何自定义lwip平台。(默认只有一个lan和dp的芯片,我需要用yt8512的)。或者说cubemx生成的lan芯片的文件如
stm32f767zi 以太网无法接收问题
Can1_Handle.Init.SyncJumpWidth = CAN_SJW_1TQ;
Can1_Handle.Init.TimeSeg1 = CAN_BS1_5TQ;
Can1_Handle.Init.TimeSeg2 = CAN_BS2_3TQ;
STM32 CAN波特率设置_河西剑客的博客-CSDN博客_stm32can波特率设置
use hsi mode
应该还是频率不对,计算的时候是用的你实际的频率算的吗?