You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to renode and i'm trying to understand how to control the performance and time flow of simulation. Sorry if this issue duplicates any of existing issues, but after reading this, this and some other issues it's still not clear.
Description
I'm trying to understand frequency and performance configuration using very simple firmware (example from platformio).
I see that blinking of the LED on stm32f4-discovery board works as expected. HAL_Delay(1000) gives delay of 1 second.
When I use renode to emulate the same firmware. If I use stm32f4.repl file without anyy changes, I see that HAL_Delay(1000) gives delay less that 1 second.
From documentation and issues I understood that main parameters that control the time of execution are:
PerformanceInMips
systickFrequency
So i have questions about both of parameters:
Does systickFrequency mean frequency of microcontroller (168 MHz for my situation)? This question caused by information that systick timer gives a reference time base of 1 ms. So for microcontroller with CPU freq 168 MHz it should be 168/8=21 MHz, but, by default, for stm32f4 it is set to 72 MHz.
Why increasing of PerformanceInMips makes execution slower? It is unexpected that more "powerful" CPU (with bigger value of MIPS) works slower and HAL_Delay(1000) can give delay bigger than 1 second. And if i set smaller value of PerformanceInMips parameter the execution becomes faster.
Looking forward for your reply!
The text was updated successfully, but these errors were encountered:
Hello!
I'm new to renode and i'm trying to understand how to control the performance and time flow of simulation. Sorry if this issue duplicates any of existing issues, but after reading this, this and some other issues it's still not clear.
Description
I'm trying to understand frequency and performance configuration using very simple firmware (example from platformio).
I see that blinking of the LED on stm32f4-discovery board works as expected. HAL_Delay(1000) gives delay of 1 second.
When I use renode to emulate the same firmware. If I use stm32f4.repl file without anyy changes, I see that HAL_Delay(1000) gives delay less that 1 second.
From documentation and issues I understood that main parameters that control the time of execution are:
PerformanceInMips
systickFrequency
So i have questions about both of parameters:
systickFrequency
mean frequency of microcontroller (168 MHz for my situation)? This question caused by information that systick timer gives a reference time base of 1 ms. So for microcontroller with CPU freq 168 MHz it should be 168/8=21 MHz, but, by default, for stm32f4 it is set to 72 MHz.PerformanceInMips
makes execution slower? It is unexpected that more "powerful" CPU (with bigger value of MIPS) works slower and HAL_Delay(1000) can give delay bigger than 1 second. And if i set smaller value ofPerformanceInMips
parameter the execution becomes faster.Looking forward for your reply!
The text was updated successfully, but these errors were encountered: