I’m using ST Link v2 (made in china).
platform = ststm32
board = seeedArchMax
framework = mbed
upload_protocol = stlink
When I try to upload via stlink i get the following error:
Error: timed out while waiting for target halted.
same problem with STM32F407VGT6 by Diy More
please help ))
Try holding down the reset button on the board then releasing it when you see the serial output stops. Timing is sometimes tricky. Had to do this with my STM32F103CT8 as well when it didn’t have the JTAG interface activated in the normal firmware, it was only programmable during reset.
Thank you, it works.
Why with the ST Link V2-1 (nucleo) loads without problems?
What nucleo board exactly? The upload method is just different, on those boards you push it to a “virtual hard drive”, the STLink acceppts that file and flashes the microcontroller with it – probably has some hardware reset lines connected to it?
Does uploading now work without having to press the reset button every time? It might also just be a wrong argument for the flasher program / openocd that enables this auto hardware or software reseting