Commit Graph

3013 Commits (56e2d339c8a5a061aa3f50f14ede223c06d42570)

Author SHA1 Message Date
Martin Kojtal c123b98b3c
Merge pull request #9804 from aashishc1988/disable_update_cert
Provide an option to disable writing developer certificate
2019-02-27 11:13:30 +01:00
Martin Kojtal d4a07e0adb
Merge pull request #9851 from vidavidorra/feat/support-obj-in-memap
feat: add support for .obj files in memap
2019-02-27 09:48:46 +01:00
Cruz Monrreal e77f03cfbc
Merge pull request #9317 from naveenkaje/tools_bootloader_script
tools: support cases where bootloader is in chunks
2019-02-26 22:49:42 -06:00
Cruz Monrreal 4b13c8a212
Merge pull request #9768 from c1728p9/feature-hal-spec-usb-device
Bring USB Feature branch into master
2019-02-26 22:48:02 -06:00
Cruz Monrreal d29312e7ac
Merge pull request #9808 from ARMmbed/feature-iar8
IAR 8 feature branch merge
2019-02-26 15:30:27 -06:00
Aashish chaddha 294bb3a58f Modified code to stop assuming that subparser lies at certain position 2019-02-26 15:10:39 -06:00
Deepika 1ad23433f5 Remove IAR from required toolchains list 2019-02-26 10:26:13 -06:00
Jeroen de Bruijn faac445b34
feat: add support for .obj files in memap 2019-02-26 14:46:19 +01:00
Vincent Coubard c7169b0638 BLE - accept tpp extensions for header files. 2019-02-26 13:18:18 +00:00
deepikabhavnani f33fc3ae7b Set IAR version as 8.32 in tools 2019-02-26 12:53:30 +00:00
Cruz Monrreal 15ccb32d31
Merge pull request #9836 from kfnta/tfm_patch
TF-M: Fix issues found in SPM tests
2019-02-25 19:58:38 -06:00
Cruz Monrreal 22674a694d
Update tools/export/__init__.py
Co-Authored-By: kegilbert <K.Gilbert.CH@gmail.com>
2019-02-25 17:50:51 -06:00
Cruz Monrreal 044d0c9cb1
Merge pull request #9778 from michalpasztamobica/add_missing_wifi_config_params
Add missing wifi parameters to test configs
2019-02-25 17:30:36 -06:00
Cruz Monrreal 4532e41212
Merge pull request #9781 from vmedcy/psoc6-hex-align
PSOC6: correctly align hex files with split text sections
2019-02-25 17:29:14 -06:00
Jimmy Brisson da3eb5df47
Update tools/export/__init__.py
Co-Authored-By: kegilbert <K.Gilbert.CH@gmail.com>
2019-02-25 13:57:26 -06:00
Jimmy Brisson c0fbe95d54
Update tools/export/__init__.py
Co-Authored-By: kegilbert <K.Gilbert.CH@gmail.com>
2019-02-25 13:57:20 -06:00
Michal Paszta 42404be824 Change all wifi and WiFi occurences to Wi-Fi 2019-02-25 14:54:18 +02:00
Michael Schwarcz 5f2cbaa18d TFM Importer: Update SHAa of TFM patches 2019-02-25 14:36:52 +02:00
kegilbert 056b88ad0e Pull in artifact-name for exported projects 2019-02-22 17:47:13 -06:00
Russ Butler 2e7e026d2f Remove mbed 2 USB tests from Travis
Remove the mbed 2 USB tests since USB support will be part of mbed 5.
2019-02-22 10:52:32 -06:00
Aashish chaddha 151505c18e improve option names and description 2019-02-22 10:17:24 -06:00
Deepika 5501947197 Update IAR project template as per IAR 8.32
Reference template file is used from IAR8.32 installation available at path
"Embedded Workbench 8.2\arm\config\template\ConvertToIAR\template_project.ewp"

Also added trustzone configs in iar_definitions.json
2019-02-22 09:25:08 +00:00
Michal Paszta 19c6732105 Add missing wifi parameters to test configs 2019-02-22 10:13:14 +02:00
Cruz Monrreal 870bd05904
Merge pull request #9708 from davidsaada/david_protected_storage
Implement PSA protected storage & restructure PSA storage implementation
2019-02-21 17:30:56 -06:00
Cruz Monrreal 77591fbdd3
Merge pull request #9772 from kfnta/tfm_extras
Additions to TF-M source integration
2019-02-21 15:32:28 -06:00
Naveen Kaje a47cfd4ccd tools: build_api_test: Add tests to verify the processing of bootloader images
Add tests to
    1. Verify that a ConfigException is generated if application is placed
        within the bootloader region
    2. Verify that a ConfigException is generated if bootloader segments
        don't fit witin rom.
2019-02-21 15:11:45 -06:00
Naveen Kaje 4cc21820bb tools: support cases where bootloader is in chunks
Support the requirement where bootloader can be in chunks and enable
placing the application at a particular offset specified by config.
With FEATURE_BOOTLOADER support, the bootloader can be placed at a
high address. Add support to the tools so that application can be
placed in the available space before the beginning of the bootloader.
2019-02-21 15:11:44 -06:00
Aashish chaddha 21cb81e252 Provide an option to disable writing developer certificate to cloud_credentials.c 2019-02-21 13:41:58 -06:00
David Saada 41eb5cbfd9 Implement PSA protected storage & restructure PSA storage implementation
- Move all PSA storage code under psa/storage directory
- Create a global PSA error codes header, eliminating ITS specific ones
- Create a common header file for PSA storage type definitions,
  eliminating ITS specific ones
- Create a common implementation for PS & ITS
- Implement protected storage feature
- Change ITS test to be common to PS as well
2019-02-21 20:58:59 +02:00
Michael Schwarcz 7016ac7d8c Add image signing scripts from TF-M bl2 library 2019-02-21 17:42:58 +02:00
Michael Schwarcz d2c433ccfe TFM Importer: Update SHAa of TFM patches 2019-02-21 17:42:56 +02:00
Oren Cohen 8800ad5c80 TFM: Add defines to mbed_lib.json 2019-02-21 17:38:30 +02:00
Brian Daniels 434d86b08a Ensure header CRC is written as unsigned int 2019-02-20 20:30:54 -06:00
Volodymyr Medvid 534becb175 PSOC6: correctly align hex files with split text sections
When the original PSOC6 CM4 hex file contains unalinged text sections
that span through multiple intelhex segments, aligned segments (filled
with zeroes) overlap with the original data segments, resulting in
error thrown by ihex.merge(alignments, overlap='error').
Such hex file can be produced when the ELF is built with ARM MDK Compiler
with --split_sections option:
http://www.keil.com/support/man/docs/armcc/armcc_chr1359124944914.htm

Change the merge strategy to overlap='ignore', so that the overlapping
zero-filled segments are skipped.
2019-02-20 22:34:10 +02:00
Cruz Monrreal 2910ed54c1
Merge pull request #9277 from deepikabhavnani/flags_fixes
Sleep: error flags fix
2019-02-20 12:07:15 -06:00
Martin Kojtal 3aeff7ae25
Merge pull request #9765 from kfnta/asm_config
Add config header to assembly compilation
2019-02-20 11:51:57 +01:00
Martin Kojtal e59166289f
Merge pull request #9756 from vmedcy/psoc6-cmake-export
PSOC6: enable export to CMake
2019-02-20 09:39:35 +01:00
Martin Kojtal 7f4475d924
Merge pull request #9736 from 0xc0170/fix_licenses_files
tools/test/cmsis: add license header
2019-02-20 09:38:55 +01:00
Oren Cohen 156bdc4b95
Add config header to assembly compilation
ARMC6 was not including mbed_config.h when compiling assembly files
2019-02-20 01:15:23 +02:00
Volodymyr Medvid cf0ea92104 tools/export: move hex_files selection to base Exporter class
CMake and makefile exporters share a common logic for hex file
selection. Factor it as a common property in the base class
to avoid code duplication.
2019-02-19 20:03:06 +02:00
Michael Schwarcz 01a78e98a2 Add mbed_app.json for TF-M bare-metal build 2019-02-19 15:19:06 +02:00
Michael Schwarcz 516af50cb7 Consolidating tools/tfm and tools/spm into tools/psa 2019-02-19 15:19:06 +02:00
Michael Schwarcz 2198d5c008 Update tfm_importer.json with SHAs of patches 2019-02-19 15:19:00 +02:00
Michael Schwarcz f5af459d4c Add TF-M autogen tool 2019-02-19 15:18:52 +02:00
Michael Schwarcz 771cdaa3e7 Add TF-M importer json 2019-02-19 15:18:52 +02:00
Volodymyr Medvid 7311a610e5 PSOC6: enable export to CMake
The approach for the hex_files subset selection is identical
to makefile exporter: https://github.com/ARMmbed/mbed-os/pull/9466

Single hex file should be passed to srec_cat when hex_filename
is set in targets.json or mbed_app.json.
2019-02-19 14:15:31 +02:00
Martin Kojtal 195965fd5e tools: move string description after import modules 2019-02-19 10:49:04 +00:00
Martin Kojtal 62b5b4644d memap: remove not needed comment prior future import 2019-02-19 09:55:05 +00:00
Martin Kojtal 34cdefc89e tools: fix hashbang 2019-02-18 15:45:33 +00:00
Cruz Monrreal f95ec957dd
Merge pull request #9742 from naveenkaje/mcuxpresso_export_fix
tools: export: MCUXpresso: fix case inconsistencies in .templ file names
2019-02-15 21:15:42 -06:00
Cruz Monrreal 5a8970a48b
Merge pull request #9649 from ngraziano/fix-vscode-export
Fix IntelliSense in VSCode export
2019-02-15 12:28:00 -06:00
Naveen Kaje 8d284cb4b6 tools: export: MCUXpresso: fix case inconsistencies in .templ file names
The templ file names are both all upper case and lower case letters.
The Target Names map is usually all upper case. The match could fail
if the templ file, as we have case-sensitive comparison. Handle such
cases by perorming a case-insensitve check.

mbed export of a project to MCUXpresso could potentially always fail
irrespective of what is passed in -m option since the target names
map entry and the filename may not match. This commit fixes this issue.

Example of the issue that this commit fixes:

$ mbed export -i mcuxpresso -m lpc11u68 -v
<snip>
project.py: error: LPC11U68 not supported by mcuxpresso
<snip>
2019-02-15 11:56:27 -06:00
Martin Kojtal c08f51aa36 copyright 2019 fix 2019-02-15 13:37:40 +00:00
Martin Kojtal c8f698ca36 tools: add license headers 2019-02-15 13:32:45 +00:00
Cruz Monrreal 883b8b8f4f
Merge pull request #9724 from naveenkaje/tools_dir_with_profile_name
tools/utils: ensure default build profiles are processed first
2019-02-14 21:21:19 -06:00
Cruz Monrreal 9e6c7234e2
Merge pull request #9715 from bridadan/inc_as_header_file
Add .inc as a header file type.
2019-02-14 20:26:38 -06:00
Cruz Monrreal 6278ed66b0
Merge pull request #9635 from bridadan/no_pelion_host
Do not provide a default Pelion host address.
2019-02-14 20:25:31 -06:00
Naveen Kaje 176b750257 tools/utils: ensure default build profiles are processed first
The command-line argument '--profile' looks for build
profiles provided in mbed-os/tools/profiles/. If a
directory name exists in the root folder with the
same name as one of the profile names provided by
default [e.g debug/develop/release], that directory
is processed instead resulting in incorrect behavior.
Fix this behavior by processing the default profiles first.
2019-02-14 10:37:05 -06:00
Martin Kojtal b9fb95860c check release: add license header 2019-02-14 14:06:15 +00:00
Brian Daniels 7e1dff5aec Add .inc as a header file type.
Currently, if you were to add a directory that only contained .inc
files, this file would not be passed as an include path to the compiler.
This ensures that .inc files are also considered header files.
2019-02-13 17:59:04 -06:00
Cruz Monrreal 2e9d6d2938
Merge pull request #9645 from AriParkkila/cellular-netsocket
Change TESTS/netsocket/ for cellular testing
2019-02-13 17:28:35 -06:00
Cruz Monrreal b820ec8922
Merge pull request #9561 from theotherjimmy/test-resources
Tools changes for bare metal
2019-02-13 12:31:54 -06:00
Ari Parkkila 56badd8616 Change TESTS/netsocket/ for cellular testing 2019-02-13 01:30:42 -08:00
Cruz Monrreal II b59bb465ba Removed decode since deeper tools always return strings 2019-02-12 12:05:28 -06:00
Cruz Monrreal II 8c10cb0b8d Prefixed string to properly be parsed as bytes 2019-02-12 12:05:28 -06:00
Martin Kojtal 26751eeaa9
Merge pull request #9658 from alekla01/patch-1
REALTEK_RTL8195AM binary timestamp
2019-02-12 09:51:34 +01:00
Cruz Monrreal f04d51b2cd
Merge pull request #9652 from kfnta/tools_fixes
Fix minor bugs in secure targets file filtering
2019-02-11 16:41:05 -06:00
Brian Daniels 3ff0ca4b23 Do not provide a default Pelion host address.
This moves the default pelion host address to be assigned by the cloud
sdk. It also cleans up the logic a bit to be shorter.
2019-02-11 16:11:43 -06:00
Cruz Monrreal 760aadf36d
Merge pull request #9657 from ARMmbed/revert-9496-Add_MXRT_IAR_Support
Revert "MIMXRT1050_EVK: Add IAR support in the exporter"
2019-02-11 16:10:30 -06:00
Nicolas Graziano e85bbdd767 Vscode export: replace obsolete ${workspaceRoot}
Replace with ${workspaceFolder}
2019-02-11 19:05:25 +01:00
Nicolas Graziano 4b1789de22 Vscode export: remove path separator conversion
VSCode handle "/" and it is easier to read.
2019-02-11 19:05:14 +01:00
Nicolas Graziano e682807bf5 Fix IntelliSense in VSCode export
Allow to use default intelliSenseEngine in visual studio code.
Add of compilerPath and forcedInclude of mbed_config header in the
created c_cpp_properties.json file.
2019-02-11 19:05:04 +01:00
Martin Kojtal 36df2aa868
Merge pull request #9633 from orenc17/update_delivery
Improvement to artifact delivery method
2019-02-11 17:54:51 +01:00
Aleksi Klasila 3e88cf7e83 REALTEK_RTL8195AM daplink timestamp from os.environ 2019-02-11 18:11:07 +02:00
Jimmy Brisson f331d9e94e Add SPDX identifier for new file 2019-02-11 08:49:18 -06:00
Jimmy Brisson 5b96cbfa34 Fix typo in config schema definitons 2019-02-11 08:45:35 -06:00
Martin Kojtal 10bb66a053
Merge pull request #9424 from SeppoTakalo/ONME-4125
Allows multiple network status listeners
2019-02-11 10:41:35 +01:00
Martin Kojtal 7e831a7f91
Revert "MIMXRT1050_EVK: Add IAR support in the exporter" 2019-02-11 09:36:18 +00:00
Oren Cohen 6fa47bdb23
Update test.py 2019-02-11 10:38:41 +02:00
Oren Cohen 0ca2615a72 Check source relative to ROOT on secure targets
When building secure targets, we would like compile only files that are in the the mbe-os root folder.
This Fixes an issue when sending multiple --source parameters that are all inside the mbed-os tree
2019-02-10 17:13:10 +02:00
Michael Schwarcz 8fb2467608 Force adding mbed-os root to include dirs 2019-02-10 16:32:21 +02:00
Michael Schwarcz 9013dc8e5d
Update tools/config/__init__.py
Co-Authored-By: orenc17 <oren.cohen@arm.com>
2019-02-09 13:55:32 +02:00
Oren Cohen e162d69f56 Make delivery_dir relative to the json it was declared in 2019-02-07 19:13:01 +02:00
Nir Sonnenschein 8c2ad14ace
Merge pull request #9568 from ARMmbed/feature-cellular-refactor
Merge feature cellular refactor
2019-02-07 18:17:32 +02:00
Nir Sonnenschein 5ef9499296
Merge pull request #9619 from deepikabhavnani/typo_correct
Correct the dsp flag from no_dsp to nodsp
2019-02-07 18:13:24 +02:00
Oren Cohen 44c1a2cea3 Make delivery_dir relative to mbed_os root 2019-02-07 14:56:57 +02:00
Anna Bridge 645c1cebb5
Merge pull request #9021 from naveenkaje/fix_part_size_check
tools: check that part size is not exceeding region size
2019-02-07 10:16:12 +00:00
Martin Kojtal 7e18cc5b6a
Merge pull request #9596 from vmedcy/make-cmd-files
Implement Linker command/response files in make export
2019-02-07 09:36:19 +01:00
Martin Kojtal 09db995c73
Merge pull request #9625 from kfnta/tools_arm_fix
Fix cortex-m33 armlink error
2019-02-07 09:24:42 +01:00
Martin Kojtal 9bda4494ca
Merge pull request #9614 from kfnta/tools_gcc_fix
Fix cortex-m33-S gcc compilation error
2019-02-07 09:24:00 +01:00
Oren Cohen 04a22a2e69 Improvement to artifact delivery method
A target can define a delivery directory instead of the default option
2019-02-06 15:26:59 +02:00
Michael Schwarcz 965410bef0
Fix cortex-m33-S armlink error
Add "-mfpu=none" compilation flag
2019-02-06 10:28:28 +02:00
Martin Kojtal 4ce6ed0f47
Merge pull request #9606 from deepikabhavnani/core_arch_v8m
Correct typo no_dsp - nodsp
2019-02-05 16:59:13 +01:00
deepikabhavnani 07ccd82719 Correct the dsp flag from no_dsp to nodsp 2019-02-05 09:35:46 -06:00
Michael Schwarcz 0e7d172d0f
Fix cortex-m33-S compile error
Compilation error was due to due to bug in gcc.py
2019-02-05 14:48:29 +02:00
Deepika b49a6b2ad8 Correct typo no_dsp - nodsp
armclang - nodsp
armlink - no_dsp

diff --git a/tools/t
2019-02-04 15:40:53 -06:00
Volodymyr Medvid 6918e6a76b makefile export: create .link_options.txt with echo
$(file > $@.in, $(filter %.o, $^)) is not supported in GNU Make 3.81.
Create the linker response file with pipe redirect from echo command.
This is tested with Cygwin make and make 3.8.1 shipped with macOS.

Also, change the linker responce file name to .link_options.txt.
This is an internal file, not a build artifact.
2019-02-04 20:10:47 +02:00
Martin Kojtal 1c483e87b0
Merge pull request #9589 from bridadan/fix_export_exception_msg
Improve error message for exports for OS2-only targets
2019-02-04 17:26:10 +01:00
Martin Kojtal dcba5ffa3c
Merge pull request #9529 from kfnta/its_crypto
RollUp PR Crypto with ITS
2019-02-04 17:14:05 +01:00
Martin Kojtal 0ae6a048e4
Merge pull request #9431 from deepikabhavnani/iar_armv8m_changes
Update IAR Armv8M changes
2019-02-04 14:34:28 +01:00
Brian Daniels 8d900c77cf Improve error message for exports for OS2-only targets 2019-02-01 17:02:46 -06:00
Brian Daniels 811152da65
Add missing space - coding style nit
Co-Authored-By: deepikabhavnani <deepika.bhavnani@arm.com>
2019-02-01 10:38:37 -06:00
Martin Kojtal 7ba83a517d
Merge pull request #9342 from Cypress-OpenOCD/master
Add support for debug and program launch configurations
2019-02-01 08:10:20 +01:00
Naveen Kaje 43da2f22af tools: build_api_test: add test to detect when part overflows region size 2019-01-31 17:09:28 -06:00
Naveen Kaje 4393e4b82a tools: check part size is not exceeding region size
If config is specified, check that part size is not
exceeding the region. Normally we now assume that
part.maxaddr() can be beyond end of rom.
2019-01-31 17:03:05 -06:00
deepikabhavnani 6097095de4 Set the DSP option as `E` for Cortex-M33 2019-01-31 16:19:24 -06:00
deepikabhavnani fdbcae3830 Correct the floating+dsp options for Cortex-M processors
As per the IAR Development guide, below options for CPU are valid

1. Cortex-M33
2. Cortex-M33.no_dsp (core without integer DSP extension)
3. Cortex-M33.fp (floating-point unit with support for single precision)
4. Cortex-M33.no_se (core without support for TrustZone)
5. Cortex-M4
6. Cortex-M4F
7. Cortex-M7
8. Cortex-M7.fp.dp (floating-point unit with support for double precision)
9. Cortex-M7.fp.sp (floating-point unit with support for single precision)
2019-01-31 16:19:24 -06:00
deepikabhavnani 0082474ef2 Update `cmse` flag based on core_arch instead of different cores 2019-01-31 16:19:24 -06:00
Deepika 80f6b0e002 M2351: Update code to support IAR 8.x builds 2019-01-31 16:19:24 -06:00
deepikabhavnani f760f72757 Update IAR flags for Armv8M devices.
Cortex-M23 / Cortex-M33 CPU settings for baseline and mainline
profile (with optional floating and dsp options) updated.
2019-01-31 16:19:24 -06:00
Jimmy Brisson c31fb479d9 Rename tests so that you get what they do 2019-01-31 14:14:26 -06:00
Jimmy Brisson 9b8a48f0f1 Rewrite and document _include_file 2019-01-31 13:55:33 -06:00
Jimmy Brisson 0265b57d35 Rewrite include finction to only heed nearest library 2019-01-31 11:31:33 -06:00
Andriy.Lishchynskyi be5a625771 Resolved code review comments 2019-01-31 19:31:28 +02:00
Jimmy Brisson 020c840cf8
Apply suggestions from code review
Co-Authored-By: Cypress-OpenOCD <39907069+Cypress-OpenOCD@users.noreply.github.com>
2019-01-31 19:29:13 +02:00
Jimmy Brisson 92475ae96c Test exclude within include 2019-01-31 11:13:52 -06:00
Jimmy Brisson a8323337aa Test include within an exclude 2019-01-31 11:11:56 -06:00
Jimmy Brisson 5335faf6c2 Pass only libraries to include_libaries 2019-01-31 11:04:47 -06:00
Cruz Monrreal c9e00cf781
Merge pull request #9480 from deepikabhavnani/core_arch_v8m
Refactor core optional parameters (FPU + DSP + Security extensions)
2019-01-31 10:22:09 -06:00
Jimmy Brisson a8a21d30a1 Implement Linker command/response files in make export 2019-01-31 17:38:25 +02:00
Jimmy Brisson f45b53fd47 Ignore non-config json files 2019-01-31 09:19:21 -06:00
Jimmy Brisson db30e714f9 Verify that we ignore non-config json files 2019-01-31 09:19:07 -06:00
Oren Cohen ea9f104463 Fix Licenses 2019-01-31 17:17:58 +02:00
Oren Cohen ff18a64e00 Check mbed-crypto-example with fork
Revert this commit once these changes are merged to example master
2019-01-31 17:17:57 +02:00
Oren Cohen 34895a05ad CR fixes 2019-01-31 17:17:54 +02:00
Oren Cohen 8841ba69f8 Align to new spec changes and prep for TFM SPM
# Conflicts:
#	components/TARGET_PSA/services/crypto/COMPONENT_PSA_SRV_IPC/psa_crypto_spm.c
#	components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_partition.c
2019-01-31 17:17:53 +02:00
Jimmy Brisson 250a1deab5 Handle recursive lib exclude/includes 2019-01-31 09:15:22 -06:00
Jimmy Brisson eb6a972857 Check that recursive libs work correctly 2019-01-31 09:15:14 -06:00
Andriy.Lishchynskyi 6f584cd35e Added copyright notes 2019-01-31 16:31:02 +02:00
Seppo Takalo e9f5ed4263 Add "unregister" to valid word list 2019-01-31 15:04:24 +02:00
Martin Kojtal dbc3c6250b
Merge pull request #9487 from theamirocohen/add_sd_driver_example
Add sd-driver example
2019-01-31 11:22:59 +01:00
Martin Kojtal 9265c19e2e
Merge pull request #9394 from jeromecoutant/PR_PERIPH
STM32: PeripheralPins files update from lastest CubeMX tool version
2019-01-31 11:21:09 +01:00
Jimmy Brisson 54d6e865ec Fix indentation 2019-01-30 15:33:26 -06:00
Jimmy Brisson ee5fea417b Address review comments 2019-01-30 15:06:01 -06:00
Andriy.Lishchynskyi 48dfcd98a9 Changes:
- added new erase launch configuration
- added new kits support
- code cleanup
2019-01-30 19:48:20 +02:00
Martin Kojtal 93f0a09344
Merge pull request #9521 from cmonr/py3-tests-and-fixes
Py3 fixes and Travis CI enablement
2019-01-30 10:02:50 +01:00
Martin Kojtal 2a16bbdf98
Merge pull request #9496 from NXPmicro/Add_MXRT_IAR_Support
MIMXRT1050_EVK: Add IAR support in the exporter
2019-01-30 09:56:29 +01:00
Martin Kojtal 7d036b52cd
Merge pull request #9283 from michalpasztamobica/tlssocket_greentea
Add TLSSocket greentea tests.
2019-01-30 09:55:21 +01:00
Jimmy Brisson b836b340a2
Updated spm test runner wish short import variant
Co-Authored-By: cmonr <Cruz.Monrreal@arm.com>
2019-01-29 14:54:42 -06:00
Cruz Monrreal II de4b7607a0 Simplified max/min condition 2019-01-28 14:01:48 -06:00
Cruz Monrreal II 533dcf36ff Added universal_newlines flag to Popen in pylint.py 2019-01-28 12:59:43 -06:00
Cruz Monrreal II 2a9a45d087 Increased path for spm include.
Py3 tests were not running as a result
2019-01-28 12:59:43 -06:00
Cruz Monrreal II 149d280e7a Added encoding to version check for Py3 compat 2019-01-28 12:59:43 -06:00
Cruz Monrreal II cc3114113d In Py3.7, a reinit of a mock variable was needed.
It seems that initializing mock variables in an object isn't enough
2019-01-28 12:59:43 -06:00
Cruz Monrreal II d9add3447d Added None check for min in config tools 2019-01-28 12:59:43 -06:00
Cruz Monrreal II 72dbc52715 Added flag to run_cmd Popen invocation to do default decoding 2019-01-28 12:59:43 -06:00
Cruz Monrreal e965aa6640
Merge pull request #9509 from vmedcy/psoc6-daplink-hex
PSOC6.py: generate hex files with 16 bytes per row
2019-01-28 10:38:15 -06:00
Cruz Monrreal 7f8ebc75cd
Merge pull request #9466 from vmedcy/psoc6-target-hook
Improve PSoC 6 post-build hooks, whitelist makefile export
2019-01-28 10:33:12 -06:00
Volodymyr Medvid 5c384f10e7 PSOC6.py: generate hex files with 16 bytes per row
DAPLink implementation on Cypress kits cannot handle hex files
with 64 bytes per row: refer to https://github.com/ARMmbed/DAPLink,
source/daplink/drag-n-drop/intelhex.c, hex_line_t struct, data field.
2019-01-25 10:07:00 -08:00
deepikabhavnani febbeffff6 Change if statements to lookup tables 2019-01-25 09:43:03 -06:00
Jimmy Brisson 06ea053419 Minor fixes 2019-01-25 09:42:47 -06:00
deepikabhavnani f7d49fdc82 Change DSP variant symbol to `E` from `D`(d-double floating point) 2019-01-25 09:31:44 -06:00
deepikabhavnani c472005cfa GCC_ARM: Strip the -NS from core option before setting floating point options 2019-01-25 09:28:36 -06:00
deepikabhavnani c0750de318 Armc6 - Set floating point and CPU options for all core variants explicitly
Below are the options read from the toolchains/arm
armclang --target=arm-arm-none-eabi -mcpu=list
The following arguments to option 'mcpu' can be selected:
  -mcpu=cortex-m0
  -mcpu=cortex-m0plus
  -mcpu=cortex-m1
  -mcpu=cortex-m3
  -mcpu=cortex-m4
  -mcpu=cortex-m7
  -mcpu=cortex-m23
  -mcpu=cortex-m33
  ...

armlink --cpu=list
The following arguments to option 'cpu' can be selected:
 --cpu=Cortex-M0
 --cpu=Cortex-M0plus
 --cpu=Cortex-M1
 --cpu=Cortex-M1.os_extension
 --cpu=Cortex-M1.no_os_extension
 --cpu=Cortex-M4
 --cpu=Cortex-M4.no_fp
 --cpu=Cortex-M7
 --cpu=Cortex-M7.fp.sp
 --cpu=Cortex-M7.no_fp
 --cpu=Cortex-M23
 --cpu=Cortex-M33
 --cpu=Cortex-M33.no_fp
 --cpu=Cortex-M33.no_dsp
 --cpu=Cortex-M33.no_dsp.no_fp
...

armclang --target=arm-arm-none-eabi -mfpu=list
The following arguments to option 'mfpu' can be selected:
  -mfpu=fpv4-sp-d16
  -mfpu=fpv5-sp-d16
  -mfpu=fpv5-d16
...
2019-01-25 09:28:36 -06:00
deepikabhavnani 907c517473 Use core arch for setting secure/non-secure flags 2019-01-25 09:28:36 -06:00
Ari Parkkila 95839662c6 Cellular: Fix cellular specific Greentea tests 2019-01-24 23:34:44 -08:00
Cruz Monrreal 615ed31f7a
Merge pull request #9488 from 0xc0170/fix_licenses
Fix licenses in travis test and realtek lib
2019-01-24 16:16:38 -06:00
Mahesh Mahadevan aa449b3c5f MIMXRT1050_EVK: Add IAR support in the exporter
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-01-24 13:55:20 -06:00
Cruz Monrreal f69b550d5d
Merge pull request #9462 from deepikabhavnani/add_example
Corrected the targets value in json file as CI uses real board names
2019-01-24 13:27:46 -06:00
Kevin Gilbert ecdd1d7cb3 Add empty en_phonet.
Required to run with aspell and comply with license changes
2019-01-24 11:34:14 -06:00
Martin Kojtal 32e247d06f travis: remove phonedat database
Not permissive license
2019-01-24 12:28:22 +00:00
Amir Cohen f7ea4c9e67 Add sd-driver example 2019-01-24 13:34:35 +02:00
jeromecoutant 16028e3796 STM32_gen_PeripheralPins.py v1.5
Use dedicated PinMap for each QSPI data line #9438
2019-01-24 11:00:00 +01:00
jeromecoutant bdc91b0a9a STM32_gen_PeripheralPins.py v1.4
Minor updates:
- remove QSPI BK2
- beautifier edition
- use STM_MODE_ANALOG_ADC_CONTROL for L4 family
2019-01-24 10:25:36 +01:00
Cruz Monrreal 7bdc280ced
Merge pull request #9437 from deepikabhavnani/preprocess_asm
FPU_USED to be set based on HW FPU support + Squash commits
2019-01-23 22:48:21 -06:00
Andriy.Lishchynskyi 55a6ca5b1a Fix python3 compatibility issue 2019-01-23 23:25:20 +02:00
Martin Kojtal 129889bf52
Merge pull request #9404 from deepikabhavnani/dsp_flag
DSP_PRESENT flag is needed for Armv8m devices having DSP enabled
2019-01-23 14:21:23 +01:00
Martin Kojtal af52c30234
Merge pull request #9433 from deepikabhavnani/asm_v8m_flags
Set DSP and floating point flags for ASM files
2019-01-23 09:18:18 +01:00
Volodymyr Medvid a48ee113ea PSOC6: refactor M0 image merging, enable export to makefile
Rename the existing PSoC-specific m0_core_img key in targets.json
as a more generic hex_filename key. Update makefile exporter to select
the subset of resources.hex_files matching the hex_filename value.
Without this fix, multiple prebuilt CM0+ hex files are found in the
target resources and erroneously passed to the srec_cat tool.

The fix is generic so other targets that need post-build hex merging
can use this key to pass the correct image to srecord tool.

The fix also removes sub_target key: instead, rely hex_filename json
key to detect if the hex image merging needs to be done.
The sub_target is not used in mbed-os codebase for anything else.

It is possible to override the hex file name in mbed_app.json:
{
  "target_overrides": {
    "*": {
      "target.hex_filename": "my_custom_m0_image.hex"
    }
}
2019-01-22 15:40:22 -08:00
Volodymyr Medvid 5b0daadd18 PSOC6.py: do not require metadata during HEX merging
Replace hard-coded numeric offsets of PSoC 6 hex file sections
with sensible constants.
Do not attempt to update the checksum and metadata contents
if the sections are not found in the original HEX file.
2019-01-22 15:40:22 -08:00
Volodymyr Medvid 226edc1abd PSOC6.py: remove silicon ID check
PSoC 6 hex files contain 4-byte chip ID at virtual offset 0x90500002
added by PSoC Creator or cymcuelftool from .cymeta ELF section.
merge_images compares chip ID in CM0+ and CM4 hex files and raises
an exception in case of mismatch. Chip ID is different for each MPN
(for example, 0xE2072100 for CY8C6347BZI-BLD53 and 0xE2062100 for
CY8C6247BZI-D54). CM0+ prebuilt images target CY8C6347BZI-BLD53
but should be compatible with other PSoC6 MPNs.
Remove the check to enable merging CM0+ images with CM4 applications
built for different MPNs, with empty or absent cymetadata.
2019-01-22 15:40:22 -08:00
deepikabhavnani 2c062310cb Corrected the targets value in json file as CI uses real board names 2019-01-22 12:37:44 -06:00
deepikabhavnani 7b37b42080 Add NDEBUG flag to release profile of ARMC6 2019-01-22 11:21:33 -06:00
deepikabhavnani 30f18b67e5 Add flag "-DMBED_TRAP_ERRORS_ENABLED=1" to develop profile as well
printf was called from ISR when sleep tracing was enabled. Issue was
captured only in debug profile.
Printf is not allowed from ISR context and issues like this should be
trapped in case of debug profiles as well.
2019-01-22 10:23:18 -06:00
Martin Kojtal c598a937c3
Merge pull request #9439 from jamesbeyond/examples-test
Examples: enabled some examples build for FVP_MPS2_M3 target
2019-01-22 13:30:42 +01:00
Michal Paszta d568e2160b Add TLSSocket greentea tests.
TLSSocket tests based on existing TCPSocket greentea tests and TLSSocket icetea tests.
2019-01-22 12:46:48 +01:00
Martin Kojtal 31579fe4bb
Merge pull request #9328 from SeppoTakalo/ip-core-doxygen
Doxygen fixes for IP networking area
2019-01-22 10:48:10 +01:00
Martin Kojtal 1568be0771
Merge pull request #9389 from cmonr/fixed-travisCI-python-modules
Travis CI: Bind remaining python modules
2019-01-21 16:39:45 +01:00
Martin Kojtal 2a7a3262c8
Merge pull request #9398 from kjbracey-arm/no_armc6_warn
Revert "Warn with ARMC6 and not v8m"
2019-01-21 13:37:59 +01:00
Martin Kojtal 091fe2bed4
Merge pull request #9401 from loverdeg-ep/custom-targets-option
tools: adds and implements a --custom-targets command line switch
2019-01-21 13:17:01 +01:00
Martin Kojtal acd1e986f0
Merge pull request #9428 from 0xc0170/fix_exporters
STM32H743ZI: iar removal as not supported in v7.x
2019-01-21 13:15:30 +01:00
Seppo Takalo 58c2760e3f Fix spelling mistakes 2019-01-21 11:54:49 +02:00
Qinghao Shi bed181fe34 Examples: enabled some examples build for FVP_MPS2_M3 target 2019-01-19 19:09:17 +00:00
Deepika 3bd6bf111b Update script to have single commit for CMSIS/RTX pre-processor changes 2019-01-18 18:25:51 -06:00
Deepika ddc762776f Set DSP and floating point flags for ASM files 2019-01-18 14:13:31 -06:00
Deepika ed8b53877c DSP_PRESENT flag is needed for Armv8m devices having DSP enabled 2019-01-18 13:34:15 -06:00
Andriy.Lishchynskyi 7f2caacbdd Added GNU MCU Eclipse plug-in support 2019-01-18 18:14:35 +02:00
Martin Kojtal 8f48104842
Merge pull request #9418 from naveenkaje/build_api_spell_fix
tools: build_api: remove redundant initialization and fix spelling
2019-01-18 14:38:41 +01:00
Martin Kojtal 796d1c2a64 STM32H743ZI: iar removal as not supported in v7.x
Fixes #9426
2019-01-18 12:09:42 +00:00
Cruz Monrreal 68deb05d1b
Merge pull request #9376 from michalpasztamobica/tcpsocket_greentea
TCP/UDP greentea tests refactoring and cleanup
2019-01-17 21:52:40 -06:00
Naveen Kaje 06dbd82d1f tools: build_api: remove redundant initialization and fix spelling 2019-01-17 12:56:09 -06:00
Cruz Monrreal II 390b581516 Added warning suppression to python api_tests.
Apparently local laptop isn't fast enough for test generation, but CI is
2019-01-17 12:39:52 -06:00
Garrett bb5ea80890 Revert duplicated implemenation of --custom-targets 2019-01-17 13:16:10 -05:00
Garrett 00a5fac0be Add --custom-target argument to get_default_options_parser 2019-01-17 13:16:09 -05:00
Garrett fc968e6cef Revert get_config.py make.py test.py 2019-01-17 13:16:09 -05:00
Garrett 31615eb542 If custom_targets_directory exists use it over source_dir 2019-01-17 13:16:09 -05:00
Garrett 83d679ae38 adds --custom-targets argument anywhere extract_mcus is called 2019-01-17 13:16:09 -05:00
Kevin Bracey d17d43bdfa Revert "Warn with ARMC6 and not v8m"
This reverts commit 3f684113b0.
2019-01-17 10:59:27 -06:00
Martin Kojtal 1a8844e8ed
Merge pull request #8887 from deepikabhavnani/uVision_fix
Adding debugger awarness with Keil MDK
2019-01-17 17:56:42 +01:00
Martin Kojtal 53bb9868ed
Merge pull request #9405 from cmonr/fix-doxy
Travis: Fix doxy-spellcheck job
2019-01-17 17:21:14 +01:00
Martin Kojtal 694e45fb78
Merge pull request #9297 from bridadan/fix_os2_tests_uarm
uARM targets now build in correct ARM_MICRO directory
2019-01-17 12:40:21 +01:00
Cruz Monrreal II 9ed5d049bb Added 'retarget' to aspell ignore list 2019-01-16 23:30:24 -06:00
Jimmy Brisson 5cf07df264 Filter libs with absolute paths
as the config system uses only abspaths
2019-01-16 13:32:52 -06:00
Jimmy Brisson 4fbbac9acd Use name definition in requires definition 2019-01-16 13:30:10 -06:00
Jimmy Brisson eaa4ee4179 Correct usage of get_config 2019-01-16 11:20:55 -06:00
Jimmy Brisson c225f2c82d Test that we don't exclude lib sources w/o requires 2019-01-16 11:17:49 -06:00
Jimmy Brisson 0b64c9cbbf Filter resources by included libraries 2019-01-16 11:15:13 -06:00
Jimmy Brisson c5a721c104 Test that libraries' source is excluded 2019-01-16 11:05:18 -06:00
Martin Kojtal 32c9c3ac46
Merge pull request #8970 from kegilbert/spell-checker-travisjob
Add doxygen spellcheck job to Travis
2019-01-16 09:30:46 +01:00
Jimmy Brisson 7a360efe8a Raise config error when missing dependencies 2019-01-15 17:48:08 -06:00
Jimmy Brisson 4dd525d0af Add test that missing requires cause a config failure 2019-01-15 17:32:20 -06:00
Jimmy Brisson 79eccd1733 Resolve library dependencies 2019-01-15 17:28:12 -06:00
Jimmy Brisson 9f6a096205 Add test case for requires from a library 2019-01-15 17:21:53 -06:00
Jimmy Brisson 243b079d2b Pass requires in mbed_app.json test 2019-01-15 17:05:43 -06:00
Jimmy Brisson dea8ea9f77 Add failing test that asserts mbed_app.json can require 2019-01-15 17:04:56 -06:00
Jimmy Brisson e2849e6201 Implement and test filtering resources by libraries 2019-01-15 14:44:54 -06:00
deepikabhavnani 8547f26872 Add missing ARMC6 flags - MBED_DEBUG and MBED_TRAP_ERRORS_ENABLED 2019-01-15 13:39:06 -06:00
deepikabhavnani 347acd1459 Add SHA for "Move Idle and Timer thread stack to bss section" commit 2019-01-15 12:08:49 -06:00
Deepika 255661e55b Adding debugger awarness with Keil MDK
Main thread in Mbed OS is statically allocated and was not available in call
stack of Keil MDK. The RTX5 kernel requires statically allocated thread
information objects that are placed into a specific section to enable RTOS
thread awareness in Keil MDK. This fix is to keep main thread in specific
section of memory.
2019-01-15 12:04:39 -06:00
Andriy.Lishchynskyi 7a85ae75e6 Reworked launch configuration creation mechanism - switched to single template. Specific data comes from the JSON file 2019-01-15 16:08:59 +02:00
Andriy.Lishchynskyi 9fa2c75912 added support for debug and program launch configurations 2019-01-15 16:08:59 +02:00
Michal Paszta 59e8dedb67 TCP/UDP greentea tests refactoring and cleanup 2019-01-15 10:00:35 +01:00
Martin Kojtal 5212cc6544
Merge pull request #6622 from NXPmicro/Add_KW41Z_Thread
Add nanostack support for KW41Z
2019-01-14 14:00:14 +01:00
Martin Kojtal c5014f4e19
Merge pull request #9324 from kfnta/avoid_mbed_tz_context
Avoid building mbed_tz_context.c for TF-M targets
2019-01-14 08:56:25 +00:00
Martin Kojtal 116e42f840
Merge pull request #9295 from deepikabhavnani/iar_asm
Add missing END to Armv8M IAR assembly files
2019-01-14 08:54:21 +00:00
kegilbert 70b9b753db Add doxygen spellcheck jobs to Travis
Currently tests
    - drivers
    - platform
    - rtos
    - events
    - features/netsocket
2019-01-11 10:22:15 -06:00
Deepika 09db6565e4 Added IAR assembly file update commit to cmsis importer
In future when performing CMSIS update b228cd9db0
commit can be merged to 287121ffdc -
CMSIS/RTX: Pre-processor defines used for assembly
2019-01-10 13:59:59 -06:00
Michael Schwarcz 1e8169df37 Update cmsis_importer.json SHAs
- Missing: CMSIS/RTX: Patch to conditionally compile (fb354752eb)
- New: CMSIS/CORTEX-M: Don't build mbed_tz_context.c in TF-M targets (d3f7abdb7c)
2019-01-10 18:08:09 +02:00
Mahesh Mahadevan 7981fdfb09 Supply test config for KW41Z
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-01-10 09:35:24 -06:00
Michael Schwarcz dba44e6c4b tools/importer script changes 2019-01-10 10:27:19 +02:00
Cruz Monrreal f8d7c31a9b
Merge pull request #9188 from SenRamakri/sen_ErrorUrlEnhance
Add more information to error url to enhance error analytics
2019-01-10 00:12:46 -06:00
Brian Daniels 9f340edbb2 uARM targets now build in correct ARM_MICRO directory
This is for OS2 testing. Previously, targets that were configured with
the option "default_toolchain": "uARM" would still build to a
TOOLCHAIN_ARM_STD directory. This fixes these targets to build into
TOOLCHAIN_ARM_MICRO.
2019-01-09 11:02:10 -06:00
Jimmy Brisson e10adffa31 Test the Resources object 2019-01-09 10:43:17 -06:00
Mahesh Mahadevan 585a4b6ddd Add nanostack support for KW41Z
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-01-09 07:43:41 -06:00
Martin Kojtal 63eca294a1
Merge pull request #9163 from InfernoEmbedded/fix-8913-partner
Don't use define checks on DEVICE_FOO macros (partner code)
2019-01-07 16:37:24 +00:00
Senthil Ramakrishnan 3e6dafa71a Removed extra space 2019-01-04 09:33:33 -06:00
Senthil Ramakrishnan f10ed4b286 Add more information to error url to enhance error analytics 2019-01-04 09:24:31 -06:00
jeromecoutant 4b67820f8a NUCLEO_H743ZI: add initial SDK 2019-01-04 10:03:36 +01:00
Cruz Monrreal 57c2079605
Merge pull request #9154 from kjbracey-arm/armc6_hardfp
ARMC6: Use float-abi=hard
2019-01-03 10:34:23 -06:00
Alastair D'Silva aa80b7c70a Don't use define checks on DEVICE_FOO macros (partner code)
The DEVICE_FOO macros are always defined (either 0 or 1).

This patch replaces any instances of a define check on a DEVICE_FOO
macro with value test instead.

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
2018-12-20 20:02:29 +11:00
Cruz Monrreal 442cbba141
Merge pull request #7799 from bridadan/remove_allowed_features
Removing feature names from the "allowed feature" config list.
2018-12-19 13:37:59 -06:00
Kevin Bracey dddeab7414 ARMC6: Use float-abi=hard
For binary compatibility with ARMC5, use the hard ABI variant whenever
we have FP hardware - this is ARMC5's default behaviour, which we do not
override.

Cortex-M4F was already using hard; this brings M7F and M33F into line.
2018-12-19 14:28:35 +02:00
Cruz Monrreal 891427cb7d
Merge pull request #9097 from NXPmicro/Add_CM33FD
Update to add support for Cortex-M33FD
2018-12-17 14:44:20 -06:00
Brian Daniels 27bcaa47d5 Fixing execution of OS2 tests 2018-12-14 09:58:09 -06:00
Mahesh Mahadevan 4649a6ee5f Update to add support for Cortex-M33FD
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-12-13 14:11:49 -06:00
Anna Bridge a91dccd901
Merge pull request #9072 from theotherjimmy/toggle-memory-defines
Enable stats reporting with a flag in targets.json
2018-12-13 15:10:46 +00:00
Martin Kojtal 93da33f151
Merge pull request #8995 from NXPmicro/Update_for_M33_FD
Add core option for Cortex-M33 with DSP enabled
2018-12-12 14:43:43 +01:00
Jimmy Brisson 9dbdbe8e85 Enable stats reporting with a flag in targets.json
### Description

PR #8607 will cause problems for the NRF52832 and the NRF52840
in the online compiler starting with 5.10.2. This PR prevents this problem
by using a toggle in `targets.json` to enable these new defines for every
target except for the NRF52832 and NRF52840.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-12-11 15:58:37 -06:00
Cruz Monrreal 3df9421cc1
Merge pull request #8993 from yennster/table-md
Apply GitHub style to exporter matrix
2018-12-10 13:58:18 -06:00
deepikabhavnani f05e7b77d0 Add core option for Cortex-M33 with DSP enabled
Signed-off-by: Deepika Bhavnani <Deepika.Bhavnani@arm.com>
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-12-07 12:20:01 -06:00
Brian Daniels 0af1a4bcd2 Removing feature names from the "allowed feature" config list.
These features have all been removed from Mbed OS in the past. This
prevents their use in the future.
2018-12-07 10:02:42 -06:00
Cruz Monrreal 211c662b6d
Merge pull request #8980 from kjbracey-arm/iar8_memap
memap.py: Cope with IAR 8 linker map
2018-12-06 21:27:22 -06:00
Cruz Monrreal 035e8e0b77
Merge pull request #8964 from kfnta/parser_empty_tests
Correct behavior of PSA code generator
2018-12-06 21:25:42 -06:00
Cruz Monrreal 243b9dfdcf
Merge pull request #8982 from bridadan/fix_duplicate_macros
Ensure macros and parameters with the same name are not repeated.
2018-12-06 21:23:21 -06:00
Jenny Plunkett 4e466b7ff8 Removed "ALL" from PrettyTable import 2018-12-06 14:42:41 -06:00
Jenny Plunkett a578768c48 Apply GitHub style to exporter matrix 2018-12-06 14:42:41 -06:00
Cruz Monrreal 78d6018ecc
Merge pull request #8745 from kfnta/feature-new-target-future-sequana-psa
Add new target future sequana PSA
2018-12-06 13:13:36 -06:00
Brian Daniels fa4ead048d Config parameters override macros 2018-12-06 11:19:24 -06:00
Brian Daniels b8cdfc5369 Adding unit test for macro config 2018-12-06 10:36:49 -06:00
Brian Daniels 5957ffd306 Ensure macros and parameters with the same name are not repeated.
This covers the case when a macro is set with the same name as a
parameter. Previously, the macro would be repeated on the command line,
which causes certain toolchains to break (ex. IAR assembler). Now the
config system will override the parameter's value with the macro's
value.
2018-12-06 10:31:38 -06:00
Oren Cohen 935f2bdfbc Correct behavior of PSA code generator
* Don't generate files if a test does not contain additional partitions
2018-12-06 18:17:09 +02:00
Oren Cohen c4c21d2d1f Ignore PSA secure targets 2018-12-06 17:43:34 +02:00
Oren Cohen 2e19868ff9 Prepare postbuild for prebuilt images 2018-12-06 09:35:50 +02:00
Kevin Bracey 983d0d49e4 memap.py: Cope with IAR 8 linker map
IAR 8 linker map puts C++14-style apostrophe digit separators in its
addresses, such as:

     .data   inited  0x2000'1ff0    0x4  mbed_rtx_idle.o [159]

Extend the regex pattern to allow this.
2018-12-05 15:47:32 +02:00
Cruz Monrreal a1625895c3
Merge pull request #8097 from JammuKekkonen/fix_bootloader_build_for_nrf52
Add support for nrf52_dk bootloader
2018-12-04 16:10:15 -06:00
Oren Cohen f1d3eb9340 Add FUTURE_SEQUANA_PSA target
* Modify linker scripts to be compatible with bootloader and PSA
* Add memory protection
* Modify original post-build step to allow link with PSA binaries
* Config kvstore for ITS on FUTURE_SEQUANA_PSA
* Enable PSA-Crypto on PSoC6 with NVSeed
2018-12-04 18:38:50 +02:00
Oren Cohen 4514da6db3 Fix target handling in build.ppy 2018-12-03 18:25:25 +02:00
Martin Kojtal b0054897b1
Merge pull request #8854 from AdamZhang0124/realtek-rtl8195am-SMCC_FOTA-bin_file_name-update
SMCC FOTA: bin name change
2018-12-03 13:23:53 +01:00
Cruz Monrreal 2b46b1d64d
Merge pull request #8779 from theotherjimmy/memap-better-old
Migrate old memap file handling into toolchains
2018-11-30 17:51:08 -06:00
Cruz Monrreal II fca8877fea Revert "Merge pull request #8788 from kaidokert/master"
This reverts commit d478d6bf80, reversing
changes made to f9d07f373f.
2018-11-30 00:06:05 -06:00
Cruz Monrreal 5047ea4f42
Merge pull request #8889 from kfnta/psa_travis_check
Add PSA code generation check in travis
2018-11-29 10:23:25 -06:00
Cruz Monrreal d6b2a1a6da
Merge pull request #8835 from OPpuolitaival/balancing_examples
Moving some examples testing from K64F to K66F
2018-11-29 10:22:56 -06:00
Cruz Monrreal d478d6bf80
Merge pull request #8788 from kaidokert/master
Fix unsigned packing bug in merge_regions #8544
2018-11-29 10:22:18 -06:00
Anna Bridge f9d07f373f
Merge pull request #8898 from cmonr/add-crypto-example
Add crypto example to examples.json
2018-11-29 13:53:47 +00:00
Martin Kojtal d45917e4cd
Merge pull request #8897 from cmonr/add-tls-socket-example
Add TLS Sockets example to examples.json
2018-11-29 10:03:24 +01:00
Cruz Monrreal II 9cedb1a687 Added tls-socket example to examples.json 2018-11-28 19:32:17 -06:00
Cruz Monrreal 78401ed751
Merge pull request #8896 from deepikabhavnani/stats_example
Update Statistics examples in example test json
2018-11-28 18:51:36 -06:00
Oren Cohen dcba1e76d1
SPM code generator support for python 2 & 3 2018-11-29 01:58:35 +02:00
Cruz Monrreal II 5ecf9a27d6 Added crypto example to examples.json 2018-11-28 15:22:19 -06:00
Deepika 66863e23ee Switch between K64F/K66F for statistics example 2018-11-28 14:02:43 -06:00
Deepika 5ff118dfce Add socket stats example 2018-11-28 13:55:34 -06:00
Senthil Ramakrishnan b1a7b45135 Add crash-reporting example to examples.json 2018-11-28 12:56:48 -06:00
Martin Kojtal c0108b1b48
Merge pull request #8863 from offirko/offir-examples-kvstore
Adding KVStore Examples for Global API
2018-11-28 13:53:51 +01:00
Oren Cohen 45bd4f305a Add SPM code generation test to Travis-CI 2018-11-28 14:38:44 +02:00
Martin Kojtal e69aa15aea
Merge pull request #8744 from kfnta/psa_spm_base
PSA Secure partition manager and services
2018-11-27 15:26:38 +01:00
offirko b34de42c9b removed kvstore-class-api example 2018-11-27 14:24:56 +02:00
Martin Kojtal f4774a9a59
Merge pull request #8840 from miyuki/master
Fix build of library archive with Arm Compiler 6
2018-11-27 09:12:50 +01:00
Oren Cohen 773ac8dd95 CR fixes 2018-11-27 09:16:45 +02:00
Alexander Zilberkant 2b9f94a0ad Remove dead code 2018-11-27 09:16:45 +02:00
Oren Cohen 6cd4f7789f Add Version to SPM templates and generator 2018-11-27 09:16:43 +02:00
Alexander Zilberkant 9cc017fd48 Normalize license headers
- add SPDX license identifier
- add missing license headers
- update year in license headers
2018-11-27 09:16:40 +02:00
Alexander Zilberkant aea01a86f6 astyle changes 2018-11-27 09:16:38 +02:00
Jimmy Brisson c7d3523a4e Include `deliver_into` in Config mock 2018-11-27 09:16:36 +02:00
Oren Cohen dd73fa689c PSA SPM
* Intorduce PSA-SPM to mbed-os
* Add SPM tests (for PSA targets)
* Add PSA PRoT internal storage Secure implementation
* Integrate SPM into the boot proccess
* PSA manifest data generator
* Introduce PSA targets skeleton to mbed-os
* Add artifact delivery to the tools
2018-11-27 09:16:35 +02:00
deepikabhavnani c272377a81 Make sure no memory overhead if statistics are disabled 2018-11-26 09:42:45 -06:00
Deepika f6c1a40b29 Add config options for socket statistics
1. MBED_CONF_NSAPI_SOCKET_STATS_ENABLE to enable the statistics
2. MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT max sockets statistics cached
2018-11-26 09:42:45 -06:00
Jimmy Brisson 38d8bb64fa Migrate old memap file handling into toolchains
### Description

This PR moves the old memap file handling required for differential
memap from within memap to the toolchain object. This has the
advantage that we can do the `mv <app>.map <app>.map.old` the moment
before it is overwritten by the linker. This should allow multiple
reruns of memap without modifying your build directory.

### Pull request type

    [ ] Fix
    [x] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-11-26 08:47:40 -06:00
Offir Kochalsky 7972092867 Added KVStore Examples for Global and Class APIs 2018-11-25 08:51:51 +02:00
Martin Kojtal 6c1c1693f5 Merge branch 'wio3g-export' of https://github.com/SeeedJP/mbed-os into dev_rollup 2018-11-24 21:15:49 +00:00
Martin Kojtal e72b7c3b96
Merge pull request #8803 from theotherjimmy/armc6-armc5-compat
Compatibilize ArmC6 with ArmC5-built archives
2018-11-24 19:48:13 +01:00
Lu 3f7b235782 This PR modifies the name of the bin file generated for SMCC FOTA feature
This PR modifies the name of the bin file generated for SMCC FOTA feature

Description
Modify name of the bin file from '-payload.bin' to '_update.bin' in REALTEK_RTL8195AM.py file to adapt the manifest tool requirment for the SMCC FOTA feature.

Pull request type
[ ] Fix
[ ] Refactor
[x] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change
2018-11-23 21:00:46 +08:00
Mikhail Maltsev d16388354a Fix build of library archive with Arm Compiler 6
The 'archive' method of the toolchain class 'ARM' expects that self.ar
is a string, but the constructor of the class 'ARMC6' initializes it
with a list. This patch fixes the issue.
2018-11-22 13:32:20 +00:00
Martin Kojtal 5b42e2886f
Merge pull request #8607 from aashishc1988/ram_rom_fetch
Fetch ram/rom start/size
2018-11-22 10:49:50 +01:00
Olli-Pekka Puolitaival dcafca7705 Moving some examples testing from K64F to K66F 2018-11-22 10:13:43 +02:00
Jimmy Brisson b1b69d2d60 Compatibilize ArmC6 with ArmC5-built archives
### Description

Arm compiler 5 builds with "short" enums and "short" wchars. This means
that C/C++ enums will be packed into the smallest power of 2 number of
bytes by the compiler and the `wchar_t` is 2 bytes. Arm compiler 6
defaults to packing enums into 4 bytes and `wchar_t` is 4 bytes.

Further, Arm Compiler 5's `-O0` (no optimizations) bulids will actually
do some amount of optimizing, similar to Arm Compiler 6's `-O1`. I have
switched the debug profile to `-O1` for maximum compatibility with our
prior behavior.

NOTE: "Compatibilize" is a word

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-11-19 11:43:05 -06:00
Martin Kojtal 13b60c2991
Merge pull request #8673 from kegilbert/config-range-limits-dev
Add Mbed Configuration Option Range Limits
2018-11-19 13:14:02 +00:00
kert 6815409fe7 Fix unsigned packing bug in merge_regions #8544 2018-11-17 17:57:46 -08:00
Yoshihiro TSUBOI a1d2ac7462 [Wio 3G] Adding IAR exporting definition 2018-11-18 00:35:37 +09:00
Brian Daniels 6cab1e0018 Fixing traceback when running mbed test 2018-11-16 15:28:50 -06:00
Cruz Monrreal fa2077df41
Merge pull request #8685 from bridadan/clean_up_deprecated_feature_code
Clean up deprecated feature code
2018-11-15 17:05:22 -06:00
Aashish chaddha 0c594a42dc The check for managed bootloader support should be in regions and we need a try/catch when we call it.
Moved "bootloader_not_supported" check to where it was and handle that exception at only one place.

Removed ram/rom size info for realtek from targets.json. THe info we have is not correct.

was Not handling config exceptions from regions and ram_regions property

adding rom-ram info for REALTEK_RTL8195AM
2018-11-15 15:28:14 -06:00
kegilbert c26c258c66 Update expected error message 2018-11-15 12:24:06 -06:00
kegilbert 9116b9921b Remove redundent line 2018-11-15 11:44:53 -06:00
Brian Daniels 5ec1d7c221
Update tools/config/__init__.py
Co-Authored-By: kegilbert <K.Gilbert.CH@gmail.com>
2018-11-15 11:43:41 -06:00
Martin Kojtal caae883306 Merge branch 'Musca_march' of https://github.com/deepikabhavnani/mbed-os into dev_rollup 2018-11-15 14:02:14 +00:00
Martin Kojtal d925d124c9 Merge branch 'remove-filer-paths' of https://github.com/theotherjimmy/mbed into dev_rollup 2018-11-15 13:58:45 +00:00
kegilbert 9d9cd84942 Refactor logic to improve readability
Move JSON accepted value ranges back to JSON array
2018-11-14 18:31:59 -06:00
Martin Kojtal 82f195c021
Merge pull request #8696 from theotherjimmy/handle-parent-renames
Resources: Avoid assuming that deps have a sane name
2018-11-14 08:26:11 +00:00
kegilbert 7a436660e9 Handle None and hex values in string format 2018-11-13 16:12:35 -06:00
Jimmy Brisson 3db1a8aa67 Avoid constructing a FileRef when we don't use it 2018-11-13 09:53:50 -06:00
Deepika a6ed5fcbd0 Adding arch option instead MCPU for no dsp and no fpu support
No FPU option is valid, but supported only for 8.x releases, with 7.x release
+nofp gives build errors.
2018-11-13 08:21:31 -06:00
Aashish chaddha 1627968bcb Missed one change to convert into right data type 2018-11-12 13:37:27 -06:00
Aashish chaddha 3956451c07 Fixing some corner cases
1. Adding SRAM in available ram
2. If the target doesn't exist in cmsis but targets.json, handle accordingly and raise apt exceptions where needed.
3. If no sram is provided, raise exception
2018-11-12 13:28:01 -06:00
Jimmy Brisson 6e63acaa4e Resources: Avoid assuming that deps have a sane name
### Description

The prior fix assume that the dependencies through `.lib` references
would have a "sane" name. My definition of "sane" here is that the
reference will have a path that starts with the path to the `.lib` file
and _removes_ the `.lib` suffix. The online compiler does not remove the
`.lib` suffix. Instead, it keeps it. This makes the string replacement
in the prior PR fail.

Also, this is faster, and simpler.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-11-09 13:15:13 -06:00
Jimmy Brisson b99fd4058b Resources: Use path names for ignored dirs
### Description

Ignored directories are collected for the sake of exporters that use
a blacklist-style approach similar to these build tools. This ignore
list will include `/filer/<gibberish>` when exported from the online
Compiler. This patch fixes that behavoir.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-11-09 13:11:40 -06:00
Cruz Monrreal II 6ab56d978e Merge branch 'quote-includes-2' of ssh://github.com/moonchen/mbed-os into rollup 2018-11-09 11:40:32 -06:00
Naveen Kaje 38ce7b13e7 tools: fix up build_api padding logic and clean up unused code
Patch from the end of the first segment. Remove unused code.
2018-11-09 10:36:25 -06:00
kegilbert b53738750f Add guard against accepted and range definitions.
Minor reformat of error text on accepted value messages
2018-11-08 19:00:39 -06:00
Brian Daniels 172abc8dcb Correcting name of config test 2018-11-08 16:56:00 -06:00
Brian Daniels 06cce95b55 Fixing the recursive feature conflict config test 2018-11-08 16:56:00 -06:00
Brian Daniels 332a67a112 Moving LWIP feature to BOOTLOADER in config testing 2018-11-08 16:56:00 -06:00
Brian Daniels f9b236a0e1 Fixing tool config tests 2018-11-08 16:55:59 -06:00
Brian Daniels 74586ec2ab Re-add "fetaure_recursive_conflict" config test 2018-11-08 16:55:59 -06:00
Cruz Monrreal II 14a9824511 Merge branch 'root-include-path' of ssh://github.com/theotherjimmy/mbed into rollup 2018-11-08 13:24:12 -06:00
Naveen Kaje 858a7a8321 tools: Update build_api
Rename loop varibles for better readability and
formatting changes.
2018-11-08 13:00:27 -06:00
kegilbert a834794b53 Add range specifers for config values 2018-11-08 10:18:30 -06:00
Jimmy Brisson 95e2b07ad8 Resources: Compute parents using only header names
### Description

The prior fix made the assumption that you wanted to compute all of the
parents for a give header file going all the way up the path. This is
not true: you probably want to stop when the project stops. We already
keep track of a virtual name within the project, so instead, we compute
parents of the name, and generate the actual location of these files in
your FS as the path. This makes the solution robust offline and online
(I tested it with my local copy of os.mbed.com)

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-11-08 09:23:49 -06:00
Martin Kojtal ed1ecd2484 Merge branch 'rm-ds5' of https://github.com/theotherjimmy/mbed into dev_rollup 2018-11-08 09:20:28 +00:00
Naveen Kaje bd40457f27 tools: Update build_api padding method
Update the padding sequence so that the gaps
are padded after all the regions are merged.
This avoids overwriting active regions and
serializes the process.
2018-11-07 14:43:14 -06:00
Aashish chaddha 27f20c7478 Fetch RAM/ROM information from CMSIS pack and add as defines
RAM/ROM memory data of target is required for statistics and linker
files, goal here is to fetch maximum 4 RAM/ROM regions from CMSIS pack
and make them available for C/C++/Linker flags as defines
2018-11-07 10:20:28 -06:00
Jimmy Brisson 0cba0a34dd Online: Include project root path
### Description

The prior logic assumed that "." would not be added to the include
paths, indicating that the project root would not be added to the
include paths correctly in the online environment ("." would be
incorrect there). This change set started by removing the addition
of "*.", and then fixed building from there.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2018-11-06 13:47:26 -06:00
Deepika Bhavnani ba86a53871 Update tools/toolchains/gcc.py 2018-11-05 17:44:18 +01:00
jeromecoutant 1ea28973b2 TOOLS : Add missing M33 and M33F in python scripts 2018-11-05 17:44:15 +01:00
Martin Kojtal 909c11b860
Merge pull request #8605 from adbridge/master
Make examples commands return a failure
2018-11-05 17:16:28 +01:00
Naveen Kaje e28c260763 tools: update build_api and __init__ as per review comments 2018-11-04 19:47:06 -06:00
Cruz Monrreal 0e6eac5faa
Merge pull request #8491 from lrusinowicz/new-target-future_sequana
New target future sequana
2018-11-03 07:05:58 -05:00
Leszek Rusinowicz 53477848f5 Disabled makefile exporters for PSoC 6 based targets. 2018-11-02 17:27:56 +01:00
Leszek Rusinowicz 7d322dcd41 Simplified M0/M4 binary merging functionality. Now, M0 binary image to be used has to be explicitely named in a json file (can be ovverriden in mbed_app.json).
Exporter hooks removed completely.
Cleanup and improvements to the comments, including removal of the redundant doxygen comments.
Code run through astyle. Additionally:
 - changes to drivers/Timer.cpp reverted
 - ipcpipe_transport.* files removed as they are not used for now,
 - fixed condition in stdio_init.cpp to perform serial initialization only when STDIO is enabled,
 - added missing resurce manager call in PWM initialization,
 - us_ticker initialization changed to use pre-reserved clock divider (to avoid resource manager call).
Changed reporting level from info to debug in PSOC6.py.
Added missing includes for function declarations in startup files.
Fixed (removed) garbadge text in psoc6_utils.c
Precompiled binaries updated for recent changes in psoc6_utils.c and moved to a separate folder; README and LICENSE files added.
2018-11-01 22:14:06 +01:00
Cruz Monrreal 9c5fc7dc7c
Merge pull request #8538 from theotherjimmy/rework-make-cli
Rework make.py CLI to avoid treating apps as tests
2018-11-01 15:46:46 -05:00
Cruz Monrreal 48bb1a54f0
Merge pull request #8577 from lassebm/fix-makefile-export-with-python-3
Fix Makefile export with Python 3
2018-11-01 15:34:58 -05:00