question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upload fails on jlink tool with spaces in path

See original GitHub issue

Configuration

Operating system: Windows 10

PlatformIO Version: PlatformIO, version 3.6.1rc6

Description of problem

Upload fails with jlink tool if there are spaces anywhere in the project’s path.

Steps to Reproduce

  1. Create new project that uses tool-jlink
    1. XMC1100 XMC2Go is an example “Board” that by default uses tool-jlink
    2. Save the project with a space somewhere in the path
      • Space in the project name: Test Project
      • Space in a parent directory of the project: C:\My Projects\
  2. Click “Upload”

Actual Results

Failure during upload:

[...]
Configuring upload protocol...
AVAILABLE: jlink
CURRENT: upload_protocol = jlink
Uploading .pioenvs\xmc1100_xmc2go\firmware.hex
SEGGER J-Link Commander V6.32h (Compiled Jul  5 2018 18:11:36)
DLL version V6.32h, compiled Jul  5 2018 18:11:19

Unknown command line option Project\.pioenvs\xmc1100_xmc2go\upload.jlink.

Expected Results

firmware.hex is uploaded to device.

Source and configuration

[env:xmc1100_xmc2go]
platform = infineonxmc
board = xmc1100_xmc2go
framework = arduino
#include <Arduino.h>

void setup() {
    // put your setup code here, to run once:
}

void loop() {
    // put your main code here, to run repeatedly:
}

Additional Notes

I could not for the life of me find where the PIO “tools” are defined so I’m posting this here for lack of a better location.

Edit: I just found this post that (at the end) suggests this has been fixed. Have I simply not updated to the lastest? I thought updating to the lastest was all automatic…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ivankravetscommented, Oct 25, 2018

Thanks a lot for the report. Next time please use https://github.com/Infineon/platformio-infineonxmc repository.

Fixed in https://github.com/Infineon/platformio-infineonxmc/releases/tag/v1.1.1. Please open PIO IDE > Left Sidebar > PlatformIO > Updates > Update All

Read more comments on GitHub >

github_iconTop Results From Across the Web

JLink V8 Upload problem - Debugging
Uploading and debugging is working fine with ST-Link/V2 using standard PIO configuration: upload_protocol = stlink debug_tool = stlink.
Read more >
Upload fails if path contains a space · Issue #958
Upload starts irrespective of whether path contains a space. It may still fail for reasons unrelated, though, but that's not the point.
Read more >
J-Link / J-Trace Getting started
This manual presents a quick start guide for J-Link / J-Trace and the J-Link Software and. Documentation Pack, supported on Windows, Linux and...
Read more >
JLink does not produce redistributable image - java
I'm using bash:5 as docker image, and only mounting the necessary directory to run binaries in it. Canonical answer being "An answer that...
Read more >
[SOLVED] Failed to connect to ESP32: Timed out waiting ...
It doesn't occupy much space, and fortunately you won't get more trouble connecting to the ESP32 when uploading new code. Before trying to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found