AnsweredAssumed Answered

Stm32f4 get system time (microsecond)

Question asked by armoun.mohamad on Aug 9, 2016
Latest reply on Aug 9, 2016 by armoun.mohamad
hi every body
recently for developing a realtime system in my stm32f407 micro controller i need to calculate each bus delay(uart , spi , i2c ,..) . for that reason i need to get system time in microsecond unit.
i'm using CubeMX in this project. as you know the HAL_GetTcik() gives us the number of  milliseconds since microcontroller began running the current program (based on Systick configuration). so is it possible to get this time in microsecond unit ??

(for example if you are familiar with arduino platform there is function , micros() that returns the number of microseconds since the Arduino board began running the current program )

any help would be appreciated
thanks MA.

Outcomes