Page 2 of 2

Re: Not able to upload code using STLINK ans uart

Posted: Fri May 01, 2020 4:21 pm
by stevestrong
I think you are using a mixed old<->new libmaple core.
The STLink upload in platform.txt was reworked 2 years ago to remove the unnecessary VID:PID parameters from the batch call.
The stlink batch file was correspondingly changed to accept the binary file as only input parameter.
The VID:PID is there in your example, meaning you have an old platform txt.
If you mix it with the new stlink batch file, it won't work...

Or, you want to use the official STM core?
Then you have selected a wrong board belonging to the Libmaple core in Arduino IDE.

Re: Not able to upload code using STLINK ans uart

Posted: Fri May 01, 2020 10:07 pm
by electrobling
Thanks, that clued me to something... I copied over my old sketch folder with "everything but the kitchen sink". It included an alternate core, located in the 'hardware' folder. As soon as I deleted that, I was able to do a SWD upload. Yay! :) Also the upload menu options that appear now make a lot more sense. DFU didn't work for me, but that doesn't concern me now. I'm just trying to get this laptop installation up and running so I can start doing some programming in my car (where I go to get out of the home quarantine). Thanks everyone!

Re: Not able to upload code using STLINK ans uart

Posted: Tue May 11, 2021 5:26 pm
by vinilo3
I've been fighting with that issue and I've finally found that entry "viewtopic.php?p=2614#p2614". I think this is the same problem than this.