Question
Stm32f4 get system time (microsecond)
Posted on August 09, 2016 at 10:24
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 microcontrollerbegan 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 returnsthe number of microseconds since the Arduino board began running the current program
)any help would be appreciatedthanks MA.