STM32H7432 串口采用DMA方式接收不定长数据重复问题
STM32H750使用FMC控制LCD数据异常
关于STM32H750采用DMA方式发送数据到DAC产生正弦波
STM32H7配置成USB DEVICE时,连接电脑时不进入中断
STM32H753XIH6运行时发热达到五六十度
STM32H750电池供电后AD采样的电容板子电压变化异常
STM32H750VB芯片整片无法擦出
STM32H743IIT6Flash擦除问题
STM32H750 ADC 发现结果跳动很严重
STM32H743ZI无法串口下载程序
不能发送是什么错误提示???用什么设备接收你的CAN发送的数据!
怎么看程序啊
请问你这个程序配置是多少M的
为什么四个压缩包
STM32H743的芯片手册,官网上就能下载到,手册有点大,上传不到这里来,如果你需要留个邮箱,我发给你!
看程序就知道了!!!
单个压缩包不能超过限定值,单个压缩包太大了,只能分成4个压缩包
仲裁域:1Mbps
数据域:5Mbps
非常感谢
void FDCAN_Config(uint32_t msgtxid, uint32_t msgrxid, uint32_t lam,uint32_t msgframe,uint32_t datalength)
{
FDCAN_FilterTypeDef sFilterConfig;
/* Configure extended ID reception filter to Rx FIFO 1 */
sFilterConfig.IdType = msgframe; // EXTEND ID
sFilterConfig.FilterIndex = 0;
sFilterConfig.FilterType = FDCAN_FILTER_MASK;
sFilterConfig.FilterConfig = FDCAN_FILTER_TO_RXFIFO0;
sFilterConfig.FilterID1 = msgrxid; //Filter ID
sFilterConfig.FilterID2 = lam; //Filter ID LAM
if (HAL_FDCAN_ConfigFilter(&hfdcan2, &sFilterConfig) != HAL_OK)
{
Error_Handler();
}
/* Configure global filter:
Filter all remote frames with STD and EXT ID
Reject non matching frames with STD ID and EXT ID */
if (HAL_FDCAN_ConfigGlobalFilter(&hfdcan2, FDCAN_REJECT, FDCAN_REJECT, ENABLE, ENABLE) != HAL_OK)
{
Error_Handler();
}
/*##-2 Start FDCAN controller (continuous listening CAN bus) ##############*/
if (HAL_FDCAN_Start(&hfdcan2) != HAL_OK)
{
Error_Handler();
}
if (HAL_FDCAN_ActivateNotification(&hfdcan2, FDCAN_IT_RX_FIFO0_NEW_MESSAGE, 0) != HAL_OK)
{
Error_Handler();
}
/* Prepare Tx Header */
TxHeader.Identifier = msgtxid;//0x1801F456U;
TxHeader.IdType = msgframe;//FDCAN_EXTENDED_ID;
TxHeader.TxFrameType = FDCAN_DATA_FRAME;
TxHeader.DataLength = datalength;
TxHeader.ErrorStateIndicator = FDCAN_ESI_ACTIVE;
TxHeader.BitRateSwitch = FDCAN_BRS_ON;
TxHeader.FDFormat = FDCAN_CLASSIC_CAN;
TxHeader.TxEventFifoControl = FDCAN_NO_TX_EVENTS;
TxHeader.MessageMarker = 0;
if (HAL_FDCAN_AddMessageToTxFifoQ(&hfdcan2, &TxHeader, TxData) != HAL_OK)
{
Error_Handler();
}
}