Skip to main content
ECiot.1
Associate II
Dec 4, 2023 7:59 AM UTC
Question

Transmission of a matrix on CAN bus

Hi, I have an STM32H723ZG and I want to transmit a matrix in which I stored some measured data on a CAN bus. I can use the following function only writing the pointer to the matrix in "pTxData" or I have to segment the matrix?

HAL_FDCAN_AddMessageToTxFifoQ (FDCAN_HandleTypeDef * hfdcan,
FDCAN_TxHeaderTypeDef * pTxHeader, uint8_t * pTxData)

Moreover, I have to define manually the "pTxHeader" or is it created automatically by the STM32CubeMX?

This topic has been closed for replies.

1 reply

Karl Yamashita
Super User
Dec 4, 2023 5:14 PM UTC

You can pass the pointer to the data. You have to create a new pTxHeader instance, then configure the pTxHeader with appropriate arguments.

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source