Newbie trouble. Debug my own board via ST-LINK-V2 in Discovery
I use this device for program my STM32f407vgt6 controller, and I have same issure
-----------------------
‘’Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
adapter speed: 1800 kHz
Error: timed out while waiting for target halted
TARGET: stm32f4x.cpu - Not halted
in procedure ‘reset’
in procedure ‘ocd_bouncer’
Error: Target not halted
Error: failed erasing sectors 0 to 1
Error: flash_erase returned -304’’
-----------------------
for program controller i use stlink v2 mini (http://www.waveshare.com/st-link-v2-mini-stm32.htm)
By default, the microcontroller is not programed openstm32.
before modifying cfg file
than i google some information and modifying some lines
and result (program works good):
the result
but debug do not work
debug error
What can be the problem?
also st-link v2 works fine
st-link v2
UPDATE:
How to solve this issure:
-----------
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
adapter speed: 1800 kHz
Error: timed out while waiting for target halted
TARGET: stm32f4x.cpu - Not halted
in procedure ‘reset’
in procedure ‘ocd_bouncer’
Error: Target not halted
Error: failed erasing sectors 0 to 1
Error: flash_erase returned -304
-----------
see attached photo
text: -c “reset_config none separate”