2022-12-27 01:38 PM
2022-12-27 02:42 PM
What do you mean by "get time intervals"?
Are you aware of the fact that SPL has been superseded by Cube years ago?
JW
2022-12-27 03:00 PM
Just enable the SysTick for 1ms (1000 Hz), and have a SysTick_Handler to increment a tick variable, perhaps also a local time/date clock
Or configure a TIM in maximal / free-run, say divided to 1 MHz, so you can delta time in micro-seconds, range about 65 ms via TIMx->CNT
2022-12-28 12:45 AM
save the current time, wait, then subtract it from the new current time to get the time of something
2022-12-28 12:47 AM
I am not using the cube ide since I'm editing code that has been written and is compiled without it, so I am not sure as to how to do this
2022-12-28 09:36 AM
I'm not using CubeIDE either..
I'm not in a position to know your level of technical skill, education or training. Perhaps provide some context to understand what other experience you have. I need something to pivot off.
Perhaps get a programming manual for the Cortex-M3 more generally, the SysTick works on all these types of MCU exactly the same. Joseph Yiu has a good series of books.
STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Examples\SysTick\TimeBase
2022-12-28 09:37 AM
https://legacy.cs.indiana.edu/~geobrown/book.pdf