cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to debug - gdi-error [40412] Abort command is not possible in this CPU state (halt, wfi, protected code execution)

SDalv.1
Associate II

Hello Team I am using STVD IDE with cosmic compiler for development on STM8S207 series controller.

I have two configurations in project called release and debug.

whenever I try to debug code in debug configuration, following attached error appears when I run and stop code. i verified option byte settings quite few times and those looks Ok to me. Could someone help us out on this issue??

3 REPLIES 3
AA1
Senior III

You can't abort when CPU is in halt and wfi, but this should not be a problem since usually CPU is not in this state. Also you can press board reset button to leave this state.

SDalv.1
Associate II

Ok but board reset will end my current debug session..I need to find out why CPU is going in halt, wfi or protected code execution state

If you don't use halt or wfi in your code, maybe the problem is ROP active.