-
-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STLink upload does not work with STLink clones #168
Comments
We've updated openOCD today. Could you try the upstream version of dev/platform? See docs https://docs.platformio.org/en/latest/platforms/ststm32.html#stable-and-upstream-versions Does it work? |
What target processor, @kiranshila ? I'm getting this same issue on an STM32F3, but not an STM32F1 Blue Pill Blue Pill, works:
STM32F3:
For reference, I can get the STM32F3 working with an official ST-Link with nRST connected. The clone's RST pin doesn't seem to work if used in that manner. |
Ours was an STM32F3, but I just trashed the clone. It's like $15 for a nucleo that has an official stlink, so to get a development platform PLUS the debugger/uploader that will just work, it was worth it. |
Also seems related to #167 which doesn't seem resolved, really. I'd like to get this working :) |
I had the same problem and just created #603 for it. With that change the upload works for me when I add
to The same problem also exists when debugging. I could solve it there by specifying |
Alright so me and @coyt have tried this and verified the problem. We both are using ST-Link V2 clones from Amazon and haven't had success uploading. We get errors that end in some variation of
Error: timed out while waiting for target halted
We have uploaded binaries using the official STM32CubeProgrammer utility with the fake device successfully.
We have tried editing the stlink.cfg in the OpenOCD scripts folder to account for the different PID/VID pair, but we get the same error.
I just got an official STLink V2-1 in the mail today and it works fine from PIO.
The text was updated successfully, but these errors were encountered: