Not able to upload code using STLINK ans uart

stevestrong
Posts: 502
Joined: Fri Dec 27, 2019 4:53 pm
Answers: 8
Location: Munich, Germany
Contact:

Re: Not able to upload code using STLINK ans uart

Post 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.
electrobling
Posts: 7
Joined: Sat Jan 04, 2020 12:42 am

Re: Not able to upload code using STLINK ans uart

Post 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!
vinilo3
Posts: 2
Joined: Tue May 11, 2021 5:23 pm

Re: Not able to upload code using STLINK ans uart

Post 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.
Post Reply

Return to “STLink”