Skip to main content
Explorer
December 4, 2023
Question

Transmission of a matrix on CAN bus

  • December 4, 2023
  • 1 reply
  • 1041 views

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

    Graduate II
    December 4, 2023

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