Hi,
I am using TM4C129, TI RTOS. In my code I use log_write1 to get the duration of some code execution.
When I configure the cpuFreq on cfg file for 120MHz I get a duration of 6850ns. When I configure it to 16MHz I get a 51375ns duration. This is fine.
Here is the problem:
When I keep the cpuFreq on cfg file in 120MHz and on my code I use the SysCtlClockFreqSet function to also set the system clock to 120Mhz I also get a 6850ns duration. But, when I use the SysCtlClockFreqSet function to set the system clock to 16MHz I get a 4000ns duration!!!
What is happenning? Are the cpuFreq and the System Clock different things? How come a lower frequency achieves a bigger duration?
Thanks,
Paulo