Debugging STM32F107 from CubeMX
Hello,
I am trying to debug STM32F107VC in System Workbench. I use the FW from Cube, however it looks fine because I can flash it via ST-Link Utility and it works. But when starting debug following error appears:
Error in final launch sequence
Failed to execute MI command:
load "C:\\Users\\Public\\Development\\SWSTM32_workspace\\Cube_eth\\deebridge_eth\\SW4STM32\\deebridge_eth Configuration\\Debug\\deebridge_eth Configuration.elf"
Error message from debugger back end:
Error erasing flash with vFlashErase packet
Error erasing flash with vFlashErase packet
I append as well print screen with console output :
undefined debug reason 7 - target needs reset
Error: timeout while waiting for target halted
TARGET: stm32f1xx.cpu - Not halted
I use 4 wire SWD connection (VDD, GND, SWD, SWCLK) to MCU.
Can you please help me to find out the solution?
Thank you in advance,
Tony