Commit Graph

2950 Commits (tools-release-5.12.3)

Author SHA1 Message Date
Oren Cohen fe931cd85a Add {# End of file #} for TF-M templates 2019-04-05 13:59:30 +01:00
Oren Cohen 2d12cc0b14 TFM autogen scan the entire tree 2019-04-05 13:59:24 +01:00
Laurent Meunier 09db2253eb STM32WB55RG: Add board declaration in tools
In travis build and in SW4STM32 exporter
2019-04-05 12:27:05 +01:00
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
Brian Daniels 748985353f Clean up some whitespace 2019-03-24 09:48:43 +00:00
Brian Daniels 31bc4725df Test detection of Mbed Studio version of ARMC6 2019-03-24 09:48:43 +00:00
Brian Daniels eb27d8ed17 Remove stray prints and whitespace 2019-03-24 09:48:43 +00:00
Brian Daniels c7c39a755d Conditionally enable --ide=mbed from ARMC6 based on compiler version.
If the Mbed Studio build of ARMC6 is found, add the --ide=mbed to all
necessary executables.
2019-03-24 09:48:43 +00:00
Brian Daniels 6823b82004 Whitespace clean up 2019-03-24 09:48:43 +00:00
Jimmy Brisson 5d8a77aedb Fall back to target.json memories when CMSIS has empty memories 2019-03-24 09:48:43 +00:00
Jimmy Brisson 5f7c439619 Configure sector information in targets.json 2019-03-24 09:48:43 +00:00
Oren Cohen 41555c1500 Remove cypress targets from CPM 2019-03-24 09:48:43 +00:00
Oren Cohen ae2ad20e3c Add RAM regions for cypress platforms 2019-03-24 09:48:43 +00:00
Jimmy Brisson b2e921fc72 Collect excluded libraries into ignored_dirs 2019-03-24 09:48:43 +00:00
Jimmy Brisson cae0401acf Test that excluded libraries are correctly collected 2019-03-24 09:48:43 +00:00
Jimmy Brisson 5c0ffd7188 Deduplicate RAM defines to linker command line 2019-03-24 09:48:43 +00:00
Jimmy Brisson d4656078f3 Use PSA overrides for RAM 2019-03-24 09:48:43 +00:00
Jimmy Brisson 66fd93ba78 Deduplicate MBED_ROM_xxxx defines on IAR linker command line 2019-03-24 09:48:43 +00:00
David Saada a566fab330 Add bootloader support for the LPC55S69 board
bla
2019-03-19 13:12:36 +00:00
Jimmy Brisson 69ed7fc212 Override rom used by managed bootloader with PSA roms 2019-03-19 13:12:36 +00:00
Jimmy Brisson e0d8b4b02a Test that secure/non-secure memories are passed
To managed bootloader mode
2019-03-19 13:12:36 +00:00
Jimmy Brisson f6f39860e7 Clean all lint errors in configuration system 2019-03-19 13:12:36 +00:00
Mahesh Mahadevan ba463c1b57 Update to provide the right device name in the Asymmetric case
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-03-19 13:12:35 +00:00
Mahesh Mahadevan d5295dbde2 LPC55S69: Add IAR and uvision exporter support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-03-19 13:12:35 +00:00
Yossi Levy c997b0eda1 Updating address of secure and non secure rom in CY8CKIT_062_WIFI_BT_PSA index.json file 2019-03-19 13:12:17 +00:00
Yossi Levy 122a018b97 Updating Cypress CY8CKIT_062_WIFI_BT_PSA and CY8CKIT_062_BLE device name 2019-03-19 13:12:17 +00:00
Yossi Levy f05f3ec7a4 mbed-os to support bootlader for Cypress CY8CKIT_062_WIFI_BT_PSA and CY8CKIT_062_BLE 2019-03-19 13:12:16 +00:00
Jimmy Brisson a197ebcae5 Correct FPU settings traceback found by IAR
Fixes #9974

The error was that the Asymmetric CPUs were assumed to have the same
structure as the Symmetric CPUs. This is clearly false.

This PR changes the FPU detection of Asymmetric CPUs to find the correct
core and use it's cpu settings.

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2019-03-19 12:59:08 +00:00
Brian Daniels 3ee1410ea2 Correct check for the ARM toolchain binary in the PATH.
The compiler used for the ARM toolchain changes depending on the target.
This changes the front end scripts to do the proper toolchain look up
before checking the system PATH for the compiler executable. The tools
were always checking for the ARMC5 compiler, now it should check for the
right version.
2019-03-19 12:59:08 +00:00
Brian Daniels a375e52595 Make the presence of cmsis-pack-manager package optional 2019-03-19 12:59:08 +00:00
Oren Cohen 91ea832957 Bugfix: send the correct parameter to _get_target_info() 2019-03-12 10:06:41 -05:00
adbridge 0c87ded17a Fix cut/paste error in the new example github link 2019-03-12 10:06:41 -05:00
adbridge 22e2a0df96 Looks like only the LPC55S69_NS flavour of target is required. 2019-03-12 10:06:41 -05:00
adbridge bd3eeea9ba Remove unecessary _S and _NS target variants from new example 2019-03-12 10:06:41 -05:00
adbridge cceb16c85a Add new mbed-os-example-attestation example 2019-03-12 10:06:41 -05:00
Alexander Zilberkant 5d3059ce77 remove hidden tad
Co-Authored-By: netanelgonen <netanel.gonen@arm.com>
2019-03-12 10:06:40 -05:00
Netanel Gonen e4ae7144fb update crypto complience tests importer, fix include to mbedtls config 2019-03-12 10:06:40 -05:00
Oren Cohen 4972263933 Minor changes fixing the script from getting stuck
* git diff of bin/hex files could be huge print and make
* calling python unbuffered with stdout=subprocess.PIPE could be problematic
2019-03-12 10:06:40 -05:00
Michael Schwarcz 66afa696e3 Update tfm_importer.json 2019-03-12 10:06:40 -05:00
Oren Cohen 12d63be6c3 Enhancements
* Replace call with check_call to throw exception on failure
* Check if binaries actually been changes before calling git commit
* Docstrings for all functions
* Small refactor
2019-03-12 10:06:40 -05:00
Oren Cohen 799deb8169 Add git commit option 2019-03-12 10:06:40 -05:00
Oren Cohen a9ad0f9c7c Update docs for PSA tools 2019-03-12 10:06:40 -05:00
Netanel Gonen 815372455c add needed crypto macros to secure side 2019-03-12 10:06:40 -05:00
kegilbert 92e076e3ad Allow baremetal to build by removing PSA 2019-03-12 10:06:39 -05:00
Michael Schwarcz 66c1af1be1 LPC55S69: Change post-build hook to create HEX 2019-03-12 10:06:39 -05:00
Michael Schwarcz 6b61c288aa LPC55S69: Use find_secure_image in post-build and add prebuilt secure images 2019-03-12 10:06:39 -05:00
Mahesh Mahadevan 3928ea6a7b LPC55S69: Add post processing script
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-03-12 10:06:39 -05:00
Oren Cohen 322ca83a68 Add build profile option
Default set to release
2019-03-12 10:06:37 -05:00
Oleg Kapshii 78a0057858 Added support for PSA target to WIFI_BT board
Added WiFi_Bt CM4 PSA target in mbedos json
Added SPE-NSPE mailbox initialization for CM4 SystemInit
Made similar to FUTURE_SEQUANA configurations
Copied FUTURE_SEQUANA CM0 SPM part for WiFi_Bt smoke test
Added CY8CKIT_062_WIFI_BT_M0 and CY8CKIT_062_WIFI_BT_M0_PSA targets
Sorted files for new CY8CKIT_062_WIFI_BT_M0 and CY8CKIT_062_WIFI_BT_M0_PSA targets
Copied files for CY8CKIT_062_WIFI_BT_M0_PSA from FUTURE_SEQUANA
Copied and updated cm0p start files
Corrected according to FUTURE_SEQUANA
Changes to M0 startup files to have SPM started
Fixed implicit declaration warning
Commented interrupts enabling according to FUTURE_SEQUANA flow
Updated prebuild spm_smore CM0 hex for CM4 target
Turned on greentea environment
Used special memory region for common CM0/CM4 data
Updated prebuild CM0 SPM hex
Placed shared memory region for flash operations into SPM shared memory region
Updated cyprotection code and configuration
Start address of protected regions is set by a defined number from target.json
Added masters pcMask configuration
Added support for PSA target to WIFI_BT board
Enabled resources protection for SPM
Aligned RAM usage according to Cypress FlashBoot and CyBootloader
alligned protection config
Added CYW943012P6EVB_01_M0 target
Enlarged heap size, remobed nv_seed
Added heap reservation in linker script from mbed-os
Removed heap size definition
turned on nv_seed config
Removed nv_seed macros
Enabled protection for PSoC6 CM0
Added PSoC6 CM0 PSA readme
Enabled mbed_hal-spm test
Enabled nv_seed and removed unneeded ipc config define
Added SPDX string to feature_ble cypress target files
Removed unneeded supported_toolchains lines for Cypress targets
Disabled protection settings
Corrected flash initialization for PSoC6 CM0 PSA
Changed PSoC6 IPC6 protection for flash
Enabled special flash initialization and enabled protection settings
Updated and added new prebuild PSoC6 CM0 PSA hex files
Disabled HW TRNG and CRC for PSoC6 CM4 PSA target
Added missing const to allow types to match
Updated PSoC6 WIFI_BT_PSA prebuilt directory
Moved PSoC6 shared section usage area definition to begin of ld
Added initial ARM_STD linker and startup files for PSoC6 CM0
Added initial IAR linker and startup files for PSoC6 CM0
Added defines to disable some SPM protection settings for PSoC64
Moved Flash function variables into separate memory region
Added defines for new Public area definition
Updated PSoC6 CM0_PSA hex-files
2019-03-12 10:06:32 -05:00
Jimmy Brisson b1d1299a1e Recompute sector information for Nuvoton 2019-03-12 10:06:32 -05:00
Jimmy Brisson ce341d22c9 Add dummy sector information for R7S72100 2019-03-12 10:06:32 -05:00