Upload fails on jlink tool with spaces in path
See original GitHub issueConfiguration
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
- Create new project that uses
tool-jlink
- XMC1100 XMC2Go is an example “Board” that by default uses
tool-jlink
- 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\
- Space in the project name:
- XMC1100 XMC2Go is an example “Board” that by default uses
- 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:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Packages are here https://github.com/Infineon/platformio-infineonxmc/blob/master/platform.json#L16
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