forked from platformio/platformio-core
Fix firmware uploading using serial port with spaces in the path
This commit is contained in:
@@ -29,6 +29,7 @@ PlatformIO 2.0
|
|||||||
(`issue #596 <https://github.com/platformio/platformio/issues/596>`_)
|
(`issue #596 <https://github.com/platformio/platformio/issues/596>`_)
|
||||||
* Fixed broken compilation for Atmel SAMD based boards except Arduino Due
|
* Fixed broken compilation for Atmel SAMD based boards except Arduino Due
|
||||||
(`issue #598 <https://github.com/platformio/platformio/issues/598>`_)
|
(`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)
|
2.8.6 (2016-03-22)
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
@@ -47,7 +47,7 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
|
|||||||
return
|
return
|
||||||
|
|
||||||
env.AutodetectUploadPort()
|
env.AutodetectUploadPort()
|
||||||
env.Append(UPLOADERFLAGS=["-P", "$UPLOAD_PORT"])
|
env.Append(UPLOADERFLAGS=["-P", '"$UPLOAD_PORT"'])
|
||||||
|
|
||||||
if env.subst("$BOARD") == "raspduino":
|
if env.subst("$BOARD") == "raspduino":
|
||||||
|
|
||||||
|
@@ -84,7 +84,7 @@ else:
|
|||||||
UPLOADER=join("$PIOPACKAGES_DIR", "$PIOPACKAGE_UPLOADER", "bossac"),
|
UPLOADER=join("$PIOPACKAGES_DIR", "$PIOPACKAGE_UPLOADER", "bossac"),
|
||||||
UPLOADERFLAGS=[
|
UPLOADERFLAGS=[
|
||||||
"--info",
|
"--info",
|
||||||
"--port", "$UPLOAD_PORT",
|
"--port", '"$UPLOAD_PORT"',
|
||||||
"--erase",
|
"--erase",
|
||||||
"--write",
|
"--write",
|
||||||
"--verify",
|
"--verify",
|
||||||
|
@@ -118,7 +118,7 @@ env.Replace(
|
|||||||
"-vv",
|
"-vv",
|
||||||
"-cd", "$UPLOAD_RESETMETHOD",
|
"-cd", "$UPLOAD_RESETMETHOD",
|
||||||
"-cb", "$UPLOAD_SPEED",
|
"-cb", "$UPLOAD_SPEED",
|
||||||
"-cp", "$UPLOAD_PORT"
|
"-cp", '"$UPLOAD_PORT"'
|
||||||
],
|
],
|
||||||
UPLOADEROTAFLAGS=[
|
UPLOADEROTAFLAGS=[
|
||||||
"--debug",
|
"--debug",
|
||||||
@@ -292,7 +292,7 @@ else:
|
|||||||
"-vv",
|
"-vv",
|
||||||
"-cd", "$UPLOAD_RESETMETHOD",
|
"-cd", "$UPLOAD_RESETMETHOD",
|
||||||
"-cb", "$UPLOAD_SPEED",
|
"-cb", "$UPLOAD_SPEED",
|
||||||
"-cp", "$UPLOAD_PORT",
|
"-cp", '"$UPLOAD_PORT"',
|
||||||
"-ca", "0x00000",
|
"-ca", "0x00000",
|
||||||
"-cf", "${SOURCES[0]}",
|
"-cf", "${SOURCES[0]}",
|
||||||
"-ca", "0x40000",
|
"-ca", "0x40000",
|
||||||
|
@@ -32,7 +32,7 @@ if env.subst("$BOARD") == "rfduino":
|
|||||||
)
|
)
|
||||||
env.Replace(
|
env.Replace(
|
||||||
UPLOADER=join("$PIOPACKAGES_DIR", "tool-rfdloader", "rfdloader"),
|
UPLOADER=join("$PIOPACKAGES_DIR", "tool-rfdloader", "rfdloader"),
|
||||||
UPLOADERFLAGS=["-q", "$UPLOAD_PORT"],
|
UPLOADERFLAGS=["-q", '"$UPLOAD_PORT"'],
|
||||||
UPLOADCMD='"$UPLOADER" $UPLOADERFLAGS $SOURCES'
|
UPLOADCMD='"$UPLOADER" $UPLOADERFLAGS $SOURCES'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user