cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 debug Step-by-Step Problem !!

mahmoud_dhaiwi
Associate II
Posted on May 20, 2015 at 11:08

Hello, 

I realize a project using stm3210e_eval,

IDE: CooCox

Debugger: ST-Link V2

When I'm debugging step-by-step,

the cursor it's not linear !! and I don't understant Why ! 

for example: the cursor is at the line 170. when I click F10 or F11, the cursor don't pass at the line 171, but it back at the line 160 !!

(''it's just an example to explain what I want to say'')

Any help please ?

thanks :)

#stm32-debugging-st-link-problem
2 REPLIES 2
AvaTar
Lead
Posted on May 20, 2015 at 11:27

I guess that you either turned on optimisation, or source code and executable aren't matching (out of sync).

Sorry, but I don't have/use Coocox.

mahmoud_dhaiwi
Associate II
Posted on May 20, 2015 at 11:56

yes,  you are right. I was turned on optimisation ! 

I've tried without optimisation, so the debugging problem is solved

Thank you argentum ;)