Hi Together,
i'm writing a small application for a university project where i jump with breakpoints through my code.
I noticed that when I set a breakpoint and then put the cpu back into run mode it takes a long time.
Relative to that I am much faster with single instruction step.
The blocks I run through are basic blocks with ~10 instruction.
breakpoint step ~ 4ms
single instruction step ~100µs
My expectation was that I could iterate through the code much faster with breakpoints.
I use a JLINK EDU and use the JLINK API to communicate directly with the JLINK.
As hardware I use a STM31F103 controller.
Are breakpoints for small code segments really more inefficient than single instructions or is it my setting?
Best regards
i'm writing a small application for a university project where i jump with breakpoints through my code.
I noticed that when I set a breakpoint and then put the cpu back into run mode it takes a long time.
Relative to that I am much faster with single instruction step.
The blocks I run through are basic blocks with ~10 instruction.
breakpoint step ~ 4ms
single instruction step ~100µs
My expectation was that I could iterate through the code much faster with breakpoints.
I use a JLINK EDU and use the JLINK API to communicate directly with the JLINK.
As hardware I use a STM31F103 controller.
Are breakpoints for small code segments really more inefficient than single instructions or is it my setting?
Best regards