Hello everyone,

I am currently developing on an STM32H7 board using NuttX and am in need of a 
high-resolution timer to profile my program.

A timer with microsecond resolution would suffice.

My initial approach was to utilize one of STM32's timers configured in 1MHz 
auto-reload counter mode, and then combine the counter register value with the 
SysTick value to derive a time measurement. However, this method feels somewhat 
hacky and bypasses the OS's abstraction layer, which I prefer to maintain.

As I am relatively new to NuttX, I am unsure of the conventional method within 
NuttX to achieve this functionality and have not found relevant examples. Any 
guidance or pointers would be appreciated.

Thank you,

Jiawei Wang <m...@jwang.link>

Reply via email to