Upload-reset: No such file or directory

Sorry, yes. It looks like the 32 libs are missing on Ubuntu … so there’s two options…

  1. running sudo apt-get install lib32z1 (and perhaps a sudo apt update && sudo apt dist-upgrade afterwards won’t hurt), which should allow the existing 32 bit executable to run as is.

  2. alternately, recompiling the executable as 64bit… since that folder is supposed to be for 64bit linux. I’ll do a PR for that after I’ve tested the file still works… as the original fault comes from roger clark’s repo… as it looks like he he missed just that one executable when porting to 64bit linux… :laughing: Anyway, to do this (first make sure you have gcc installed… I prefer sudo apt install build-essential to make sure that stuff is present)

cd ~/.platformio/packages/framework-arduinoststm32-maple/tools/linux64
mv upload-reset upload-reset-32
cd src/upload-reset
gcc -o ../../upload-reset upload-reset.c

Then to test it…

cd ../..
./upload-reset

e.g.

2 Likes