Re: Seeking Guidance on High-Resolution Timer Implementation in NuttX for STM32H7

2025-01-14 Thread Jiawei Wang
Hello Xiang Xiao, The DWT_CYCCNT register provides the high-resolution time I need. Thanks for the solution! Jiawei Wang On 2025/01/13 16:02:45 Xiang Xiao wrote: > why not use perf count from DWT for performance measurement: > https://github.com/apache/nuttx/blob/master/arch/arm/src/armv7-m/

Re: Seeking Guidance on High-Resolution Timer Implementation in NuttX for STM32H7

2025-01-13 Thread Xiang Xiao
why not use perf count from DWT for performance measurement: https://github.com/apache/nuttx/blob/master/arch/arm/src/armv7-m/arm_perf.c On Mon, Jan 13, 2025 at 11:59 PM Roberto Bucher wrote: > Hi Jiawei Wang > > I have a similar requirement. The solution with SysTick and a little > tick in conf

Re: Seeking Guidance on High-Resolution Timer Implementation in NuttX for STM32H7

2025-01-13 Thread Roberto Bucher
Hi Jiawei Wang I have a similar requirement. The solution with SysTick and a little tick in configuration used through semaphores, doesn't solve the problem in a good way: shorter sampling times (<500us) are difficult to obtain, in particular in pysimCoder generated code. This is my experience