Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@Mythy-Py

Description

@Mythy-Py
Issue body actions

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.