Commit Graph

2404 Commits (c272377a812ec3e16a82b81b23748e3e40ee4177)

Author SHA1 Message Date
Jimmy Brisson 88a5b263f0 Add tests from labeled directories 2018-08-27 11:12:02 -05:00
Jimmy Brisson 419761913a Add `COMPONENT_` defines 2018-08-27 11:12:02 -05:00
Jimmy Brisson a87d907268 Use labels keys instead of magic list 2018-08-27 11:12:01 -05:00
Jimmy Brisson 79ee1b8e02 Add "components" 2018-08-27 11:12:01 -05:00
Cruz Monrreal 543d6c2ecf
Merge pull request #7569 from theotherjimmy/uvision-armc6
Tools: Add Uvision6 exporter
2018-08-27 10:28:38 -05:00
Martin Kojtal 2dfd3beb62
Merge pull request #7758 from phyokyaw/master
Include user defined static lib files in the Linker object files paths
2018-08-27 10:38:40 +02:00
Russ Butler a62b312d0b Add details to importer script docs
Add an example showing how to run the importer and a note to indicate
that it must be run from the mbed-os directory.
2018-08-25 20:40:36 -05:00
Russ Butler a2a0ea70e2 Update cmsis_importer in prep for CMSIS 5.4.0
Reference the correct commits to pull in and remove commits related to
uVisor since these are no longer needed. Also add the missing file
cmsis_os1.c to cmsis_importer.json.

Below is detailed information on each commit added to cmsis_importer.json

CMSIS/RTX: Patch RTX4 to preserve osThreadDef compatibility
4360b7bbf8

CMSIS/RTX: Patch RTX so irq_cm4f.s files work with no FPU targets
cc2e0517e1

CMSIS/RTX: Allow overwriting mutex ops for ARMC
b88254809e

CMSIS/RTX: Pre-processor defines used for assembly
287121ffdc

CMSIS/RTX: Fix using FALSE/TRUE with preprocesor
1752803626

CMSIS/RTX: Reintroduce arm_math.h
6a6e3ac0eb

fixup
2018-08-25 20:40:35 -05:00
Cruz Monrreal 2f8e679183
Merge pull request #7592 from orenc17/remove_uvisor
Remove uVisor from mbed-os
2018-08-25 19:52:24 -05:00
Cruz Monrreal 5ffcc01be1
Merge pull request #7812 from mikaleppanen/greentea_def_interf
Update greentea tests to use default interface
2018-08-24 19:31:00 -05:00
Cruz Monrreal 02c03204a6
Merge pull request #7714 from brianesquilona/feature_bootloader
Add BOOTLOADER feature
2018-08-24 19:30:21 -05:00
Cruz Monrreal ce43f8b9d6
Merge pull request #7673 from bridadan/allow_memap_script_to_execute_alone
Fixing import paths of memap.py when excuted as a script
2018-08-24 19:30:05 -05:00
Jimmy Brisson c8f1e1f854 Escape quotes in uvision project file defines 2018-08-24 14:00:52 -05:00
Martin Kojtal 812c6d5c88
Merge pull request #7783 from maciejbocianski/feature-qspi_merging
merge QSPI feature branch
2018-08-24 10:50:18 +02:00
Cruz Monrreal II 09239e3073 Modified version mismatch msg to be warning instead of error 2018-08-23 22:13:00 -05:00
Cruz Monrreal 6c4d64c520
Merge pull request #7846 from theotherjimmy/gcc-distcc
Tools: Use Distcc when it's configured
2018-08-23 10:06:33 -05:00
Deepika ed58ff0405 Disabling DSP and FPU for Cortex-M33
Change shared by @Gabor Kertesz

Hard-fault on Musca was because of enabled floating point instructions,
disabling DSP and FPU.
2018-08-23 09:06:20 -05:00
Jimmy Brisson a7ddea78d7 Remove firmware header from update image 2018-08-22 09:08:12 -05:00
Oren Cohen 787317b7eb Remove uVisor from mbed-os 2018-08-22 16:36:59 +03:00
jeromecoutant 43258a8ff4 STM32 : add all QSPI pins in available targets 2018-08-22 15:02:08 +02:00
Martin Kojtal d719c9e1a6
Merge pull request #7762 from kaidokert/master
Add combined hex target to CMake
2018-08-22 14:05:53 +02:00
Jimmy Brisson 09ea2a3df9 Tools: Use Distcc when specified 2018-08-21 11:38:31 -05:00
Jimmy Brisson a6163cb14f Clean up formatting of device_management.py 2018-08-21 10:51:26 -05:00
Jimmy Brisson 93309cd134 Extend init to maybe create and always DL dev cert 2018-08-21 10:51:26 -05:00
Jimmy Brisson 563ee0d871 Implement device management subcommand 2018-08-21 10:51:26 -05:00
Jimmy Brisson ebb016e270 Create a "device-management" subcommand 2018-08-21 10:51:26 -05:00
Brian Esquilona 4db8a106bf Added BOOTLOADER feature, copy bootloader binaries and LICENSE into mbed OS repository for supported targets 2018-08-21 10:09:28 -05:00
Mika Leppänen 9e73e80926 Updated greentea test configurations to use default interface
Created one configuration .json file for boards with internal
wifi (HeapBlockDeviceAndWifiInterface.json). Removed dedicated
Odin, Wiced and Realtek wifi configuration files. Removed Odin
ethernet configuration file and replaced that with general
ethernet configuration.
2018-08-21 10:55:49 +03:00
Brian Daniels b5a187ddb3 Fixing import paths of memap.py when excuted as a script 2018-08-20 09:03:29 -05:00
deepikabhavnani 37a5646372 Remove deprecated linker options
Resolved below warnings
Warning: L3912W: Option 'legacyalign' is deprecated.
Warning: L3912W: Option 'no_strict_wchar_size' is deprecated.
Warning: L3912W: Option 'no_strict_enum_size' is deprecated.
2018-08-16 18:14:14 -05:00
Cruz Monrreal ed57c8cb13
Merge pull request #7797 from OPpuolitaival/fix_target_name
Fix target_name variable in some use cases
2018-08-16 16:18:19 -05:00
deepikabhavnani 63664520c0 Arch and CPU options for linker and Clang are different for Cortex-M33
As per the link below, options for clang and armlink are diferrent for Cortex-M33
armlink --cpu 8-M.Main --import-cmse-lib-out importlib_v1.o
armclang -march=armv8-m.main -mcmse

http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0773h/pge1452794854109.html
2018-08-16 13:35:03 -05:00
Cruz Monrreal 354d55503f
Merge pull request #7769 from OPpuolitaival/build_data_py3
Fix build_data functionality with python 3
2018-08-16 09:07:49 -05:00
Cruz Monrreal 90163bb838
Merge pull request #7590 from theotherjimmy/differential-memap
Tools: Differential Memap
2018-08-15 15:49:25 -05:00
deepikabhavnani beab422045 -mcpu option not needed for v8M devices
-mcpu option if set for v8M CPU;s it will add DSP feature as default
which is optional. Hence setting just the architecture for Cortex-M23
and Cortex-M33
2018-08-15 13:52:15 -05:00
Olli-Pekka Puolitaival 1fbced1b46 Fix target_name variable in some use cases 2018-08-15 12:28:48 +03:00
deepikabhavnani 08b4e34825 Fix build and typo issues with M33 build 2018-08-14 11:44:29 -05:00
Olli-Pekka Puolitaival 2059fed945 Fix building with python 3 2018-08-13 12:46:43 +03:00
Olli-Pekka Puolitaival 72a0bd4374 Print stack trace in case of verbose 2018-08-13 12:46:31 +03:00
Olli-Pekka Puolitaival 6107769239 Fix build_data functionality with python 3 2018-08-13 12:15:21 +03:00
Phyo Kyaw 87304f8812 Updated to include user defined static lib files in the Linker object files path.
### Description

This is to fix linker not finding symbols declared in object files inside static library files.

For this case throwing:-

> rm-none-eabi-g++: error: unrecognized command line option '--wrap=main'; did you mean '--warn-main'?

For this case to include libmbed.a which contains

mbed_alloc_wrappers.o:
         U __real__calloc_r
         U __real__free_r
         U __real__malloc_r
         U __real__memalign_r
         U __real__realloc_r
00000000 T __wrap__calloc_r
00000000 T __wrap__free_r
00000000 T __wrap__malloc_r
00000000 T __wrap__memalign_r
00000000 T __wrap__realloc_r
00000000 T free_wrapper
00000000 T malloc_wrapper
00000000 T mbed_stats_heap_get
         U memset

This patch also changed the library order to system and then user.

-lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -lmbed

Resolves: #7155

### Pull request type

    [ x ] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Feature
    [ ] Breaking change
2018-08-13 09:19:47 +01:00
kert 17276275fc Add combined hex target to CMake 2018-08-11 10:56:29 -07:00
Martin Kojtal 2a824a1ceb
Merge pull request #7559 from theotherjimmy/make-armc6-v8m
Export: Support Make + ArmC6 + v8m
2018-08-10 10:03:34 +02:00
Cruz Monrreal e923bbdbfb
Merge pull request #7722 from theotherjimmy/fix-arm-small-lib
Fix Microlib compatibility for -t ARM
2018-08-09 15:56:18 -05:00
Jimmy Brisson a6c85ee5f4 Add asm defines to template 2018-08-08 10:43:33 -05:00
Jimmy Brisson 0924d6618e Fix a few flag-related things 2018-08-08 09:52:49 -05:00
Jimmy Brisson 1eb47934eb Fix "pare error in Defines" uvision error 2018-08-08 09:24:50 -05:00
Jimmy Brisson 9f00a9be70 Fix python3 compatibility of exporter base class 2018-08-08 09:07:58 -05:00
Jimmy Brisson c51467ee91 Flake8 of uvision exporter python code 2018-08-08 09:07:45 -05:00
Jimmy Brisson 11702d16b5 Enable uvision export for NS cores 2018-08-08 09:07:45 -05:00
Jimmy Brisson 5e9ac75c4f Remove -MMD and debug print 2018-08-08 09:07:45 -05:00
Jimmy Brisson 0a175fe0f5 Use relative path to detect config header and remove -std options 2018-08-08 09:07:45 -05:00
Jimmy Brisson bafced4099 Correct check for in-template flags
It was named and used as if it were positive logic, and written with
negative logic. This changes the name and usage to negative logic.
2018-08-08 09:07:45 -05:00
Jimmy Brisson fa1bf57a4d Enable export to uvision5 + armc6 2018-08-08 09:07:38 -05:00
Cruz Monrreal 95c623359e
Merge pull request #7640 from 0xc0170/fix_iar_definition_duplicate
iar: remove nxp duplicate definitions
2018-08-08 07:36:49 -05:00
Jimmy Brisson 7db537acf6 Fix Microlib compatibility for -t ARM
Missing from common flags:
 * `-D__MICROLIB`
 * `--library_type=microlib`

This patch adds them
2018-08-07 13:21:03 -05:00
Martin Kojtal 129ef46c7f iar: MK22F use xx12 Freescale for 7.80.x
This fixes the failure for IAR regarding floating point.
2018-08-07 15:30:52 +01:00
jeromecoutant a42c73df1b python scripts : table print with github policy 2018-08-07 15:14:27 +02:00
Martin Kojtal 6f6a516b66 iar: kl43 - use nxp MCU definition 2018-08-03 12:19:20 +01:00
Martin Kojtal eb5b117d98 frdm-k22f: fix IAR definition
Based on the https://www.keil.com/boards2/nxp/frdm_k22f/ - it contains xxx12 MCU.
However IAR 7.80 has only xxx5 version, thus leaving NXP added version as xxx5.
2018-08-03 12:17:50 +01:00
Jimmy Brisson 58180dbafe Use shell escaping instead of quoting
OSs don't agree on what the quote chars mean
2018-08-02 09:09:07 -05:00
Jimmy Brisson 6adac922db Revert "Disable make_armc6 on v8m"
This reverts commit a2427998f9.
2018-08-02 09:02:06 -05:00
Jimmy Brisson 77d2a36d2a Quote Makefile CLI parameters 2018-08-02 09:02:06 -05:00
Jimmy Brisson 289d494894 Use last linker script found 2018-08-02 09:02:06 -05:00
Jimmy Brisson c777bd6f5c Migrate all flags into the FLAGS variables 2018-08-02 09:02:06 -05:00
Cruz Monrreal 4cab24f696
Merge pull request #7623 from theotherjimmy/reduce-includes
Tools: Omit include path parents when they're scan rules
2018-08-01 13:58:20 -05:00
Jimmy Brisson fb42bb0439 Stabilize macro ordering in mbed_config.h 2018-07-30 11:05:32 -05:00
Jimmy Brisson 28064f1319 Use hash to determine changes to command files 2018-07-30 10:41:58 -05:00
Martin Kojtal 80d58e5572 iar: remove nxp duplicate definitions
Fixes #7634
2018-07-30 11:49:47 +01:00
Jimmy Brisson fc97d77b0d Remove file before moving over it
Windows is dumb sometimes
2018-07-27 10:06:11 -05:00
Jimmy Brisson 4da77916d5 Reduce include paths further
by 0.45% for Mbed Cloud Client
2018-07-27 09:43:30 -05:00
Cruz Monrreal 639285a0e2
Merge pull request #7608 from theotherjimmy/fix-make
Tools: Correct `win_to_unix` path handling
2018-07-26 15:53:23 -05:00
Cruz Monrreal 8755e56fd6
Merge pull request #7567 from theotherjimmy/managed-update-image
Tools: Generate update images with managed bl mode
2018-07-26 10:51:40 -05:00
Cruz Monrreal dcd358f3e7
Merge pull request #7558 from theotherjimmy/tc-arm-v8m
Tools: Select compiler based on arch version
2018-07-26 10:27:21 -05:00
Jimmy Brisson 35498dc54c Correct abspath handling 2018-07-26 10:19:23 -05:00
Jimmy Brisson f9c6f21f2e Correct path handling after calls to `win_to_unix` 2018-07-26 09:51:18 -05:00
Jimmy Brisson 76078f6a50 Include `-t ARM` support for v8m, armc6 targets 2018-07-25 11:48:14 -05:00
Jimmy Brisson 8be6a03a4b Correct test_api usage of build_project 2018-07-25 11:29:59 -05:00
Jimmy Brisson ac14e37a77 Correct result usage in reporting infra 2018-07-25 10:04:18 -05:00
Jimmy Brisson c2642a1c9a Add delta to subtotals 2018-07-24 14:09:55 -05:00
Jimmy Brisson 0e622ded63 Include removed modules in table calulation 2018-07-24 13:55:11 -05:00
Jimmy Brisson 814dbdbe3e Don't trackback on no prior build 2018-07-24 13:42:09 -05:00
Jimmy Brisson 3eea82209e Create a setting for comparing against a fixed build 2018-07-24 11:50:23 -05:00
Jimmy Brisson 7f2eee564c Impl differential memap 2018-07-24 11:40:43 -05:00
Cruz Monrreal 25bb200586
Merge pull request #7480 from klaas019/master
Add MTS Dragonfly bootloader back after accidental removal from pr #7131
2018-07-23 10:12:31 -05:00
Cruz Monrreal 057138c2a0
Merge pull request #7536 from ganesh-ramachandran/master
Add Support for Toshiba TMPM3H6
2018-07-20 12:38:25 -05:00
Jimmy Brisson 24df8f89bf Correct MockNotifier construction in test 2018-07-20 11:43:56 -05:00
Jimmy Brisson 69203d30f1 Create update images with managed bl mode 2018-07-20 10:53:00 -05:00
Jimmy Brisson 3f684113b0 Warn with ARMC6 and not v8m 2018-07-20 10:12:56 -05:00
Cruz Monrreal 4bcca894ae
Merge pull request #7061 from TTornblom/master
Tools: Include configuration in ASM
2018-07-20 08:02:44 -05:00
Jimmy Brisson ae033da12f Use mapping of core->arch ver. for tc picking 2018-07-19 10:55:35 -05:00
Jimmy Brisson c030c6a52b Use `-t ARM` for v8m targets
And pick the correct compiler
2018-07-19 10:48:35 -05:00
klaas019 b368ec8f21 Add MTS Dragonfly bootloader back after accidental removal from pr #7131 2018-07-19 10:19:39 -05:00
Jimmy Brisson 14c2eff8ee Re-indent IAR ewp temptate 2018-07-19 10:19:31 -05:00
Jimmy Brisson d6b0f80438 Condense exported IAR project file 2018-07-19 10:18:34 -05:00
Ganesh Ramachandran bfcfe9cc4b Added Support for Toshiba TMPM3H6 2018-07-19 16:31:11 +05:30
Cruz Monrreal II a070e350ec Removed extra ARMc6 instance in unique mapping 2018-07-18 14:10:42 -05:00
Cruz Monrreal e9e1ff997d
Merge pull request #7302 from OpenNuvoton/nuvoton_m2351_v1.1
Support Nuvoton's NUMAKER_PFM_M2351 target
2018-07-18 08:49:55 -05:00
Cruz Monrreal b30ac55edd
Merge pull request #7396 from theotherjimmy/mbed-2-matrix
Tools: Show Mbed-2-only targets in mbed compile -S
2018-07-18 08:49:09 -05:00
Jimmy Brisson a2427998f9 Disable make_armc6 on v8m 2018-07-17 15:56:11 -05:00
Jimmy Brisson 750a2ace64 Use paths explicitly in copy from mbed libs 2018-07-16 14:12:00 -05:00
Jimmy Brisson 447acd0360 Make release errors very visible 2018-07-16 14:12:00 -05:00
Jimmy Brisson 91e77f16cd Import FireRef before using it 2018-07-16 14:12:00 -05:00
Jimmy Brisson 28800fbdde Fix broken tests 2018-07-16 14:12:00 -05:00
Jimmy Brisson c641fd7459 Sort every list we have 2018-07-16 14:12:00 -05:00
Jimmy Brisson 5c27da7046 Correct scatter shebang rewriting in Make 2018-07-16 14:12:00 -05:00
Jimmy Brisson 3b7a5bb35e Filter libraries by extension in exporters 2018-07-16 14:11:09 -05:00
Jimmy Brisson 62538e3bce Filter archives for the arm linker
the other compilers can do it for themselves
2018-07-16 14:11:09 -05:00
Jimmy Brisson b2395a7786 Simplify get_config toolchain handling 2018-07-16 14:11:09 -05:00
Jimmy Brisson 545553b6bc Rewrite test detection to avoid relying on "inc_dirs" 2018-07-16 14:11:08 -05:00
Jimmy Brisson 8166889885 Compute inc_dirs from headers 2018-07-16 14:11:08 -05:00
Jimmy Brisson a4cc32067d Add get_file_paths res API and use it 2018-07-16 14:11:08 -05:00
Jimmy Brisson 28dbbd6b3b Correct path usage in linking 2018-07-16 14:11:08 -05:00
Jimmy Brisson d8ddfdc5a5 Populate lib_dirs 2018-07-16 14:11:08 -05:00
Jimmy Brisson 001c2d3b3b Revisit Mbed 2 building
It's much cleaner now
2018-07-16 14:11:08 -05:00
Jimmy Brisson c50d8a26dd Correct win2unix typo 2018-07-16 14:11:08 -05:00
Jimmy Brisson 6a87510192 Correct several exporter uses of file_basepath with a dedupe 2018-07-16 14:11:08 -05:00
Jimmy Brisson f143019e9a Correct resources API usage in dupe test 2018-07-16 14:11:08 -05:00
Jimmy Brisson 7a26cd8da8 Use paths in linking 2018-07-16 14:11:08 -05:00
Jimmy Brisson 4109aa52e6 Privatize parts of the API that I don't want public 2018-07-16 14:11:08 -05:00
Jimmy Brisson 8303539415 Remove unused APIs 2018-07-16 14:11:08 -05:00
Jimmy Brisson 0661578054 Use include paths when compiling
We were using include names before
2018-07-16 14:11:08 -05:00
Jimmy Brisson 60e08b196c Don't flatten build directories
Make a really good guess
2018-07-16 14:11:08 -05:00
Jimmy Brisson 0294f62c74 Put all src_paths into the root 2018-07-16 14:11:08 -05:00
Jimmy Brisson de913e1ea2 Improve resources API to include more use cases 2018-07-16 14:11:08 -05:00
Jimmy Brisson 06f3fca6cf Correct the _only_ detect_duplicates call 2018-07-16 14:11:08 -05:00
Jimmy Brisson 6ca218544d Correct resources usage in tests 2018-07-16 14:11:08 -05:00
Jimmy Brisson a57942a813 Remove test about unused parameter in find_tests 2018-07-16 14:11:08 -05:00
Jimmy Brisson 9326386daf Switch to Resources in build_api and tests 2018-07-16 14:11:08 -05:00
Jimmy Brisson 1f6862b41f Remove needless None-passing
It's now the default
2018-07-16 14:11:08 -05:00
Jimmy Brisson 9d8c925f76 Remove unused function 2018-07-16 14:11:08 -05:00
Jimmy Brisson 73e890fdc6 Simplify exclusion logic 2018-07-16 14:11:08 -05:00
Jimmy Brisson 226082999a Remove base_path argument from several methods 2018-07-16 14:11:08 -05:00
Jimmy Brisson 786c228958 Cleanup legacy target+toolchain consts 2018-07-16 14:11:08 -05:00
Jimmy Brisson 8dab7417ae Cleanup comments and code near add_directory 2018-07-16 14:11:08 -05:00
Jimmy Brisson 0ad5df379c Create fully incremental scans without lazy dicts 2018-07-16 14:11:08 -05:00
Jimmy Brisson 361fc65f08 Allow missing toolchain parameter to get_config 2018-07-16 14:11:08 -05:00
Jimmy Brisson 4c7cf21feb Require notifier in resources 2018-07-16 14:10:21 -05:00
Jimmy Brisson 7c42302854 Update test builder to use new resources 2018-07-16 14:10:21 -05:00
Jimmy Brisson 3e6e9e8c26 Remove unused git hook 2018-07-16 14:10:21 -05:00
Jimmy Brisson 87146cd66a Cleanup and reduced scanning 2018-07-16 14:10:21 -05:00
Jimmy Brisson 519e338667 Rework export resource scanning 2018-07-16 14:10:21 -05:00
Jimmy Brisson 2d8cf737e4 Move resource scanning into it's own module 2018-07-16 14:10:21 -05:00
Jimmy Brisson 285d661373 Show Mbed 2 support in compile -S 2018-07-16 14:07:41 -05:00
Jimmy Brisson 989986288f Correct uvision exporter support check 2018-07-16 11:51:20 -05:00
Jimmy Brisson 9968b547d9 Allow ARMC6 only mbed 5 releases 2018-07-16 08:42:55 -05:00
Cruz Monrreal 904bdf8016
Merge pull request #7477 from theotherjimmy/fix-customtgt-tests
Tools: Skip target lookup in test builds.
2018-07-14 12:15:04 -05:00
Cruz Monrreal 39407adf1b
Merge pull request #7475 from theotherjimmy/py3-release-ver-parse
Tools: py3 compatible mbed-os version lowercasing
2018-07-14 06:29:03 -05:00
Cruz Monrreal d4a0e6cf7a
Merge pull request #7503 from theotherjimmy/unquote-make
Tools: Drop quotes from makefiles
2018-07-13 22:13:33 -05:00
Cruz Monrreal 9667b5e49b
Merge pull request #7500 from theotherjimmy/fix-gcc-v8m-export
Tools: Correct cmse lib creating with make_gcc_arm exporter
2018-07-13 22:13:12 -05:00
Cruz Monrreal 1ee7d8b6d5
Merge pull request #7481 from theotherjimmy/py3-export-supported
Tools: Fix py3 bug with mbed export -S
2018-07-13 22:12:59 -05:00
Cruz Monrreal d33d93bf47
Merge pull request #7501 from theotherjimmy/gen-file-mkdir
Tools: Make directories before gen file uses them
2018-07-13 09:12:07 -05:00
ccli8 1dbdcb2c8b [M2351] Remove M2351KIAAEES from iar_definitions.json
M2351 doesn't support IAR yet.
2018-07-13 13:42:42 +08:00
Jimmy Brisson 33a56b4470 Drop quotes from command line make 2018-07-12 13:11:57 -05:00
Jimmy Brisson ef7b466958 Correct cmse lib creation for the make_gcc_arm 2018-07-12 10:49:26 -05:00
Jimmy Brisson 9a3ad69ee9 Ensure that files generated have a directory 2018-07-12 10:27:14 -05:00
Jimmy Brisson 51276a66b0 Update compiler check to allow only v6 for OS 5 2018-07-12 18:01:40 +08:00
Jimmy Brisson 4400765ece Add `Mxx_NS` core-based labels 2018-07-12 18:01:37 +08:00
ccli8 8f2c717c4c [M2351] Fix part number in IAR export 2018-07-12 17:51:56 +08:00
Deepika ffcc438b5a [M2351] Use Cortex M23 specific header files and interrupts
1. Update use of correct header files
2. Added missing entry of M2351 device in IAR defines.
3. Removed support of ARM toolchain in targets.json
2018-07-12 17:51:00 +08:00
Jimmy Brisson e68b328cf8 Fix Python3 bug with `mbed export -S` 2018-07-11 11:44:50 -05:00
Jimmy Brisson 6d42bd31c6 Tools: Correct release version "parsing" for py3 2018-07-11 09:46:03 -05:00
Jimmy Brisson 5f8aa893ca Partial revert of "CMSIS/RTX: Adapt Mbed OS to CMSIS/RTX device support scheme" 2018-07-11 13:49:57 +01:00
Cruz Monrreal 3becf77b10
Merge pull request #7466 from theotherjimmy/py3-version-check
Tools: py3 compatible version checks
2018-07-11 07:34:49 -05:00
Cruz Monrreal 45b8ec981b
Merge pull request #7410 from theotherjimmy/explicit-exporer-aliases
Tools: Move exporter alias handling to CLI
2018-07-10 22:04:01 -05:00
Jimmy Brisson 444d021b0e Correct string usage in version checking 2018-07-10 14:04:26 -05:00
Jimmy Brisson a9abcf1b15 Add aliases to example exporter options 2018-07-09 09:49:55 -05:00
Jimmy Brisson 930a6119d7 Skip target lookup in test builds.
This should allow custom targets to be transferred to each process
when building in parallel
2018-07-09 09:44:55 -05:00
Jens Alfke 5543849ba4 Recognize ".cc" and ".hh" source file extensions
".cc" --> C++ source code
".hh" --> header

This change allows existing source code with this naming
convention (e.g. my company's) to be used in mbed.os projects.
2018-07-06 10:10:22 -07:00
Jimmy Brisson 047cb631e8 Correct -E help 2018-07-06 10:29:15 -05:00
Jimmy Brisson ec0a4933fa Correct argv usage 2018-07-06 10:22:37 -05:00
Jimmy Brisson 44030c23d3 Simplify main function 2018-07-06 10:20:37 -05:00
Jimmy Brisson 71323af2f5 Reformat part of project.py 2018-07-06 10:10:01 -05:00
Cruz Monrreal 0ba46e74a6
Merge pull request #7377 from theotherjimmy/stats-depth-zero
Tools: Summarize stats when depth is 0
2018-07-05 10:38:18 -05:00
Cruz Monrreal fab08498f8
Merge pull request #7277 from theotherjimmy/error-on-unknown-config
Tools: Persist config errors until validation occurs
2018-07-05 10:36:35 -05:00
Jimmy Brisson b56a7a6a5a Move exporter alias handling into CLI 2018-07-03 13:56:23 -05:00
Jimmy Brisson e53537c267 Use defaultdict in the other place 2018-07-03 10:03:27 -05:00
Cruz Monrreal 9c4c630356
Merge pull request #7367 from theotherjimmy/check-arm-component
Tools: Detect Arm Compiler version using Component
2018-07-03 07:35:57 -05:00
Cruz Monrreal 72684e3a2e
Merge pull request #7370 from jeromecoutant/PR_PERIPPINO
build_api.py : add comment about separate_names
2018-06-29 20:07:20 -05:00
Jimmy Brisson 982d2085ef Summarize memory map when --stats-depth is 0 2018-06-29 12:09:53 -05:00
jeromecoutant e17b1df13d build_api.py : add comment about separate_names 2018-06-29 09:30:07 +02:00
Jimmy Brisson 95c33f7807 Include symbols in dumped build profiles
This will make incremental compile more complete, taking device_has and
inheritance hierarchy into account.
2018-06-28 15:05:23 -05:00
Jimmy Brisson ed04c1b413 Add a test for MDK pro version detection 2018-06-28 10:58:52 -05:00
Jimmy Brisson 37013fb489 Use Component section for ARM compiler version 2018-06-28 10:51:12 -05:00
Jimmy Brisson 5795f5326e Allow missing "bootloader_supported" key 2018-06-28 10:36:18 -05:00
Jimmy Brisson 2a9923f86e Skip invalid undefined errors 2018-06-28 10:26:00 -05:00
Jimmy Brisson 12f490fa02 Make sure that there is always a config_errors member 2018-06-28 10:26:00 -05:00
Jimmy Brisson c380304b93 Persist config errors until validation occurs 2018-06-28 10:26:00 -05:00
Cruz Monrreal cfe0789e99
Merge pull request #7356 from SenRamakri/sen_CrashLogParserCrashFix
Fix tool crashing when lines end with cr(not crlf)
2018-06-28 10:10:39 -05:00
Cruz Monrreal 8baa8c5997
Merge pull request #7353 from jeromecoutant/PR_BUILDOS2
build_api script : separate PeripheralPins.o
2018-06-28 10:08:42 -05:00
Cruz Monrreal dec43922ee
Merge pull request #7247 from theotherjimmy/toolchain-version-check
Tools: Check compiler version
2018-06-27 18:42:49 -05:00
Senthil Ramakrishnan 69a149a232 Fix tool crashing when lines end with cr(not crlf) 2018-06-27 17:06:50 -05:00
jeromecoutant eba9fb1f8f build_api script : separate PeripheralPins.o 2018-06-27 17:15:37 +02:00
Jimmy Brisson c273de6545 Test and correct GCC version check 2018-06-26 09:25:33 -05:00
Jimmy Brisson 8c17a31c42 Test IAR version check 2018-06-26 09:25:21 -05:00
Jimmy Brisson c174ca3f85 Test and correct ARMCC version check 2018-06-26 09:15:01 -05:00
Jimmy Brisson e439b85de1 prepend VPATH to preinclude and don't escape asm macros 2018-06-26 08:47:41 -05:00
Jimmy Brisson 675ca1a698 Add empty configuration for asm profile test 2018-06-26 08:44:37 -05:00
Jimmy Brisson f87fab5f33 Use via file for ASM macros in IAR 2018-06-26 08:44:37 -05:00
Jimmy Brisson a775e6992e Refactor via files to use a common method 2018-06-26 08:44:37 -05:00
Jimmy Brisson a855281633 Use preinclude of mbed_config.h in all toolchains 2018-06-26 08:44:37 -05:00
TTornblom dcd17935e3 IAR: Fixed #6670 2018-06-26 08:44:37 -05:00
Jimmy Brisson 0e56c18058 Check for no match in version check 2018-06-25 18:04:11 -05:00
Jimmy Brisson 59e8631d3a Escape '.' in regex 2018-06-25 17:58:11 -05:00
Jimmy Brisson 1a9474e4d9 Search all stdout for version regex; check > 1 matches 2018-06-25 14:41:37 -05:00
Jimmy Brisson 2aea6c39f7 Improve ARM compiler regex 2018-06-25 11:33:44 -05:00
Cruz Monrreal 8e170ccbd1
Merge pull request #6925 from TomoYamanaka/feature-flashiap_bootloader
Support Flash iAP and Bootloader for GR-PEACH and GR-LYCHEE
2018-06-22 14:23:57 -05:00
Cruz Monrreal 24daf18044
Merge pull request #7105 from codeauroraforum/mxrt_add_ivt
MIMXRT1050: Update to EVK Rev B
2018-06-22 10:15:33 -05:00
TomoYamanaka 72fd8cafd7 Update arm pack manager for GR-PEACH
I changed the information("sectors" and "memory") of GR-PEACH for supporting bootloader in index.json file of arm pack manager.
2018-06-22 10:53:21 +09:00
TomoYamanaka d5f0e1727b Fix definitions of IAR exporter for GR-PEACH and GR-LYCHEE 2018-06-22 10:47:23 +09:00
TomoYamanaka 22b31e45a5 Update arm pack manager for GR-LYCHEE
I added the information of GR-LYCHEE for supporting bootloader in index.json file of arm pack manager.
2018-06-22 10:47:22 +09:00
Cruz Monrreal 95d2b3d55c
Merge pull request #7133 from OpenNuvoton/nuvoton_support_tz_partition
Override ROM/RAM start/size for TrustZone targets
2018-06-21 17:49:47 -05:00
Mahesh Mahadevan 632892d355 MIMXRT1050: Update to EVK Rev B
1. Add the IVT header to the binary as this is required for boot up
   This was earlier added by the DAPLink firmware. As it is no longer
   handled in DAPLink, the header needs to be added inside mbed.
2. Update drivers

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-06-21 13:34:12 -05:00
Cruz Monrreal II 799cfdbbc2 Compiling Cortex-A cores in uVision is not supported.
Reference: http://www2.keil.com/mdk5/selector
2018-06-21 09:13:24 -05:00
Jimmy Brisson 52e640fc1d Add Rom config info getter and rom defines
* MBED_ROM_START = start of current rom (independent of BL modes)
 * MBED_ROM_SIZE = size of current rom (independent of BL modes)
2018-06-20 10:47:04 -05:00
Cruz Monrreal c4edf065d1
Merge pull request #7266 from bentcooke/update_arm_pack_index
update arm_pack_manager index
2018-06-20 10:02:54 -05:00
Cruz Monrreal f11d0f3be7
Merge pull request #7261 from kjbracey-arm/iar-jump-warning
IAR: Suppress C "bypasses initialization" warning
2018-06-19 21:46:14 -05:00
ben 2bf0273a5c update pack index 2018-06-19 14:42:32 -05:00
Jimmy Brisson a87575fec5 Use Non-blocking Error and LooseVersion 2018-06-19 10:41:08 -05:00
Jimmy Brisson 4e6b830c91 Allow hex BL, SD and application merging 2018-06-19 09:27:09 -05:00
Kevin Bracey 81ed8014cd IAR: Suppress C "bypasses initialization" warning
By default IAR generates "transfer of control bypasses initialization"
warnings for C code - it's a legal construct that frequently occurs when
doing Linux-style "goto error". Many occurrences in Nanostack.

Suppress the warning for C only, to align with GCC and ARMCC. Have to
take care not to put it in the "common" section, as this would suppress
it for C++, where it actually is illegal.
2018-06-19 15:54:28 +03:00
Martin Kojtal eb3d3fdb54
Merge pull request #6929 from jeromecoutant/PR_SCRIPT
STM32 : script to generate PeripheralPins.c for new target addition
2018-06-19 14:26:22 +02:00
Jimmy Brisson 6f54a8fdd7 Check version of Mbed CLI compile 2018-06-18 14:03:09 -05:00
Cruz Monrreal 5d8e9dc0ea
Merge pull request #7174 from TeroJaasko/crash_log_parser_make_raw_output_possible
tools: crash_log_parser: make ELF and MAP parameters optional
2018-06-18 10:07:09 -05:00
Jimmy Brisson 86b7adbd30 Force small lib usage when using uARM tc 2018-06-15 10:38:23 -05:00
Anna Bridge 4d8dd59440
Merge pull request #7196 from theotherjimmy/no-double-header
Tools: Remove second header when every bl config param is used
2018-06-15 11:11:58 +01:00
Cruz Monrreal 10d9f7fda1
Merge pull request #7197 from theotherjimmy/uarm-uvision
Tools: Allow exporting of uARM-only targets to uvision
2018-06-14 17:29:25 -05:00
Jimmy Brisson 34792e60c6 Correct "defalut" typo 2018-06-13 09:51:50 -05:00
Jimmy Brisson 92abbb7599 Use memories passed in when getting memory specs 2018-06-13 09:33:39 -05:00
Cruz Monrreal 799ba08017
Merge pull request #7131 from klaas019/master
new mdot bootloader
2018-06-13 08:48:10 -05:00
Jimmy Brisson 1d9fd830af Compute ARM_STD and ARM_MICRO labels with target attrs 2018-06-12 09:54:34 -05:00
Jimmy Brisson b922201a9c Heed default_lib in arm compiler 2018-06-12 09:29:10 -05:00
Jimmy Brisson 0c8f66f87b Correct supported check of uvision to include uARM 2018-06-12 09:28:43 -05:00
Jimmy Brisson 8e26e2c198 Skip second header when every bl config paramater used 2018-06-12 09:02:14 -05:00
jeromecoutant 5fba2e49c5 STM32_gen_PeripheralPins.py : Add license header 2018-06-12 14:30:54 +02:00
Cruz Monrreal e78943e062
Merge pull request #7159 from juhaylinen/greentea_mtb_emac
Add targets to Greentea EMAC tests
2018-06-11 08:51:20 -05:00
Cruz Monrreal 72fde51b02
Merge pull request #7148 from theotherjimmy/nonzero-build-release
Tool, build_release: Return nonzero when builds fail
2018-06-11 08:36:22 -05:00
Cruz Monrreal 9ca3252f6a
Merge pull request #7167 from theotherjimmy/fix-memap-armc6
Add show full path option to armc6 linker
2018-06-11 08:31:24 -05:00
Jimmy Brisson 09cdc0631d Move from tc constructor to config vars 2018-06-08 09:59:19 -05:00
Tero Jääskö 274c3fa690 tools: crash_log_parser: make ELF and MAP parameters optional
On some bug reports the customer is providing only the raw
crash dump but not the ELF and MAP files. Those files are
needed to decode the addresses into symbol names, but the
extremely useful fault reason can still be decoded even
without them.

By making the ELF and MAP arguments optional, one can now
decode the raw dump content into something such as:

--8<--8<--
ELF or MAP file missing, logging raw values.

Crash Info:
	Crash location = <unknown-symbol> [0x000091F4] (based on PC value)
	Caller location = <unknown-symbol> [0x00018E39] (based on LR value)
	Stack Pointer at the time of crash = [200091E8]
	Target and Fault Info:
		Processor Arch: ARM-V7M or above
		Processor Variant: C24
		Forced exception, a fault with configurable priority has been escalated to HardFault
		The processor has attempted to execute an undefined instruction
2018-06-08 13:32:37 +03:00
ccli8 ae16aa2fb7 Fix overridden MBED_ROM_START/MBED_ROM_SIZE/MBED_RAM_START/MBED_RAM_SIZE don't pass to linker 2018-06-08 18:03:56 +08:00
Jimmy Brisson 7f0e7ce722 Add show full path option to armc6 linker
### Description
Full paths in the map file are required to have correct memap parsing.
This PR adds the option `--show_full_path` to ARMC6 in every profile.
This option only affects the map file output, so it's safe to add.
2018-06-07 11:44:03 -05:00
Cruz Monrreal d216602cbb
Merge pull request #7067 from jeromecoutant/PR_ISM43362
Add ISM43362 driver support for STM32 wifi DISCO boards
2018-06-07 10:17:17 -05:00
Cruz Monrreal a25b9f390f
Merge pull request #6999 from evva-sfw/feature/extend_error_warning_msg_as_link
Extend feature which displays errors/warnings as Link
2018-06-07 10:11:23 -05:00
Cruz Monrreal 7dc4848265
Merge pull request #7124 from theotherjimmy/term-notify-singletest
Tool: Use TerminalNotifier in singletest
2018-06-07 10:09:26 -05:00
Cruz Monrreal 277d5d6121
Merge pull request #7111 from cmonr/py3-exporter-issue
Python 3 makefile export issue
2018-06-07 10:09:07 -05:00
Jimmy Brisson 427d8c2985 Correct status reporting of build_release.py 2018-06-07 08:55:53 -05:00
Juha Ylinen 44ce63e586 Add targets to Greentea EMAC tests
Update test configuration file for WicedInterface
2018-06-07 12:11:38 +03:00
Martin Kojtal 835d38db58
Merge pull request #7132 from theotherjimmy/mbed2-use-notify
Tool: Use TerminalNotifier in Mbed 2 release
2018-06-07 09:17:45 +02:00
ccli8 58f1521623 Pass fixed SRAM information (MBED_RAM_START/MBED_RAM_SIZE) to compiler/linker
This fix relies on target configuration options (mbed_ram_start/mbed_ram_size) defined.
2018-06-06 09:49:44 +08:00