michael_l wrote:I've read almost the whole discussion but I can't decide... I have two ST-Link V2 dongles and blue stm32F103c8t6 boards. Which option is suggested ?
1) Flash BMP FW into st-link using the second st-link dongle
2) Flash BMP FW into blue stm32F103c8t6 board
I personally wouldn't overwrite a ST-Link V2 device. Those work great when used with openocd and probably do what you want now without hassle. I have an ST-Link V1 that someday I might replace with BMP. However if I did, I wouldn't use this version, I'd use the blackmagic probe included stlink platform and grab the latest code. Use $ make PROBE_HOST=stlink instead of this.
If you decide to use an stm32f103c8t6, you might just skip this port and also use the stlink target. I just tried that yesterday and it is workable (although using different pins) without having to use this port. The only difference is that it doesn't re-enumerate the usb when you press the reset button on the bluepill board. You have to unplug and plug the usb to reset the usb.
I've learned a lot about the stm32f1 chips and the quirks of the bluepill and maple mini boards since I originally posted this code. You really don't need this version, for the bluepill. A lot of my early problems stemmed from the bluepill board having with the wrong pull up resistor value and me not knowing that for a while. For the maple mini you have use usb reset pin properly for it to work and roger has a blackmagic port for that board.