Fix firmware uploading using serial port with spaces in the path

This commit is contained in:
Ivan Kravets
2016-04-25 22:02:22 +03:00
parent d01d40d33c
commit f7be8ad666
5 changed files with 6 additions and 5 deletions

View File

@ -29,6 +29,7 @@ PlatformIO 2.0
(`issue #596 <https://github.com/platformio/platformio/issues/596>`_)
* Fixed broken compilation for Atmel SAMD based boards except Arduino Due
(`issue #598 <https://github.com/platformio/platformio/issues/598>`_)
* Fixed firmware uploading using serial port with spaces in the path
2.8.6 (2016-03-22)
~~~~~~~~~~~~~~~~~~

View File

@ -47,7 +47,7 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
return
env.AutodetectUploadPort()
env.Append(UPLOADERFLAGS=["-P", "$UPLOAD_PORT"])
env.Append(UPLOADERFLAGS=["-P", '"$UPLOAD_PORT"'])
if env.subst("$BOARD") == "raspduino":

View File

@ -84,7 +84,7 @@ else:
UPLOADER=join("$PIOPACKAGES_DIR", "$PIOPACKAGE_UPLOADER", "bossac"),
UPLOADERFLAGS=[
"--info",
"--port", "$UPLOAD_PORT",
"--port", '"$UPLOAD_PORT"',
"--erase",
"--write",
"--verify",

View File

@ -118,7 +118,7 @@ env.Replace(
"-vv",
"-cd", "$UPLOAD_RESETMETHOD",
"-cb", "$UPLOAD_SPEED",
"-cp", "$UPLOAD_PORT"
"-cp", '"$UPLOAD_PORT"'
],
UPLOADEROTAFLAGS=[
"--debug",
@ -292,7 +292,7 @@ else:
"-vv",
"-cd", "$UPLOAD_RESETMETHOD",
"-cb", "$UPLOAD_SPEED",
"-cp", "$UPLOAD_PORT",
"-cp", '"$UPLOAD_PORT"',
"-ca", "0x00000",
"-cf", "${SOURCES[0]}",
"-ca", "0x40000",

View File

@ -32,7 +32,7 @@ if env.subst("$BOARD") == "rfduino":
)
env.Replace(
UPLOADER=join("$PIOPACKAGES_DIR", "tool-rfdloader", "rfdloader"),
UPLOADERFLAGS=["-q", "$UPLOAD_PORT"],
UPLOADERFLAGS=["-q", '"$UPLOAD_PORT"'],
UPLOADCMD='"$UPLOADER" $UPLOADERFLAGS $SOURCES'
)