Skip to main content
Visitor II
June 6, 2023
Question

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

  • June 6, 2023
  • 2 replies
  • 1791 views

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??

    This topic has been closed for replies.

    2 replies

    Visitor II
    June 6, 2023

    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.1Author
    Visitor II
    June 7, 2023

    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

    Visitor II
    June 7, 2023

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