CANbus: Execution time to send a message
Hello,
I am utilizing the FDCAN1 CANbus protocol on the STM32H725AGI6 MCU currently. I am trying to determine the execution time for the firmware to execute the lines of code, as the timing can be critical in some applications.
So for example, I would like to determine how long this line of code takes to execute:
HAL_FDCAN_AddMessageToTxFifoQ(&hfdcan1, &TxHeader, &TxData0[0]);
The FDCAN is running on a 48 MHz clock currently.
Obviously HAL_GetTick() does not work, since it's in the time frame of milliseconds and the execution would be less than 1ms. So I am looking to get a more accurate time.
Does anyone know if this is possible?
