We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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);
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?
You are using an unknown processor with a Cortex M0 processor core.
But that Cortex M0 core is part of a die that is inside a plastic package.
The die itself does not only contain the Cortex M0 core, because the core is not meaningful on its own.
So some manufacturer have bought the right to use the M0 core. And combined it with flash memory and most probably a number of other features before then deciding to map the different I/O into pins on the package.
So: what is the manufacturer of the processor? And what model is the processor? Cortex M0 is not the processor model - it's just the architecture of the core.
Whenever you claim you have a Cortex M0, that's the same as claiming you have a 4-cylinder petrol car. It doesn't tell anything about the number of seats or if it's a station wagon or if is a hard-top.
Whenever you are going to program your processor, the Cortex M0 core tells you what ARM documentation to read to learn the processor instruction set. But information about how to flash the program or how to toggle I/O pins etc requires you to pick up documentation from the processor manufacturer. And that requires that you do know what processor you have. Just as you need to know brand and model (and sometimes color etc) of your car if you are going to buy spare parts or performing the service yourself.
ok i understand now ...and am embarrassed by my ignorance again am using a digilent nexys 4 fpga
So something like: www.xilinx.com/.../XUP-ARM.htm.html