2020-01-21 01:36 AM
I am using stm32f429i discovery and stm32f429i eval boards for communication. Can anyone help me?
2020-01-21 06:48 AM
read DWT twice, once immediately before you start the DPI transfer, once on completion. The difference, divided by SystemCoreClock gives you the time?
2020-01-21 08:00 AM
The math going from processor ticks to time is relatively pedestrian, you need to wait for the SPI data to clear the wire, as TXE signals when the shift register is loaded, not when all the bits have shifted out.
2020-01-21 11:51 AM
you can also run the SPI transaction say 1 000 000 times and use HAL_GetDelay() before and after to get an educated guess of the average speed.