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

Nicla Sense ME : Sketch can´t be Uploaded to the NiclaSense ME if a Space is in the Path #1025

Open
Mythy-Py opened this issue Feb 13, 2025 · 0 comments

Comments

@Mythy-Py
Copy link

If your Username has a space in the username (here displayed as "FOO BAR") the path of the select_swd.cfg cannot be resolved correctly .

"C:\Users\FOO BAR\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.11.0-arduino2/bin/openocd.exe" -d2 -s "C:\Users\FOO BAR\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.11.0-arduino2/share/openocd/scripts/" -f interface/cmsis-dap.cfg -f C:\Users\FOO BAR\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.2.1/debugger/select_swd.cfg -f target/nrf52.cfg -c "telnet_port disabled; init; reset init; halt; adapter speed 10000; program {C:\Users\FOO BAR\AppData\Local\arduino\sketches\AE38B8963D4AEDD725242DEA75DE567E/AccelGyro.ino.elf}; reset run; shutdown"
Open On-Chip Debugger 0.11.0+dev-gab95bac57-dirty (2021-05-11-10:45)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2

Unexpected command line argument: BAR\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.2.1/debugger/select_swd.cfg
Failed uploading: uploading error: exit status 1

SOLUTION:

In boards.txt change the line 447

nicla_sense.programmer.transport_script={runtime.platform.path}/debugger/select_swd.cfg

to

nicla_sense.programmer.transport_script="{runtime.platform.path}/debugger/select_swd.cfg"

@Mythy-Py Mythy-Py changed the title NiclaSense ME : Sketch can´t be Uploaded to the NiclaSense ME if a Space is in the Path Nicla Sense ME : Sketch can´t be Uploaded to the NiclaSense ME if a Space is in the Path Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant