From 9fb7f251f6c27618953e814d368fa0a24bfbe679 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 11 Jun 2016 16:49:25 +0300 Subject: [PATCH 01/17] Typo fix --- platformio/builder/scripts/atmelsam.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platformio/builder/scripts/atmelsam.py b/platformio/builder/scripts/atmelsam.py index 3ed9f43f..5fa5cd4b 100644 --- a/platformio/builder/scripts/atmelsam.py +++ b/platformio/builder/scripts/atmelsam.py @@ -172,8 +172,7 @@ AlwaysBuild(target_size) # if env.subst("$BOARD") == "zero": - upload = env.Alias(["upload", "uploadlazy"], target_firm, - [env.CheckUploadSize, "$UPLOADCMD"]) + upload = env.Alias(["upload", "uploadlazy"], target_firm, "$UPLOADCMD") else: upload = env.Alias( ["upload", "uploadlazy"], target_firm, From 3b8bc42266aa7661bd4cc85318eac7efc8659f30 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 11 Jun 2016 23:35:29 +0300 Subject: [PATCH 02/17] Improve firmware uploading to Arduino Leonardo based boards // Resolve #691 --- HISTORY.rst | 2 ++ platformio/builder/tools/pioupload.py | 1 + 2 files changed, 3 insertions(+) diff --git a/HISTORY.rst b/HISTORY.rst index 33903908..af35a198 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -17,6 +17,8 @@ PlatformIO 2.0 the size of a credit card * Check program size before uploading to the board (`issue #689 `_) +* Improved firmware uploading to Arduino Leonardo based boards + (`issue #691 `_) * Fixed issue with ``-L relative/path`` when parsing ``build_flags`` (`issue #688 `_) diff --git a/platformio/builder/tools/pioupload.py b/platformio/builder/tools/pioupload.py index ccc4d625..874d4086 100644 --- a/platformio/builder/tools/pioupload.py +++ b/platformio/builder/tools/pioupload.py @@ -54,6 +54,7 @@ def WaitForNewSerialPort(env, before): prev_port = env.subst("$UPLOAD_PORT") new_port = None elapsed = 0 + sleep(1) while elapsed < 5 and new_port is None: now = util.get_serialports() for p in now: From 10d868efa4a9f2f44e86d609991617a77b262114 Mon Sep 17 00:00:00 2001 From: Valeriy Koval Date: Mon, 13 Jun 2016 17:45:28 +0300 Subject: [PATCH 03/17] Update build script for mbed framework --- platformio/builder/scripts/frameworks/mbed.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/platformio/builder/scripts/frameworks/mbed.py b/platformio/builder/scripts/frameworks/mbed.py index 0f6399e2..55b9fe14 100644 --- a/platformio/builder/scripts/frameworks/mbed.py +++ b/platformio/builder/scripts/frameworks/mbed.py @@ -71,7 +71,7 @@ MBED_VARIANTS = { "samr21_xpro": "SAMR21G18A", "saml21_xpro_b": "SAML21J18A", "samd21_xpro": "SAMD21J18A", - "bbcmicrobit": "NRF51822" + "bbcmicrobit": "NRF51_MICROBIT" } MBED_LIBS_MAP = { @@ -149,6 +149,18 @@ def add_mbedlib(libname, libar): if (not any(f.endswith(".h") for f in files) and basename(root) not in sysincdirs): continue + + target_includes = ( + "TARGET_%s" % env.get( + "BOARD_OPTIONS", {}).get("vendor", "").upper(), + "TARGET_%s" % variant, + "TARGET_CORTEX_M" + ) + + if "TARGET_" in root: + if all([p not in root.upper() for p in target_includes]): + continue + var_dir = join("$BUILD_DIR", "FrameworkMbed%sInc%d" % (libname.upper(), crc32(root))) if var_dir in env.get("CPPPATH"): From 91fb714250d1befa89107bdc017b16d7b3459423 Mon Sep 17 00:00:00 2001 From: Valeriy Koval Date: Mon, 13 Jun 2016 17:46:35 +0300 Subject: [PATCH 04/17] Add new ST Nucleo board --- platformio/boards/ststm32.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/platformio/boards/ststm32.json b/platformio/boards/ststm32.json index 46037168..1366a4e4 100644 --- a/platformio/boards/ststm32.json +++ b/platformio/boards/ststm32.json @@ -586,6 +586,22 @@ "url": "https://developer.mbed.org/platforms/ST-Nucleo-L073RZ/", "vendor": "ST" }, + "nucleo_l031k6": { + "build": { + "f_cpu": "32000000L", + "cpu": "cortex-m0plus", + "mcu": "stm32l031k6t6" + }, + "frameworks": ["mbed"], + "name": "ST Nucleo L031K6", + "platform": "ststm32", + "upload": { + "maximum_ram_size": 8192, + "maximum_size": 32768 + }, + "url": "https://developer.mbed.org/platforms/ST-Nucleo-L031K6/", + "vendor": "ST" + }, "seeedArchMax": { "build": { "f_cpu": "168000000L", From 3a315c5575764a4d572227bac522cd0c35073024 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 13 Jun 2016 19:23:24 +0300 Subject: [PATCH 05/17] Move custom platform and board to separate page --- docs/platforms/creating_board.rst | 4 ++-- docs/platforms/creating_platform.rst | 4 ++-- docs/platforms/custom_platform_and_board.rst | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 docs/platforms/custom_platform_and_board.rst diff --git a/docs/platforms/creating_board.rst b/docs/platforms/creating_board.rst index c55b1649..55be0dbd 100644 --- a/docs/platforms/creating_board.rst +++ b/docs/platforms/creating_board.rst @@ -11,8 +11,8 @@ .. _board_creating: -Custom Board -============ +Custom Embedded Board +===================== *PlatformIO* has pre-built settings for the most popular embedded boards. This list is available: diff --git a/docs/platforms/creating_platform.rst b/docs/platforms/creating_platform.rst index d4e6d96a..913fb40d 100644 --- a/docs/platforms/creating_platform.rst +++ b/docs/platforms/creating_platform.rst @@ -11,8 +11,8 @@ .. _platform_creating: -Custom Platform -=============== +Custom Development Platform +=========================== *PlatformIO* was developed like a tool which would build the same source code for the different development platforms via single command :ref:`cmd_run` diff --git a/docs/platforms/custom_platform_and_board.rst b/docs/platforms/custom_platform_and_board.rst new file mode 100644 index 00000000..7db1381c --- /dev/null +++ b/docs/platforms/custom_platform_and_board.rst @@ -0,0 +1,19 @@ +.. Copyright 2014-present Ivan Kravets + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +Custom Platform & Board +======================= + +.. toctree:: + :maxdepth: 2 + + creating_platform + creating_board From 104132c5d37a2b550049647da818b0b48cb9ebfd Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 13 Jun 2016 19:24:13 +0300 Subject: [PATCH 06/17] Typo fixes --- docs/demo.rst | 4 ++-- docs/index.rst | 5 ++--- docs/projectconf.rst | 4 ++-- docs/quickstart.rst | 4 ++-- docs/userguide/cmd_ci.rst | 4 ++-- docs/userguide/cmd_init.rst | 4 ++-- 6 files changed, 12 insertions(+), 13 deletions(-) diff --git a/docs/demo.rst b/docs/demo.rst index 7d1d2c25..28dcc084 100644 --- a/docs/demo.rst +++ b/docs/demo.rst @@ -1,4 +1,4 @@ -.. Copyright 2014-2016 Ivan Kravets +.. Copyright 2014-present Ivan Kravets Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -19,7 +19,7 @@ Demo & Projects Project Examples ---------------- -Preconfigured demo projects are located in `PlatformIO GitHub `_ repository. +Pre-configured demo projects are located in `PlatformIO GitHub `_ repository. "Blink Project" --------------- diff --git a/docs/index.rst b/docs/index.rst index f839bbd8..ce0d088c 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -19,7 +19,7 @@ integration. Arduino and MBED compatible. Ready for Cloud compiling.** C/C++ Intelligent Code Completion and Smart Code Linter for the super-fast coding. Multi-projects workflow with Multiple Panes. Themes Support with dark and light colors. Built-in Terminal with PlatformIO CLI tool and support for the powerful Serial Port Monitor. - All advanced instruments without leaving your favourite development environment. + All advanced instruments without leaving your favorite development environment. * **Development Platforms** - Embedded and Desktop development platforms with pre-built toolchains, debuggers, uploaders and frameworks which work under popular host OS: Mac, Windows, Linux (+ARM) @@ -110,8 +110,7 @@ Contents platforms/index platforms/embedded_boards frameworks/index - platforms/creating_platform - platforms/creating_board + platforms/custom_platform_and_board .. toctree:: :caption: Library Manager diff --git a/docs/projectconf.rst b/docs/projectconf.rst index 5274ccb4..f7dbc86c 100644 --- a/docs/projectconf.rst +++ b/docs/projectconf.rst @@ -373,7 +373,7 @@ For more detailed information about available flags/options go to: ``src_build_flags`` ^^^^^^^^^^^^^^^^^^^ -An option ``src_build_flags`` has the same behaviour like ``build_flags`` +An option ``src_build_flags`` has the same behavior like ``build_flags`` but will be applied only for the project source code from :ref:`projectconf_pio_src_dir` directory. @@ -585,7 +585,7 @@ Example: ``lib_dfcyclic`` ^^^^^^^^^^^^^^^^ -Control cyclic (recursive) behaviour for ``Library Dependency Finder (LDF)``. +Control cyclic (recursive) behavior for ``Library Dependency Finder (LDF)``. By default, this option is turned OFF (``lib_dfcyclic=False``) and means that ``LDF`` will find only libraries which are included in source files from the project :ref:`projectconf_pio_src_dir`. diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 77877d28..3b2d0c24 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -1,4 +1,4 @@ -.. Copyright 2014-2016 Ivan Kravets +.. Copyright 2014-present Ivan Kravets Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -30,7 +30,7 @@ PlatformIO CLI provides special :ref:`cmd_init` command for configuring your pro It allows to initialize new empty project or update existing with the new data. What is more, :ref:`cmd_init` can be used for :ref:`ide`. It means that you will -be able to import pre-generated PlatformIO project using favourite IDE and +be able to import pre-generated PlatformIO project using favorite IDE and extend it with the professional instruments for IoT development. This tutorial is based on the next popular embedded boards and development diff --git a/docs/userguide/cmd_ci.rst b/docs/userguide/cmd_ci.rst index be11b0bc..d97d3b96 100644 --- a/docs/userguide/cmd_ci.rst +++ b/docs/userguide/cmd_ci.rst @@ -1,4 +1,4 @@ -.. Copyright 2014-2016 Ivan Kravets +.. Copyright 2014-present Ivan Kravets Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -29,7 +29,7 @@ Description :ref:`cmd_ci` command is conceived of as "hot key" for building project with arbitrary source code structure. In a nutshell, using ``SRC`` and -:option:`platformio ci --lib` contents PlatformIO initialises via +:option:`platformio ci --lib` contents PlatformIO initializes via :ref:`cmd_init` new project in :option:`platformio ci --build-dir` with the build environments (using :option:`platformio ci --board` or :option:`platformio ci --project-conf`) and processes them via :ref:`cmd_run` diff --git a/docs/userguide/cmd_init.rst b/docs/userguide/cmd_init.rst index 45ef6f30..716ed155 100644 --- a/docs/userguide/cmd_init.rst +++ b/docs/userguide/cmd_init.rst @@ -1,4 +1,4 @@ -.. Copyright 2014-2016 Ivan Kravets +.. Copyright 2014-present Ivan Kravets Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ Options .. option:: -d, --project-dir -A path to the directory where *PlatformIO* will initialise new project. +A path to the directory where *PlatformIO* will initialize new project. .. option:: -b, --board From f75a7c91ebbe0ae9625d5c8d4ea307e670273b18 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 13 Jun 2016 19:42:35 +0300 Subject: [PATCH 07/17] Update ARM mbed framework package to v121 --- HISTORY.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/HISTORY.rst b/HISTORY.rst index af35a198..27403d49 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -15,6 +15,7 @@ PlatformIO 2.0 (`issue #683 `_) * Added support for `Arduboy DevKit `__, the game system the size of a credit card +* Updated ARM mbed framework package to v121 * Check program size before uploading to the board (`issue #689 `_) * Improved firmware uploading to Arduino Leonardo based boards From 768ac77ea2429329b08808cc5815b391f486b1f9 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 13 Jun 2016 19:46:54 +0300 Subject: [PATCH 08/17] Pass PlatformIO macros with version to libs --- platformio/builder/tools/platformio.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platformio/builder/tools/platformio.py b/platformio/builder/tools/platformio.py index 93d6e885..863e0ef1 100644 --- a/platformio/builder/tools/platformio.py +++ b/platformio/builder/tools/platformio.py @@ -35,6 +35,11 @@ SRC_DEFAULT_FILTER = " ".join([ def BuildProgram(env): + env.Append( + CPPDEFINES=["PLATFORMIO={0:02d}{1:02d}{2:02d}".format( + *pioversion_to_intstr())], + ) + # fix ASM handling under non-casitive OS if not case_sensitive_suffixes(".s", ".S"): env.Replace( @@ -78,8 +83,6 @@ def BuildProgram(env): env.ProcessFlags([env.get("SRC_BUILD_FLAGS", None)]) env.Append( - CPPDEFINES=["PLATFORMIO={0:02d}{1:02d}{2:02d}".format( - *pioversion_to_intstr())], CPPPATH=["$PROJECTSRC_DIR"], LIBS=deplibs, LIBPATH=["$BUILD_DIR"] From 14f582faeb9799b325f895e689760c2bf2858a03 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 13 Jun 2016 19:49:37 +0300 Subject: [PATCH 09/17] Version bump to 2.10.0 (issues #683, #687, #688, #689, #691) --- HISTORY.rst | 4 ++-- platformio/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 27403d49..3543d3df 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -4,8 +4,8 @@ Release Notes PlatformIO 2.0 -------------- -2.9.5 (2016-06-??) -~~~~~~~~~~~~~~~~~~ +2.10.0 (2016-06-13) +~~~~~~~~~~~~~~~~~~~ * Added support for `emonPi `__, the OpenEnergyMonitor system diff --git a/platformio/__init__.py b/platformio/__init__.py index e2520348..5e508f39 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -14,7 +14,7 @@ import sys -VERSION = (2, 9, "5.dev3") +VERSION = (2, 10, 0) __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" From 3dd51a442d7656c9e201b5db0ae411f05ec20b66 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 13 Jun 2016 21:31:17 +0300 Subject: [PATCH 10/17] Re-submit a package to PyPI --- HISTORY.rst | 5 +++++ platformio/__init__.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 3543d3df..998b0e61 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -4,6 +4,11 @@ Release Notes PlatformIO 2.0 -------------- +2.10.1 (2016-06-13) +~~~~~~~~~~~~~~~~~~~ + +* Re-submit a package to PyPI + 2.10.0 (2016-06-13) ~~~~~~~~~~~~~~~~~~~ diff --git a/platformio/__init__.py b/platformio/__init__.py index 5e508f39..ff8cfe32 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -14,7 +14,7 @@ import sys -VERSION = (2, 10, 0) +VERSION = (2, 10, 1) __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" From a38910b3819e0ad533d054a9bc4aa01e8be06f10 Mon Sep 17 00:00:00 2001 From: Valeriy Koval Date: Tue, 14 Jun 2016 13:00:51 +0300 Subject: [PATCH 11/17] Improve include selection for mbed boards with a custom vendor --- platformio/builder/scripts/frameworks/mbed.py | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/platformio/builder/scripts/frameworks/mbed.py b/platformio/builder/scripts/frameworks/mbed.py index 55b9fe14..64d269af 100644 --- a/platformio/builder/scripts/frameworks/mbed.py +++ b/platformio/builder/scripts/frameworks/mbed.py @@ -145,18 +145,24 @@ def add_mbedlib(libname, libar): "lwip-sys" ) + target_map = { + "nxplpc": "NXP", + "freescalekinetis": "Freescale", + "ststm32": "STM" + } + + target_includes = ( + "TARGET_%s" % target_map.get( + env.get("BOARD_OPTIONS", {}).get("platform", ""), ""), + "TARGET_%s" % variant, + "TARGET_CORTEX_M" + ) + for root, _, files in walk(lib_dir): if (not any(f.endswith(".h") for f in files) and basename(root) not in sysincdirs): continue - target_includes = ( - "TARGET_%s" % env.get( - "BOARD_OPTIONS", {}).get("vendor", "").upper(), - "TARGET_%s" % variant, - "TARGET_CORTEX_M" - ) - if "TARGET_" in root: if all([p not in root.upper() for p in target_includes]): continue From 3671d7549dc699e0a9cb1210fb32b647aa06fac5 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 14 Jun 2016 18:08:35 +0300 Subject: [PATCH 12/17] Update examples --- examples | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples b/examples index a5498135..ed668f6e 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit a5498135baca2dd71e518406ee5cf19ac4be058b +Subproject commit ed668f6e31d2f99736b10cac209bd59318aa6ecb From 220dcd0f5ce9d4379e174aeffce5419ecf3217bb Mon Sep 17 00:00:00 2001 From: Valeriy Koval Date: Tue, 14 Jun 2016 19:29:54 +0300 Subject: [PATCH 13/17] Improve linker flags handling for mbed --- platformio/builder/scripts/frameworks/mbed.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platformio/builder/scripts/frameworks/mbed.py b/platformio/builder/scripts/frameworks/mbed.py index 64d269af..2653f2ea 100644 --- a/platformio/builder/scripts/frameworks/mbed.py +++ b/platformio/builder/scripts/frameworks/mbed.py @@ -201,6 +201,11 @@ def parse_eix_file(filename): result[key].append( node.get(_nkeys[0]) if len(_nkeys) == 1 else node.attrib) + if "LINKFLAGS" in result: + for i, f in enumerate(result["LINKFLAGS"]): + if f.startswith("-u "): + result["LINKFLAGS"][i] = result["LINKFLAGS"][i].split(" ") + return result From 8d03f2dc805127cf0f009007de963706b849ecb1 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 14 Jun 2016 19:41:34 +0300 Subject: [PATCH 14/17] Update history --- HISTORY.rst | 8 ++++++++ platformio/__init__.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 998b0e61..00374ec1 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -4,6 +4,14 @@ Release Notes PlatformIO 2.0 -------------- +2.10.2 (2016-06-??) +~~~~~~~~~~~~~~~~~~~ + +* Fixed issue with ARM mbed framework with ``-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 + 2.10.1 (2016-06-13) ~~~~~~~~~~~~~~~~~~~ diff --git a/platformio/__init__.py b/platformio/__init__.py index ff8cfe32..4f9d2e11 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -14,7 +14,7 @@ import sys -VERSION = (2, 10, 1) +VERSION = (2, 10, "2.dev0") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" From 350fb885b898f2b93cb7889b79b7005e92c30f5c Mon Sep 17 00:00:00 2001 From: Valeriy Koval Date: Tue, 14 Jun 2016 19:44:57 +0300 Subject: [PATCH 15/17] Fix pylint error --- platformio/builder/scripts/frameworks/mbed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/builder/scripts/frameworks/mbed.py b/platformio/builder/scripts/frameworks/mbed.py index 2653f2ea..73d5526c 100644 --- a/platformio/builder/scripts/frameworks/mbed.py +++ b/platformio/builder/scripts/frameworks/mbed.py @@ -202,7 +202,7 @@ def parse_eix_file(filename): node.get(_nkeys[0]) if len(_nkeys) == 1 else node.attrib) if "LINKFLAGS" in result: - for i, f in enumerate(result["LINKFLAGS"]): + for i, flag in enumerate(result["LINKFLAGS"]): if f.startswith("-u "): result["LINKFLAGS"][i] = result["LINKFLAGS"][i].split(" ") From 64c9004036442bec0b528395be46016e7d4f514d Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 14 Jun 2016 19:54:27 +0300 Subject: [PATCH 16/17] Fix typo --- platformio/builder/scripts/frameworks/mbed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/builder/scripts/frameworks/mbed.py b/platformio/builder/scripts/frameworks/mbed.py index 73d5526c..7c04af31 100644 --- a/platformio/builder/scripts/frameworks/mbed.py +++ b/platformio/builder/scripts/frameworks/mbed.py @@ -203,7 +203,7 @@ def parse_eix_file(filename): if "LINKFLAGS" in result: for i, flag in enumerate(result["LINKFLAGS"]): - if f.startswith("-u "): + if flag.startswith("-u "): result["LINKFLAGS"][i] = result["LINKFLAGS"][i].split(" ") return result From 68d834fba0b72c89abf94248fa87a1fc6f5a316e Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 14 Jun 2016 19:59:17 +0300 Subject: [PATCH 17/17] Add support for ST Nucleo L031K6 board to ARM mbed framework --- HISTORY.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/HISTORY.rst b/HISTORY.rst index 00374ec1..b73cb776 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -7,6 +7,7 @@ PlatformIO 2.0 2.10.2 (2016-06-??) ~~~~~~~~~~~~~~~~~~~ +* Added support for ST Nucleo L031K6 board to ARM mbed framework * Fixed issue with ARM mbed framework with ``-u _printf_float`` and ``-u _scanf_float`` when parsing ``$LINKFLAGS`` * Fixed issue with ARM mbed framework and extra includes for the custom boards,