Failed to launch debug
Hello
When I try to run a debug session i get the following error mesages:
Error in final launch sequence
Failed to execute MI command:
load “D:\Co_Pilote_2016_08\Co_Pilote\SW4STM32\Co_Pilot_Configuration\Debug\Co_Pilot Configuration.elf”
Error message from debugger back end:
Error erasing flash with vFlashErase packet
Error erasing flash with vFlashErase packet
and a small extract from tthe openOCD trace:
...
Debug: 632 3237 target.c:2788 target_wait_state(): waiting for target halted...
Error: 634 4238 target.c:2796 target_wait_state(): timed out while waiting for target halted
Debug: 635 4238 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stm32f4x.cpu curstate
Debug: 636 4238 command.c:145 script_debug(): command - ocd_stm32f4x.cpu ocd_stm32f4x.cpu curstate
User : 637 4238 command.c:546 command_print(): TARGET: stm32f4x.cpu - Not halted
in procedure ‘reset’
in procedure ‘ocd_bouncer’
...
It looks like the processor is not “halted” as expected.
I updated the IDE using help/search for update and accepting all updates, so I should have an up to date software.
I also tried modifying the “reset_config” from stm32f4x.cfg file as mentioned in some of the forum thread but with no success, so i am using the value as provided with the package.
I am using the STLink from a STM32F4 discovery board, and configured for STlink V2 SWD connected to a custom board.
Using STM32 STlink utility I can erase and program processor flash memory and obtain the following information: (Help/About => version 3.9.0, USBDriver.Dll V4.4.0.0, CLI 2.5.0, Target/Setting FW V2J27S0 Port SWD Frequency 1.8MHz Mode Normal Debug in low power mode enabled, Reset mode Hardware reset) .
My STLink and custom board are also working with other IDE environments (coocox and emblocks), but I would like to migrate to OpenSTM32 which seems to present some benefits compared to the other IDEs.
Please let me know any suggestion in order to get the debug working.
Best regards
Gerard