mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Merge branch 'develop' into feature/platformio-30
* develop: Fix issue with ``platformio init --ide`` command for Python 2.6 Version bump to 2.10.3 Fix issue with appending PIO version to Build Defines Add test for `init --ide eclipse` Version bump to 2.10.2 (issues #695) Fix firmware uploading to Arduino/Genuino 101 // Resolve #695 Use $PLATFORM from build environment instead from the board config Update Intel ARC32 Arduino framework to v1.0.6 // Issue #695 Update Intel ARC32 Arduino framework to v1.0.6 Add support for ST Nucleo L031K6 board to ARM mbed framework Revert mcu option for genuino101 Update intel_arc32 platform Update HISTORY.rst Fix upload size checker Process "$BUILD_UNFLAGS" variable Restore PIO macros if it was deleted by framework
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@
|
||||
docs/_build
|
||||
dist
|
||||
build
|
||||
.cache
|
||||
|
18
HISTORY.rst
18
HISTORY.rst
@ -17,11 +17,25 @@ PlatformIO 3.0
|
||||
PlatformIO 2.0
|
||||
--------------
|
||||
|
||||
2.10.2 (2016-06-??)
|
||||
2.10.4 (2016-06-??)
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Fixed issue with ``platformio init --ide`` command for Python 2.6
|
||||
|
||||
2.10.3 (2016-06-15)
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Fixed issue with ``platformio init --ide`` command
|
||||
|
||||
2.10.2 (2016-06-15)
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Added support for ST Nucleo L031K6 board to ARM mbed framework
|
||||
* Fixed issue with ARM mbed framework with ``-u _printf_float`` and
|
||||
* Process ``build_unflags`` option for ARM mbed framework
|
||||
* Updated Intel ARC32 Arduino framework to v1.0.6
|
||||
(`issue #695 <https://github.com/platformio/platformio/issues/695>`_)
|
||||
* Improved a check of program size before uploading to the board
|
||||
* Fixed issue with ARM mbed framework ``-u _printf_float`` and
|
||||
``-u _scanf_float`` when parsing ``$LINKFLAGS``
|
||||
* Fixed issue with ARM mbed framework and extra includes for the custom boards,
|
||||
such as Seeeduino Arch Pro
|
||||
|
@ -629,6 +629,13 @@ ST
|
||||
- 512 Kb
|
||||
- 128 Kb
|
||||
|
||||
* - ``nucleo_l031k6``
|
||||
- `ST Nucleo L031K6 <https://developer.mbed.org/platforms/ST-Nucleo-L031K6/>`_
|
||||
- STM32L031K6T6
|
||||
- 32 MHz
|
||||
- 32 Kb
|
||||
- 8 Kb
|
||||
|
||||
* - ``nucleo_l053r8``
|
||||
- `ST Nucleo L053R8 <https://developer.mbed.org/platforms/ST-Nucleo-L053R8/>`_
|
||||
- STM32L053R8T6
|
||||
|
@ -2013,6 +2013,13 @@ ST
|
||||
- 512 Kb
|
||||
- 128 Kb
|
||||
|
||||
* - ``nucleo_l031k6``
|
||||
- `ST Nucleo L031K6 <https://developer.mbed.org/platforms/ST-Nucleo-L031K6/>`_
|
||||
- STM32L031K6T6
|
||||
- 32 MHz
|
||||
- 32 Kb
|
||||
- 8 Kb
|
||||
|
||||
* - ``nucleo_l053r8``
|
||||
- `ST Nucleo L053R8 <https://developer.mbed.org/platforms/ST-Nucleo-L053R8/>`_
|
||||
- STM32L053R8T6
|
||||
|
@ -357,6 +357,13 @@ ST
|
||||
- 512 Kb
|
||||
- 128 Kb
|
||||
|
||||
* - ``nucleo_l031k6``
|
||||
- `ST Nucleo L031K6 <https://developer.mbed.org/platforms/ST-Nucleo-L031K6/>`_
|
||||
- STM32L031K6T6
|
||||
- 32 MHz
|
||||
- 32 Kb
|
||||
- 8 Kb
|
||||
|
||||
* - ``nucleo_l053r8``
|
||||
- `ST Nucleo L053R8 <https://developer.mbed.org/platforms/ST-Nucleo-L053R8/>`_
|
||||
- STM32L053R8T6
|
||||
|
@ -37,13 +37,15 @@ def FlushSerialBuffer(env, port):
|
||||
|
||||
|
||||
def TouchSerialPort(env, port, baudrate):
|
||||
port = env.subst(port)
|
||||
print "Forcing reset using %dbps open/close on port %s" % (baudrate, port)
|
||||
if system() != "Windows":
|
||||
try:
|
||||
s = Serial(env.subst(port))
|
||||
s = Serial(port)
|
||||
s.close()
|
||||
except: # pylint: disable=W0702
|
||||
pass
|
||||
s = Serial(port=env.subst(port), baudrate=baudrate)
|
||||
s = Serial(port=port, baudrate=baudrate)
|
||||
s.setDTR(False)
|
||||
s.close()
|
||||
sleep(0.4)
|
||||
|
@ -36,9 +36,11 @@ SRC_DEFAULT_FILTER = " ".join([
|
||||
def BuildProgram(env):
|
||||
|
||||
def _append_pio_macros():
|
||||
env.AppendUnique(
|
||||
if any(["PLATFORMIO=" in str(d) for d in env.get("CPPDEFINES", [])]):
|
||||
return
|
||||
env.Append(
|
||||
CPPDEFINES=["PLATFORMIO={0:02d}{1:02d}{2:02d}".format(
|
||||
*pioversion_to_intstr())],
|
||||
*pioversion_to_intstr())]
|
||||
)
|
||||
|
||||
_append_pio_macros()
|
||||
|
@ -52,6 +52,8 @@ def cli():
|
||||
r = None
|
||||
try:
|
||||
for cmd in cmds:
|
||||
if sys.version_info < (2, 7, 0):
|
||||
cmd[0] += ".__main__"
|
||||
cmd = [os.path.normpath(sys.executable), "-m"] + cmd
|
||||
r = None
|
||||
r = util.exec_command(cmd)
|
||||
|
@ -66,7 +66,12 @@ class ProjectGenerator(object):
|
||||
envdata = self.get_project_env()
|
||||
if "env_name" not in envdata:
|
||||
return data
|
||||
cmd = [normpath(sys.executable), "-m", "platformio", "-f"]
|
||||
cmd = [
|
||||
normpath(sys.executable), "-m",
|
||||
"platformio" + (
|
||||
".__main__" if sys.version_info < (2, 7, 0) else ""),
|
||||
"-f"
|
||||
]
|
||||
if app.get_session_var("caller_id"):
|
||||
cmd.extend(["-c", app.get_session_var("caller_id")])
|
||||
cmd.extend(["run", "-t", "idedata", "-e", envdata['env_name']])
|
||||
|
@ -44,6 +44,14 @@ def test_init_ext_folder(platformio_setup, clirunner, validate_cliresult):
|
||||
validate_pioproject(join(getcwd(), ext_folder_name))
|
||||
|
||||
|
||||
def test_init_ide_eclipse(platformio_setup, clirunner, validate_cliresult):
|
||||
with clirunner.isolated_filesystem():
|
||||
result = clirunner.invoke(cli, ["-b", "uno", "--ide", "eclipse"])
|
||||
validate_cliresult(result)
|
||||
validate_pioproject(getcwd())
|
||||
assert all([isfile(f) for f in (".cproject", ".project")])
|
||||
|
||||
|
||||
def test_init_special_board(platformio_setup, clirunner, validate_cliresult):
|
||||
with clirunner.isolated_filesystem():
|
||||
result = clirunner.invoke(cli, ["-b", "uno"])
|
||||
|
Reference in New Issue
Block a user