Commit Graph

2897 Commits (79568dbe6dfac4206b51f72ddb8e82b2785d5ee4)

Author SHA1 Message Date
Andrii Lishchynskyi 4f181324e8 Fix applying all possible setting 2019-04-05 12:27:02 +01:00
Andrii Lishchynskyi 4d33732fc7 Replace 'resolution_order_names' and 'extra_labels' with 'labels' Get rid of 'next' function 2019-04-05 12:27:01 +01:00
Andriy.Lishchynskyi b7676b36fe Enhancement to remove duplicates in Eclipse launch configurations 2019-04-05 12:27:01 +01:00
junichi.katsu@uhuru.jp ce8f5ece3f added sectors information 2019-04-05 12:27:01 +01:00
junichi.katsu@uhuru.jp dee9192515 added STM32F767VI 2019-04-05 12:27:01 +01:00
ccli8 eba8eec352 Support export IAR8 project
1. Override IlinkOverrideProgramEntryLabel and IlinkProgramEntryLabel to specify
   entry point for debuger.
2. Refer to doc at the link below for post-export steps. Usually, 'export' is nearly
   out of the box and just install 'Nu-Link Driver (IAR)' to update Nuvoton device
   database in IAR.
   https://github.com/OpenNuvoton/NuMaker-mbed-docs/blob/master/IAR/DEBUG_IAR.md
2019-04-05 12:27:01 +01:00
jeromecoutant d627be3423 Build script: add explicit console log in case of linker script error 2019-04-05 12:27:00 +01:00
jeromecoutant 5233c388ea NUCLEO_L4R5ZI_P: enable sw4stm32 export 2019-04-05 12:27:00 +01:00
Jimmy Brisson 7d6a07e76e Parse errors and warnings with ARMC6 2019-04-05 12:26:58 +01:00
studavekar e2a296a9f7 update gcc arm version to 6-2017-q1-update 2019-04-05 12:26:57 +01:00
Jimmy Brisson f4fee83e7e Allow both path seperator types in flash algo names 2019-04-05 12:26:56 +01:00
Jimmy Brisson e748135713 Update flash algo default with CPM 0.2.4
### Description

Cmsis Pack Manager 0.2.4 corrected parsing of specifically the flash
algorithm default attribute. It was allowed to be "0", "1", "true"
and "false". CPM 0.2.3 parsed "1" into false, and this behavior was
corrected in 0.2.4.

This PR uses 0.2.4 to update the index.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2019-04-05 12:26:55 +01:00
Brian Daniels 9df1d0b8b7 Fixing path comparisons on Windows 2019-04-05 12:26:29 +01:00
Oren Cohen 3f63ffbef3 Set default value of extra args to [] 2019-04-05 12:26:28 +01:00
Oren Cohen c397d9e62a Missing docstring 2019-04-05 12:26:28 +01:00
Oren Cohen 400b024c30 Specify extra args with -x and verbose_check_call 2019-04-05 12:26:28 +01:00
Oren Cohen f3db129ad9 Revert back to direct calls to python 2019-04-05 12:26:28 +01:00
Oren Cohen 048e9830fc small fix 2019-04-05 12:26:28 +01:00
Oren Cohen 4f329afc5f Add list option 2019-04-05 12:26:27 +01:00
Oren Cohen 094efe67ad Docs update 2019-04-05 12:26:27 +01:00
Oren Cohen 693138944e Refactor
* Use default image command generator.
* Call directly to mbed-cli.
* Add --skip-tests.
2019-04-05 12:26:27 +01:00
Oren Cohen b5acac0d8b List PSA secure platform and add choices option 2019-04-05 12:26:27 +01:00
Oren Cohen 91507a8256 Overhaul logging and verbosity
* Default verbose
* -q for quiet build with minimal status prints
2019-04-05 12:26:27 +01:00
Leszek Rusinowicz 5664a928f1 Workaround for ARMC6 Windows 7 assembler issue
On Windows 7 using --preproc option in ARMC6 assembler doesn't work
when -MD option is also specified. Compiler creates incorrect filename for
dependency file and compilation files.
To workaround this issue, this change returns to using a temporary file and
separately calling preprocessor and assembler (as in a case of ARMC5).
2019-04-05 12:26:25 +01:00
kegilbert ed08c8f940 Remove gnuarmeclipse from baremetal export testing
baremetal does not currently work with gnuarmeclipse
2019-04-05 12:26:25 +01:00
Kevin Gilbert 3e9e126707 Add baremetal example to testing 2019-04-05 12:26:25 +01:00
ccli8 b8a626c3ab Fix MBED_RAM_START/MBED_RAM_SIZE symbol generation
1. Fix MBED_RAM_START/MBED_RAM_SIZE are not generated when there are
   target.mbed_ram_start/target.mbed_ram_size overrides
2. Fix MBED_RAM_START/MBED_RAM_SIZE are duplicated.
2019-04-05 12:26:24 +01:00
Veijo Pesonen 676408d8aa test_configs: generic app config for boards with Wi-Fi 2019-04-05 12:26:17 +01:00
Brian Daniels 9503734260 Fixing uvision exporter with CPM updates 2019-04-05 12:26:17 +01:00
Brian Daniels c0fba2fcde Ensure all exported paths use Posix style separators.
mbed_config.h is a file that is placed in your project root when you
export. This allows the configuration to be used by your IDE. When this
file already exists (due to a previous export), it changed the compiler
include option on Windows from "-include mbed_config.h" to "-include
.\mbed_config.h". The "\" character was interpreted as an escape
character "\m" and broke the build. This converts all resource paths to
use the Posix path separator "/" before writing project files to avoid
this issue.
2019-04-05 12:26:17 +01:00
Brian Daniels fc37879873 Fix include paths for uvision when exported with Python 3.
The call to encode() was causing the include paths to be placed in the
uvision product file with the prefix "b'" and the postfix "'". This
broke the parsing of this file and broke the build.
2019-04-05 12:26:17 +01:00
Artturi Ramanen ef6ced3aa0 Selectively append changes to exported config files
In case of a non-overwriting change to an exported config file
the previous logic appended a new block of text to the previous file
every time the to-be-written block of text was not exactly matched.

This parses the old config file and the to-be-written changes into
sets, which can then be compared. If all of the incoming lines are
found in the old config file set, no changes are made. If some
incoming lines are not found in the old config file, only these are
appended.
2019-04-05 12:26:16 +01:00
Jimmy Brisson c853372506 Clean up all lint warnings in targets 2019-04-05 12:26:15 +01:00
Jimmy Brisson a5b13ab7ef Simplify conditions with get and getattr optional arguments 2019-04-05 12:26:14 +01:00
Jimmy Brisson bc1fbe3432 Explicitly return None 2019-04-05 12:26:14 +01:00
Jimmy Brisson d025435d2a Correct post-build filtering options 2019-04-05 12:26:14 +01:00
Brian Daniels 092bacb91d Add imports of basestring for python 3 2019-04-05 12:26:14 +01:00
Brian Daniels 3f9e266e6d get_mbed_official_release respects supported_toolchains 2019-03-24 09:48:43 +00:00
Brian Daniels 12438af35d Add link for ARMC5 warning 2019-03-24 09:48:43 +00:00
Brian Daniels 551bbf3985 Updating supported toolchain printing with new options 2019-03-24 09:48:43 +00:00
Brian Daniels 9399eb07ec Add ARMC5 as an option for the -t argument 2019-03-24 09:48:43 +00:00
Brian Daniels a10be644cc Make args_erroor less verbose.
This removes the arugment help from the output, making the error much
easier to find. This solves #10090.
2019-03-24 09:48:43 +00:00
Brian Daniels 78ec04cbaf Front-end scripts now use the ARM toolchain fallback.
Some unused imports were removed as well as some general clean up.
2019-03-24 09:48:43 +00:00
Brian Daniels 7aba154a44 ARMC5 is supported if a target lists ARM as a supported_toolchain 2019-03-24 09:48:43 +00:00
Brian Daniels 6dfbd0b88a Add functions to enable ARM fallback to ARMC5.
There are two new functions: get_valid_toolchain_names and
find_valid_toolchain. These functions are used to figure out if a
fallback is possible and necessary. find_valid_toolchain is expected to
be used by the front-end scripts.

get_toolchain_name was updated with some different logic and comments.
2019-03-24 09:48:43 +00:00
Brian Daniels 7efb8b3a99 Add utility functions and Exceptions
These functions will be used to handle some of the error state and
warning messages produced when the scripts attempt to select a valid
toolchain.
2019-03-24 09:48:43 +00:00
Brian Daniels 1286b7b0c7 Whitespace clean up 2019-03-24 09:48:43 +00:00
Brian Daniels 8d73e9abb2 Fix the removal of Mbed-added core flags in uvision exporter 2019-03-24 09:48:43 +00:00
Brian Daniels 03677a6477 Add comments about the proper use of specific ARMC6 arguments 2019-03-24 09:48:43 +00:00
Brian Daniels ca4c3e09b8 Version check the compiler in all build functions
This enables the use of Mbed Studio's version of ARMC6.
2019-03-24 09:48:43 +00:00