AnsweredAssumed Answered

Error: jtag status contains invalid mode value - communication failure

Question asked by Dilbert K on Apr 23, 2017
Latest reply on Apr 23, 2017 by Dilbert K

I started to debug the STM32 project using

  • NUCLEO-F411RE board
  • AC6 System Workbench (win_64bits-v1.14.0)
  • STM32Cube_FW_F4_V1.15.0 (example to Blink LED on board)
  • STSW-LINK009 (V1.02)
    • Checking the ST_Link Debug Properties, it show 2013-12-10, version 1.1.0.0
    • Is this correct ??
  • OpenOCD (stlink-v2.cfg)

 

I could connect,load & run the code 

---> Stop at Main()

stm32f4x.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000a38 msp: 0x20020000

 

---> After few minutes

Error: jtag status contains invalid mode value - communication failure
Warn : target stm32f4x.cpu is not halted
Polling target stm32f4x.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 100ms
Info : Previous state query failed, trying to reconnect
Polling target stm32f4x.cpu failed, trying to reexamine
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints

But the GBD will be disconnected after few minutes.  The firmware on the board is still running.

If I click "Resume", it will continue. 

But after a few minutes, it will have above error again.

Warn : WARNING! The target is already running. All changes GDB did to registers will be discarded! Waiting for target to halt.

Anyone has any ideas to share ?  Thanks

Outcomes