-
Notifications
You must be signed in to change notification settings - Fork 981
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
Uploading Sketch with OpenOCD STLink (SWD) is messing up the path and fails #2590
Comments
Hi @momonator25
You're right so it will not be easy to fix as it is Arduino IDE which should handle this. Anyway, I guess openocd should protect this also but do not.... 😩 |
Fixes stm32duino#2590 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@momonator25 -tools.openocd_upload.upload.pattern="{path}/{cmd}" {upload.verbose} -f interface/{upload.protocol}.cfg -f target/{openocd.target}.cfg -c "program {build.path}/{build.project_name}.elf verify reset exit"
+tools.openocd_upload.upload.pattern="{path}/{cmd}" {upload.verbose} -f interface/{upload.protocol}.cfg -f target/{openocd.target}.cfg -c "program {{build.path}/{build.project_name}.elf} verify reset exit" Could you test it on your side? On my side it work on Windows and Linux. |
It does work with the fix! Thanks for the fast response :) |
Fixes #2590 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Running the command with fixed path variable of the sketch from powershell directly results in expected bahavior:
But only using Mac/Unix seperator like above works!
This also fails:
I took a look on the source of the probem and found the following line in the
platform.txt
fileWhere the
{build.path}
is given to the upload command as a variable and I guess it comes from the IDE?Desktop:
Board:
EDIT:
The text was updated successfully, but these errors were encountered: