Skip to content
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

The Windows path for the OpenOCD STLink (SWD) upload method doesn't seem to be formatted correctly #2620

Closed
jferdelyi opened this issue Jan 7, 2025 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@jferdelyi
Copy link

jferdelyi commented Jan 7, 2025

Describe the bug
I'm sorry if this isn't the right place to report this, I'm relatively new to the STM world.
The Windows path for the OpenOCD STLink (SWD) upload method doesn't seem to be formatted correctly.

To Reproduce
Steps to reproduce the behavior:

  1. Plug the board
  2. Setup IDE: board, variant and upload method
  3. Upload a sketch
  4. See error
...
"C:\Users\jferdelyi\AppData\Local\Arduino15\packages\STMicroelectronics\tools\xpack-openocd\0.12.0-4/bin/openocd.exe" -d2 -f interface/stlink.cfg -f target/stm32f4x.cfg -c "program C:\Users\jferdelyi\AppData\Local\arduino\sketches\FFB7D34698BE1D7E261D15C786251A94/sketch_jan7a.ino.elf verify reset exit"
...
Error: couldn't open C:UsersjferdelyiAppDataLocal�rduinosketchesFFB7D34698BE1D7E261D15C786251A94/sketch_jan7a.ino.elf

The command work well on CMD using this format

"C:\Users\jferdelyi\AppData\Local\Arduino15\packages\STMicroelectronics\tools\xpack-openocd\0.12.0-4/bin/openocd.exe" -d2 -f interface/stlink.cfg -f target/stm32f4x.cfg -c "program C:\\Users\\jferdelyi\\AppData\\Local\\arduino\\sketches\\FFB7D34698BE1D7E261D15C786251A94/sketch_jan7a.ino.elf verify reset exit"

Expected behavior
Path of my skecth should probably be: C:\\Users\\jferdelyi\\AppDataLocal\\arduino\\sketches\\FFB7D34698BE1D7E261D15C786251A94/sketch_jan7a.ino.elf
Desktop:

  • OS: Windows 11
  • Arduino IDE version: 2.3.4
  • STM32 core version: 2.9.0
  • Upload method: OpenOCD STLink (SWD)

Board:

  • Name: Nucleo64-F446RE
  • Hardware Revision: IDK (maybe Rev C)
@fpistm
Copy link
Member

fpistm commented Jan 7, 2025

Hi @jferdelyi
This issue has already been raised see #2590.
Fix already merged see #2591.

@jferdelyi
Copy link
Author

Ho thank you, sorry for that.

@fpistm fpistm added the duplicate This issue or pull request already exists label Jan 7, 2025
@fpistm
Copy link
Member

fpistm commented Jan 7, 2025

De rien @jferdelyi 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants