Commit Graph

2897 Commits (79568dbe6dfac4206b51f72ddb8e82b2785d5ee4)

Author SHA1 Message Date
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
Jimmy Brisson 9873da1ae2 Recompute sector information for STM32xxxxx 2019-03-12 10:06:31 -05:00
Jimmy Brisson bb023fe957 Test for sector information 2019-03-12 10:06:31 -05:00
Oren Cohen 5efec7ee54 Fix tool 2019-03-12 10:06:30 -05:00
Oren Cohen 3a12cf6896 Remove _NS & _PSA from test_spec.json 2019-03-12 10:06:30 -05:00
Nir Sonnenschein 25be6feb69 update importer hashes for latest changes 2019-03-12 10:06:30 -05:00
Nir Sonnenschein c178c1386e update importer hashes for latest fixes 2019-03-12 10:06:30 -05:00
Nir Sonnenschein 678ac50f67 Updated to cb58d2c 2019-03-12 10:06:30 -05:00
Amanda Butler 3e6723c849 Edit README.md
Edit file for minor grammar and style tweaks, mostly for consistent capitalization and tense across docs.
2019-03-12 10:06:29 -05:00
Oren Cohen abbb2ffbe6 Fix typo 2019-03-12 10:06:29 -05:00
Oren Cohen abc90c354c Remove python from code block 2019-03-12 10:06:29 -05:00
Oren Cohen bc8f53218e Add README.md for tools/psa 2019-03-12 10:06:29 -05:00
Oren Cohen d3fd113cbe Add option to run on a single target 2019-03-12 10:06:29 -05:00
Oren Cohen a5019e6051 Secure binaries release script
This script will find all the PSA targets and compile their secure binaries
Including test secure binaries
2019-03-12 10:06:29 -05:00
Michael Schwarcz e8246bb40b Compare non-secure image name without extension
- For cases where non-secure image is HEX and secure image is BIN
2019-03-12 10:06:28 -05:00
Michael Schwarcz 7321545116 Add missing license header 2019-03-12 10:06:28 -05:00
Michael Schwarcz 259e257f1e Add assertions and tests 2019-03-12 10:06:28 -05:00
Michael Schwarcz 12390f662b tools: Add find_secure_image function
- Used by Non-secure targets post-build hooks to find
  the relevant secure image.
2019-03-12 10:06:28 -05:00
Martin Kojtal c37ac83e8e
Merge pull request #8757 from theotherjimmy/use-cpm
Update Cmsis-pack-manager to 0.2.3
2019-03-06 15:58:42 +01:00
Martin Kojtal f236125c74
Merge pull request #9918 from kfnta/unify_psa_generators
Unify PSA code generators
2019-03-06 15:39:49 +01:00
Martin Kojtal 9d72a5cf79
Merge pull request #9738 from theotherjimmy/reorder-bl-hooks
Tools: Reoder post-build hooks and bl merging
2019-03-06 13:02:45 +01:00
Brian Daniels c129336453 Fix include paths for the assembler for makefiles.
The Makefile is run from the build directory. The source files were
properly prefixed with "../", however the paths provided to the
assmebler were not. This ensures the assembler include paths are
prefixed properly.
2019-03-05 15:13:37 -06:00
Jimmy Brisson a045c45996 Remove prints and lint warnings 2019-03-05 11:10:51 -06:00
Martin Kojtal 812812a626 nuvoton m2351: fix RAM regions - only one RAM1
Revert latest change to index. Linker scripts follow one RAM region. If index is updated,
requires further changes in the target that should be done separately.
2019-03-05 09:49:59 +00:00
Jimmy Brisson 288fc2fb1c Manually re-combine NUMAKER_PFM_M2351 memories 2019-03-04 16:53:02 -06:00
Jimmy Brisson a69e2b45ff Recompute Numaker PFM M2351 sectors 2019-03-04 13:28:11 -06:00
Jimmy Brisson c9b613c2fe Remove unused import patch 2019-03-04 11:36:36 -06:00
Jimmy Brisson 1f4c2710b1 Add SPDX identifier to liscense in "new" file 2019-03-04 11:36:36 -06:00
Jimmy Brisson c9674dc7f8 Fix pylint in iar.py except for the long regex 2019-03-04 11:36:36 -06:00
Jimmy Brisson 1712506de2 Fix pylint warnings in gcc.py except for the long regex 2019-03-04 11:36:36 -06:00
Jimmy Brisson 5dd149cb13 Fix formatting erros in arm.py
except for the extremely long regex
2019-03-04 11:36:36 -06:00
Jimmy Brisson a2fcdba040 Move toolchain base class into another file 2019-03-04 11:32:16 -06:00
Jimmy Brisson b0b43c27bf Correct all pylint warnings and errors except 4
The 4 remaining are related to the fact that __init__.py defines a base class.
They'll be removed next commit
2019-03-04 11:32:16 -06:00
Jimmy Brisson 7a55bc7b0c Prevent "Image: None" in log 2019-03-04 11:32:16 -06:00
Jimmy Brisson 98a7bfcdcc Define filename when OUTPUT_EXT is elf 2019-03-04 11:32:16 -06:00
Jimmy Brisson 9c9e0595f2 Add SPDX identifier 2019-03-04 11:32:15 -06:00
Jimmy Brisson cd20c37cdc Drop unused variable from link_program 2019-03-04 11:32:15 -06:00
Jimmy Brisson 3353722d36 Correct use before definition bug in ARM 2019-03-04 11:32:15 -06:00
Jimmy Brisson a007212602 Remove use of hooks from IAR
Aparantely I missed this previously
2019-03-04 11:32:15 -06:00
Jimmy Brisson 58867c052e Correct test import locations
A few functions moved into their own module
2019-03-04 11:32:15 -06:00
Jimmy Brisson 4cac89c22b Reorder post-build and managed bootloader mode merging
Priously, post-bulid was run before the merge from managed bootloader mode.
This renders many post-build scripts less than useful, as most of them
compute a digest of the ROM image generated in a build.

This reorders the post-build scripts to come after the managed bootloader
mode so that post-build script digests are useful again.
2019-03-04 11:30:49 -06:00
Jimmy Brisson aeeb43fb3c Simplify hook tool implementation
The "hook tools" were capable of hooking into many commands run by the build system.
To my knowlage, the only hook is the "post-build-hook". The post build hook could be
easier to reason about if the implementation is specialized for just post-build
hooking.

This commit make it much easier to point out where post build hooks are called by
making the call explicit.
2019-03-04 11:30:49 -06:00
Jimmy Brisson 643b5785a5 Recreate STM32F439ZITx sector information 2019-03-04 11:24:48 -06:00
Jimmy Brisson fd63f5bde5 Correct python3 bug in gerenate index 2019-03-04 11:24:48 -06:00
Jimmy Brisson 1e5b83262a Recompute sector information for STM32F429ZITx 2019-03-04 11:24:47 -06:00
Jimmy Brisson c5bbfb2d51 Correct name of K22F 2019-03-04 11:24:47 -06:00
Jimmy Brisson 049ee2df4d Add old name for STM32H743ZI 2019-03-04 11:24:47 -06:00
Jimmy Brisson 859949fc74 Update index to include vendor information 2019-03-04 11:24:47 -06:00
Jimmy Brisson 8d7c15ee35 Use device variant in uvision export 2019-03-04 11:24:47 -06:00
Jimmy Brisson 9de37ec39c Correct uvisionn export 2019-03-04 11:24:47 -06:00
Brian Daniels dbbf336949 Avoid KeyError Exceptions.
Co-Authored-By: theotherjimmy <theotherjimmy@gmail.com>
2019-03-04 11:24:47 -06:00
Jimmy Brisson 4af70dcaa1 Use updated CPM info in config system 2019-03-04 11:24:47 -06:00
Jimmy Brisson aa07e126f1 Use upgrade table for unavailable CMP data 2019-03-04 11:24:47 -06:00
Jimmy Brisson 74f45fbbfc Start using CPM 2019-03-04 11:24:46 -06:00