Transmission of a matrix on CAN bus
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-12-03 11:59 PM
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?
Labels:
- Labels:
-
STM32Cube MCU Packages
-
STM32CubeMX
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-12-04 9:14 AM
You can pass the pointer to the data. You have to create a new pTxHeader instance, then configure the pTxHeader with appropriate arguments.
Don't worry, I won't byte.
TimerCallback tutorial! | UART and DMA Idle tutorial!
If you find my solution useful, please click the Accept as Solution so others see the solution.
TimerCallback tutorial! | UART and DMA Idle tutorial!
If you find my solution useful, please click the Accept as Solution so others see the solution.
