hi i am trying to display the execution time with the systick : i read that there is a limitation to the size of this timer so i tried to add this function many times ,i though of summing the result to get the hole execution time however it's the same NO Displaying time is there an other solution ? or did i do smething wrong ? SysTick->CTRL =0 ; SysTick->LOAD=0xFFFFFFFF ; SysTick->VAL=0; SysTick->CTRL =0x5 ... istructions stop=SysTick->VAL; printf("start %d---stop %d---dur %d",starttime,stop, starttime-stop);
Isn't it only 24-bit, a downcounter, and usually clocking at 1/8?
The DWT CYCCNT, if available, is so much better for instruction timing and benchmarking.
thank you but i don't think that's available within the Cortex m0
Does your unnamed processor have any timers? one spare?
the cotex m0 has the systick as predefined timer and an interruption controller NVIC
So you've described what's in the core. You (almost certainly) don't just have the core alone. It'll be in a processor. That processor is extremely likely to have some other peripherals.
So, lets try again:
you mean as a hardware ? yes i do have one however it counts the second in a snike game ,when the game begins to when it ends, i thought of using it but i don't think that i can get the execution time of my processor with it
you mean as a hardware ?
Have you got no idea what processor you're using?
It would be very unusual if a processor with a Cortex core has only one timer.
Find out what processor you're using and then look at the data for that processor.
you keeping asking me what's my processor and i already mentioned that am using the cortex m0 processor which implement the ARM architecture
Ok, zoom out your perspective a little, what chip, fpga, or whatever is the Cortex-M0 instantiated within?
View all questions in Keil forum