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 Slim,Thanks for the update.The measurement you have done is interesting.There are a few things you might need to look at:- Are the two tests carried out in the same setup? (same clock frequency, same peripheral clock frequency, same wait state configuration, same OS tick frequency).- I guess you measured the duration of the pulse in the GPIO. Since both rising and falling edge of the pulse can be affected by jitter, the result might not be accurate. Ideally you should use a constant timing source which is synchronous to the processor clock and divided to the same test loop frequency to drive the trigger input of the oscilloscope. I know that might not be possible with the current setup, but it might worth mention in your paper. Using on chip timer measurment is one good way to solve this problem.- Other jitter source - e.g. Potential jitter from on chip PLLRegarding measurement of context switching time:Develop two tasks, one toggle a GPIO pin and the other task toggle another pin.You can then see the gap between the activities of the two tasks with an oscilloscope.Of course, there could be some timing inaccuracy because it depends on the length of the toggling loop, the access time of the GPIO registers, and which instruction it stop at most often during context switching.Unfortunately I don't have any STM32 board so can't develop test code for it.You can try post your question on this to STM32 forum[url="https://my.st.com/public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/AllItems.aspx"]my.st.com/.../url]Maybe someone will be able help you there.regards,Joseph