Commit Graph

2164 Commits (4a66eb6bb14e2013705f610da995dbd34f6eb524)

Author SHA1 Message Date
Jimmy Brisson c186c3ce86 Use mocked notifier for individual tests
That way we separate the collection of notifications from everything else
2018-05-03 10:06:47 -05:00
Jimmy Brisson d338e672de Apply subtract basepath to features
A bug, #6755, was the result of the `subtract_basepath` function not
being applied to a resources object's children (it's features). This PR
fixes this bug by moving this functionality into the resources class.
Then, I applied the `subtract_basepath` method to the children resource
objects recursively. This has been tested on Partnerbeta and is to
upstream the fix.
2018-05-03 08:54:55 -05:00
Jimmy Brisson 33eb3ea427 Reorder test configs
Old order:
 * --test-config
 * --app-config
 * test config (as defined in test_config)
 * `mbed_app.json` in root.

New order:
 * --test-config
 * --app-config
 * `mbed_app.json` in root.
 * test config (as defined in test_config)~

This matches the documentation and user expectation
2018-05-03 08:47:12 -05:00
Jimmy Brisson 0579c7e572 Check call to get_config in test_api tests 2018-05-02 09:55:36 -05:00
Jimmy Brisson 0f7e900417 Pass app config to get config
This corrects a bug which would manifest as --app-config not having
much of an affect on test builds (not the first libary bulid)
2018-05-02 09:38:44 -05:00
Jimmy Brisson 111f086796 Create Mock notifier for use in tests 2018-05-01 09:10:59 -05:00
Jimmy Brisson dc006d6aa3 Remove silent from test invocation
apparently I forgot earlier
2018-04-30 14:44:02 -05:00
Jimmy Brisson d422a5aadc Use notifier api in export 2018-04-30 14:42:33 -05:00
Jimmy Brisson c686c6cb8b Rework cc_verbose 2018-04-30 14:09:35 -05:00
Jimmy Brisson bfc598d041 Use kwargs for formatting 2018-04-30 13:54:48 -05:00
Jimmy Brisson f67592afc9 Correct non-verbose printing 2018-04-30 13:43:08 -05:00
Jimmy Brisson b6b6866d38 Extend a local version of the asm cmd list
I was extending an object-local one instead of a call-local one
2018-04-30 09:34:32 -05:00
Jimmy Brisson beb6d7802a Cleanup extraneous spaces on empty lines 2018-04-30 09:30:32 -05:00
Jimmy Brisson 542bcebac7 Use notify API in post-build scripts 2018-04-27 14:46:35 -05:00
Jimmy Brisson 6b501b50d3 Move "[DEBUG]" behavior into terminal notifier 2018-04-27 14:23:44 -05:00
Cruz Monrreal 1f259a4064
Merge pull request #6644 from OpenNuvoton/nuvoton_fix_armc6_armv8m
Fix build tool with ARMC6/ARMv8M
2018-04-26 20:20:12 -05:00
Jimmy Brisson 8688af057f Fix error/warning printing as links 2018-04-26 11:30:12 -05:00
Jimmy Brisson 0bbf1a26af Correct build.py imports 2018-04-26 11:26:20 -05:00
Jimmy Brisson 98d4e1fd69 Use notification API in build.py 2018-04-26 11:26:14 -05:00
Jimmy Brisson 5c16cd3b39 Implement color terminal notifications
You can turn them on with MBED_COLOR=True
2018-04-26 11:23:20 -05:00
Jimmy Brisson fcf7dbf4c6 Use notification API in BL modes 2018-04-26 09:54:01 -05:00
Jimmy Brisson 85e33b4143 Eliminate silent option from build_project
It's now all handled by the notifier
2018-04-26 09:40:30 -05:00
Jimmy Brisson 56ec4677b5 Clean up notifier API usage in compilers 2018-04-26 09:35:47 -05:00
Jimmy Brisson de91c93108 Use new notifier API in test infra 2018-04-26 09:32:43 -05:00
Jimmy Brisson 3bd691a342 Move terminal notifier to it's own file 2018-04-26 09:04:26 -05:00
Jimmy Brisson 72beee7e90 Refactor notification logic into it's own class 2018-04-26 09:04:26 -05:00
Cruz Monrreal b33ab748a7
Merge pull request #6540 from theotherjimmy/compile-check
Prevent compiling with unsupported compilers
2018-04-24 12:12:38 -05:00
Jimmy Brisson da69f0165b Correct test finding behavior
Scan resources ignores the build dir so we can't set it to something
dumb like the directory we want to scan
2018-04-24 10:07:16 -05:00
Jimmy Brisson d8becaa652 Remove ASM include paths for ARM compiler 2018-04-23 15:23:00 -05:00
Cruz Monrreal a27700da33
Merge pull request #6683 from ganesh-ramachandran/master
Add IAR export and nvstore page size fix for TMPM46B
2018-04-23 10:53:55 -05:00
Martin Kojtal 42d77ecd13
Merge pull request #6658 from theotherjimmy/lib-override-target
Allow library configs to override target configs
2018-04-19 17:41:34 +02:00
Ganesh Ramachandran 38c5997e4c IAR export and page size fix for nvstore 2018-04-19 17:24:58 +05:30
Jimmy Brisson 7a6f2e485a Use passed in target data everywhere when doing lib config 2018-04-18 09:12:49 -05:00
Jimmy Brisson 5b83f21cec Return correct configuration dict 2018-04-18 09:09:29 -05:00
Martin Kojtal 7aa293b11a
Merge pull request #6441 from theotherjimmy/disable-deprecated-exporters
Disable all deprecated exporters
2018-04-18 14:24:47 +02:00
Martin Kojtal 099e54bc17
Merge pull request #6483 from deepikabhavnani/add_tz_functions
Add tz functions
2018-04-18 14:20:13 +02:00
Cruz Monrreal 934101ecf6
Merge pull request #6592 from cmonr/py3-tools-port
Updates tools to be runnable in Python 3
2018-04-17 15:55:15 -05:00
Jimmy Brisson 0e5cb66ca5 Allow library configs to override target configs 2018-04-17 15:48:55 -05:00
Jimmy Brisson bc8b98358d Correct exporting with cortex-M23 and M33 2018-04-17 12:02:08 -05:00
Thomas Sailer 004724d4d9 add ncs36510 fib and trim generation 2018-04-17 18:28:41 +02:00
Cruz Monrreal 1df9f7d450
Merge pull request #6637 from bcostm/add_iar_stm32l496ag
Add IAR export for STM32L496AG
2018-04-17 10:55:39 -05:00
Cruz Monrreal 43bf01008a
Merge pull request #6621 from theotherjimmy/elftools-realtek
Use pyelftools for Realtek post-build script
2018-04-17 10:55:13 -05:00
Cruz Monrreal 3afbfd66c7
Merge pull request #6580 from theotherjimmy/cleanup-get-config
Cleanup get_config (mbed compile --config)
2018-04-17 10:54:29 -05:00
Jimmy Brisson 1bfc80930f Refactor to remove setdefault calls 2018-04-16 17:28:43 -05:00
Jimmy Brisson 18cf1431bd Move to combined ROM/RAM graphs 2018-04-16 11:40:40 -05:00
Jimmy Brisson 2e40181942 Remove old skip sections without text check 2018-04-16 10:15:18 -05:00
Jimmy Brisson a0b305b351 Use pyelftools for Realtek post-build script 2018-04-16 09:06:38 -05:00
ccli8 b81c0e5986 Fix build tool with ARMC6/ARMv8M
1. Add linking time preprocessor macro __DOMAIN_NS for non-secure build
2. For output .hex format, combine multiple .hex files (for multiple load regions) into one
   This can help for Greentea test.
3. Fix 'None' build_dir with cmse_lib.o on Greentea test
2018-04-16 16:10:57 +08:00
bcostm 213f17aaf5 STM32L496AG: Add IAR export 2018-04-13 17:15:27 +02:00
Kimmo Vaisanen 14704c9387 Add iar export support for STM32L151CC 2018-04-13 14:03:00 +03:00
deepikabhavnani 40e2737414 Add SHA:d0a43b8a Conditional compilation 2018-04-11 11:47:46 -05:00
Cruz Monrreal II 85ce95d0ff Modified error formatting to remove unicode character.
jsonschema's error.message returns either u' or ' in strings depending on the python version.
2018-04-10 15:19:34 -05:00
Cruz Monrreal II b286838ebf Updated python tools to be cimpliant with PEP 3113 2018-04-10 13:37:47 -05:00
Jimmy Brisson 81a832d032 Add percent indicator at the bottom 2018-04-10 10:23:20 -05:00
Jimmy Brisson bfceb1050d Implement zoomable html-flamegraph memap output 2018-04-09 16:33:32 -05:00
Jimmy Brisson 854e436d92
Merge pull request #6481 from tsailer/exporter-codeblocks
Code::Blocks project file exporter
2018-04-09 10:13:43 -05:00
Jimmy Brisson e80d9947e2 Shorten lines in get config 2018-04-09 09:29:43 -05:00
Jimmy Brisson c3b9cbe3fd Heed filters in macro printing 2018-04-09 09:27:09 -05:00
Jimmy Brisson b384834db5 Print macros in a readable way 2018-04-09 09:26:11 -05:00
Jimmy Brisson aac1099858 Simplify config param printing logic 2018-04-09 09:25:38 -05:00
Jimmy Brisson cdb4e98df3 Remove needless _exit call 2018-04-09 09:25:18 -05:00
Jimmy Brisson 498afc97fa Cleanup get_config imports 2018-04-09 09:23:15 -05:00
Jimmy Brisson 192a8e5094
Merge pull request #6530 from theotherjimmy/exclude-dot-files
Exclude files like `.main.cpp` from builds
2018-04-06 10:45:26 -05:00
Thomas Sailer 696a7f5bd5 generate .mbedignore files in bin and obj to prevent mbed compile from getting confused 2018-04-06 11:45:12 +02:00
Thomas Sailer 69d7c530f5 proper compile flags for Release target; add fib/trim files to .mbedignore so mbed compile doesn't pick them up 2018-04-06 11:44:59 +02:00
Thomas Sailer 7b7d5fcb91 exporter: properly export libraries 2018-04-06 11:42:23 +02:00
Thomas Sailer 84fe7ed5fd skip -c, sort compiler options and file list 2018-04-06 11:41:49 +02:00
Thomas Sailer 8478ec253a copy ncs36510addfib.py into project root, because it cannot be relied to be accessible in the template directory 2018-04-06 11:40:37 +02:00
Thomas Sailer 209310c54f remove NCS36510 specific changes from this branch 2018-04-06 11:31:55 +02:00
Thomas Sailer f53154a95e some modifications from review 2018-04-06 11:31:55 +02:00
Thomas Sailer ca86cbf565 Code::Blocks project file exporter 2018-04-06 11:31:55 +02:00
Jimmy Brisson f34feddaa2 Error on invalid mbed_lib JSON 2018-04-05 14:34:00 -05:00
Jimmy Brisson c0410d7bec Add GCC_ARM support to all fake test targets 2018-04-05 10:11:51 -05:00
Jimmy Brisson 6cf2efa794 Prevent compiling with unsupported compilers 2018-04-04 14:02:13 -05:00
Jimmy Brisson 018596446e Exclude files like `.main.cpp` from builds 2018-04-03 11:23:42 -05:00
Cruz Monrreal 4a5ac149ec
Merge pull request #6512 from theotherjimmy/export-check-rtos
Move Mbed 5 support check so that it affects the exporters
2018-04-03 11:06:55 -05:00
Cruz Monrreal c8bd08f60e
Merge pull request #6043 from ithinuel/add-rak811
add support for the RAK811
2018-03-30 01:54:19 -05:00
Jimmy Brisson 24c7b1a61a Move Mbed 5 support check so that it affects the exporters 2018-03-29 14:05:23 -05:00
Jimmy Brisson c44dba3ef4 Minimize include path size in uvision export 2018-03-27 14:30:43 -05:00
Jimmy Brisson b60729d147 Move filter dot into exporter base class 2018-03-27 14:30:36 -05:00
Wilfried Chauveau 78d73a1a63 add the target to travis build script & sw4stm32 export script. 2018-03-27 10:45:04 +01:00
Cruz Monrreal c291b4ad32
Merge pull request #6428 from theotherjimmy/many-source-export
Avoid incorrect config errors on export with many --source
2018-03-26 14:25:53 -05:00
Jimmy Brisson 92c257709c Disable all deprecated exporters 2018-03-23 09:56:10 -05:00
Jimmy Brisson cd31272d4b Avoid incorrect config errors on export 2018-03-23 09:28:49 -05:00
Jimmy Brisson a27dd66f92 Correct get_config imports 2018-03-21 10:50:56 -05:00
Martin Kojtal 7125c8ad0b
Merge pull request #6344 from tung7970/fix-tools
armcc - remove fromelf output before regenerating one
2018-03-21 14:12:00 +01:00
Tony Wu cca1d5581a armcc - remove fromelf output before regenerating
Fix armcc recompile errors during elf2bin stage. Errors shown as follows:

Elf2Bin: mbed-os-example-wifi
Error: Q0147E: Failed to create Directory .\BUILD\REALTEK_RTL8195AM\ARM\mbed-os-example-wifi.bin\IMAGE2_TABLE: File exists
Finished: 0 information, 0 warning and 1 error messages.
[ERROR] Error: Q0147E: Failed to create Directory .\BUILD\REALTEK_RTL8195AM\ARM\mbed-os-example-wifi.bin\IMAGE2_TABLE: File exists
Finished: 0 information, 0 warning and 1 error messages.

Signed-off-by: Tony Wu <tonywu@realtek.com>
2018-03-20 16:01:22 +08:00
Cruz Monrreal f6bcbfe1f0
Merge pull request #6356 from hug-dev/asm-include-flags
Add include search path when preprocessing assembly files for uvision and make_armc5 exports
2018-03-19 16:52:18 -05:00
Cruz Monrreal 4840e4d3e1
Merge pull request #6192 from theotherjimmy/export-py3
Correct syntax for mbed export in Py3
2018-03-19 11:20:37 -05:00
Cruz Monrreal e01479cc06
Merge pull request #6216 from theotherjimmy/fix-online-realtek
Correct Realtek post-build script to work in the online compiler
2018-03-19 11:19:53 -05:00
Jimmy Brisson e5f5a3b6cc Correct type issue in export arg parsing 2018-03-16 13:18:04 -05:00
Jimmy Brisson 14255ca113 Correct syntax for mbed export in Py3 2018-03-16 13:08:20 -05:00
Cruz Monrreal 0e9824f987
Merge pull request #6354 from chuanga/patch-1
Enable iar export option for MTB_ADV_WISE_1510
2018-03-16 11:45:29 -05:00
Cruz Monrreal aa4ebf13a1
Merge pull request #6361 from theotherjimmy/unicode-options
Convert option list to unicode
2018-03-16 11:33:38 -05:00
Jimmy Brisson a9e3a4fa28 Correct Realtek post-build script to work in the online compiler 2018-03-16 10:09:03 -05:00
Cruz Monrreal 0828727643
Merge pull request #6270 from evva-sfw/error_warning_msg_as_link
Add parameter in tools settings to show error/warning as Link
2018-03-15 11:49:33 -05:00
Cruz Monrreal 9cac3b2f6b
Merge pull request #6149 from bmcdonnell-ionx/typos
Fix typos in the files
2018-03-15 10:53:03 -05:00
Jimmy Brisson 229a072e49 Convert option list to unicode 2018-03-14 11:03:39 -05:00
Hugues de Valon ebc9289d30 Add ASM include flags in uvision export
When exporting to a uvision project, the include flags are not put in
the assembly compilation line. When assembling the files containing
includes, the search path will then fail. This patch adds the include
paths to the Assembly sequence, as it is done for compilation.
This issue was found in the pull request ARMmbed/mbed-os#6168.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-03-14 13:09:07 +00:00
Hugues de Valon 6b72edeb9a Add ASM flags virtual path for make export
When exporting a mbed project to make_armc5, the include options (-I)
of the ASM flags are not pointing to the good folder. It should be
pointing to the root mbed-os folder and not the one in BUILD.
This issue was found in the pull request ARMmbed/mbed-os#6168.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-03-14 13:08:55 +00:00
Alan Chuang 3a504a500e
Enable iar export option for MTB_ADV_WISE_1510 2018-03-14 19:07:42 +08:00
Cruz Monrreal cb99c280a6
Actually disabled exporters for lorawan example 2018-03-13 12:15:35 -05:00
Cruz Monrreal 1dfe716b56
Disabled exporters for lorawan example 2018-03-13 12:13:55 -05:00
Cruz Monrreal II 0ab2216803 Add lorawan and nvstore examples for testing. 2018-03-12 18:45:16 -05:00
Martin Kojtal d9a1302fd5
Merge pull request #6271 from lfdebrux/profile-merging
Allow build profiles to omit language entries
2018-03-08 17:41:51 +01:00
Cruz Monrreal 79bd2638b8
Merge pull request #6285 from theotherjimmy/fix-6284
Improve json schema and schema errors
2018-03-06 21:07:10 -06:00
Cruz Monrreal 8a7b390fdd
Merge pull request #6102 from Ultimaker/master
Add support for STEVAL-3DP001V1 board
2018-03-06 20:41:41 -06:00
Jimmy Brisson 67e76f3a5e Allow _ and () in identifiers in macros 2018-03-06 11:12:56 -06:00
Jimmy Brisson 6633fbca68 Print array indexes correctly in schema errors 2018-03-06 11:12:22 -06:00
Cruz Monrreal b84627feab
Merge pull request #6146 from theotherjimmy/fix-m33-fp
Correct gcc m33 floating point handling
2018-03-06 08:20:20 -06:00
Cruz Monrreal e7fde46731
Merge pull request #6143 from theotherjimmy/multi-source-export
Correct mbed export with multiple --source params
2018-03-05 21:47:06 -06:00
Laurence de Bruxelles ce6bd9defc Allow build profiles to omit language entries 2018-03-05 15:21:08 +00:00
PHST 3e59bdcbf5 Add parameter in tools settings to show error/warning as Link
Per default mbed compile prints errors/warnings on output not in a link format, therefore it is not possible to click, i.e. in an IDE, on the errors/warnings and jump to the position in the file.

The settings parameter lets you decide in witch format do you want to have it.
If it is enabled then the output will look like:
[Error/Warning] [absolute\path\to\file.ext]:[line]:[column]: [msg]

with this format nearly every common known IDE can deal with this link and lets you jump to the file
2018-03-05 15:44:49 +01:00
paul-szczepanek-arm 8347e76bf4 Merge https://github.com/ARMmbed/mbed-os 2018-03-01 18:11:41 +00:00
Anna Bridge 8f5b857747
Merge pull request #5950 from theotherjimmy/header-config
Reserve and Render header in managed BL mode
2018-03-01 16:25:18 +00:00
Jimmy Brisson c29207a4f4 Correct gcc m33 floating point handling 2018-03-01 09:40:47 -06:00
Anna Bridge ae788f7384
Merge pull request #5993 from theotherjimmy/fix-vector-pref-clif
Work around Arm Compiler 6 stdvector perfomance cliff
2018-03-01 10:23:03 +00:00
Jimmy Brisson 0f15633d37 Work around Arm Compiler 6 stdvector perfomance cliff 2018-02-28 14:46:03 -06:00
Jimmy Brisson 477b947b22 Improve json schema validation errors 2018-02-28 14:39:28 -06:00
Jimmy Brisson 262c737c76 Specify --build in mbed export: consistency with compile 2018-02-28 14:31:42 -06:00
Jimmy Brisson 9252b98050 Correct mbed export with multiple --source params 2018-02-28 14:31:35 -06:00
daid 62599a97f7 Add support for STEVAL-3DP001V1 board, which has an STM32F401VE chip. This support is based on the NUCLEO-F401RE board. Which has the same amount of flash/ram but less pins available on the chip. 2018-02-28 09:37:39 +01:00
Cruz Monrreal 8b6a7aacc5
Merge pull request #6229 from hug-dev/fix-elf-output-extension
Fix a bug using ELF as output extension
2018-02-27 16:32:40 -06:00
Cruz Monrreal 5077644e6b
Merge pull request #6218 from geky/g-fix-travis-python-versions-2
Travis: Tear out python3 testing to get CI working again
2018-02-27 16:18:43 -06:00
Christopher Haster 24bb556127 tools: Removed outdated (and broken) toolchain initialization test
Also moved the access of build_dir into condition on secure in ARMC6

per theotherjimmy
2018-02-27 09:39:00 -06:00
Vincent Coubard e568aa47ba Merge branch 'master' of https://github.com/ARMmbed/mbed-os into pr-sm 2018-02-27 14:33:35 +00:00
Hugues de Valon b0027c1e81 Fix a bug using ELF as output extension
When overriding the OUTPUT_EXT variable in compilation configuration,
bugs appear:

* The bin variable is not None as the 'elf' string is not interned.
* When that is fixed, the function returns None instead of returning the
path of the ELF file.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
2018-02-27 14:08:02 +00:00
Cruz Monrreal 56e8c895b6
Merge pull request #6191 from theotherjimmy/simplify-json-to-dict
Simplify json-to-dict utility
2018-02-27 00:35:05 -06:00
Christopher Haster 5a108166f0 tools: Fixed small unicode issue in config tests 2018-02-26 17:08:02 -06:00
Cruz Monrreal daf29dc9f2
Merge pull request #6153 from theotherjimmy/correct-export-clean
Correct exporter clean behavior
2018-02-26 14:38:45 -06:00
Cruz Monrreal d49862bcfa
Merge pull request #6197 from geky/revert-pretty-bars
Revert "Added pretty bar printing for compile output"
2018-02-26 14:35:49 -06:00
Jimmy Brisson 7b49edc7eb Simplify json-to-dict utility 2018-02-23 09:38:16 -06:00
paul-szczepanek-arm c8f77259ed Merge https://github.com/ARMmbed/mbed-os 2018-02-23 10:11:49 +00:00
Christopher Haster 011e018f52 Revert "Added pretty bar printing for compile output"
This reverts commit 471d99c68f.
2018-02-22 22:07:22 -06:00
Cruz Monrreal bf2f24fab7
Merge pull request #6147 from codeauroraforum/Increase_Speed_LPC54628
LPC546XX: Add support for 220MHz core speed available on LPC54628
2018-02-22 20:57:35 -06:00
Jimmy Brisson ed7793de65 Add clean methods to many more exporters 2018-02-22 14:46:21 -06:00
Cruz Monrreal d9cb00d627
Merge pull request #6145 from theotherjimmy/exclude-file-gnuarmeclipse
Correct single file excludes for some exporters
2018-02-22 14:33:20 -06:00
Mahesh Mahadevan a9cd4705d8 LPC546XX: Add support for 220MHz core speed available on LPC54628
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-02-22 07:30:19 -06:00
Christopher Haster 0bc386a7c4 tools: Let unicode error messages through
Some toolchains (GCC) may emit error messages with unicode symbols based on
the your localization settings. Instead of being passed to the user as is,
the unicode causes an exception.
2018-02-21 14:07:28 -06:00
Jimmy Brisson bd5b34f59c Correct exporter clean behavior 2018-02-21 09:28:24 -06:00
Jimmy Brisson 6693b08cfc Use print function in project.py 2018-02-21 09:25:59 -06:00
Brendan McDonnell c4f10aafee typos 2018-02-20 20:11:19 -05:00
Jimmy Brisson 166a463639 Correct single file excludes for some exporters 2018-02-20 12:09:11 -06:00
Jimmy Brisson 9f99330be6 Allow overriding offsets with "app_offset" and "header_offset" 2018-02-20 11:45:32 -06:00
Jimmy Brisson deca33ff81 Calculate digests with header up to their start address 2018-02-20 11:45:32 -06:00
Jimmy Brisson 5b2d7a27d2 Require endianness specification for ints > 8 bits 2018-02-20 11:45:32 -06:00
Jimmy Brisson 4c47f21cac Fill header in application 2018-02-20 11:45:32 -06:00
Jimmy Brisson b2c71c0fce Accept header configuration and reserve space 2018-02-20 11:45:32 -06:00
Cruz Monrreal 45d04bcd51
Merge pull request #6123 from theotherjimmy/correct-sector-info
Correct sector scraping in arm-pack-manager
2018-02-20 11:33:27 -06:00
Cruz Monrreal 863b40d19c
Merge pull request #6121 from theotherjimmy/mbedignore-append
Avoid blowing away .mbedignore files in exporters
2018-02-20 10:48:21 -06:00
paul-szczepanek-arm dd7bc50e4b Merge branch 'master' into palsm 2018-02-19 16:39:10 +00:00
Martin Kojtal 636ced8ed0
Merge pull request #5915 from DBS06/gcc_msg_parsing
Simplify and Improve error/warning parser for gcc_arm
2018-02-19 17:34:43 +01:00
Jimmy Brisson 8d7311d38d Avoid blowing away .mbedignore files in exporters 2018-02-16 14:45:55 -06:00
Jimmy Brisson 4045c63f2a Correct sector scraping in arm-pack-manager 2018-02-16 13:55:01 -06:00
Cruz Monrreal 4145cc0cf0
Merge pull request #6029 from deepikabhavnani/update_context_switch_files
RTX5: Pre-processor defines used for assembly
2018-02-16 10:15:03 -06:00
Cruz Monrreal f95730f207
Merge pull request #6099 from janjongboom/patch-1
gnuarmeclipse exporter uses mBed instead of proper casing
2018-02-15 17:06:40 -06:00
Cruz Monrreal df4ceee4e1
Merge pull request #6096 from deepikabhavnani/secure_lib_creation
Generate/Link secure object file
2018-02-15 11:27:19 -06:00
Cruz Monrreal 28ac288698
Merge pull request #6000 from daid/patch-1
Prevent detect_targets.py tool script from crashing on known targets
2018-02-15 10:57:15 -06:00
Jan Jongboom ecc07c3217
gnuarmeclipse exporter uses mBed instead of proper casing 2018-02-15 12:24:01 +08:00
Cruz Monrreal b48df25c9d
Merge pull request #5666 from mharringADI/feature-cces-exporter
Add exporter for Analog Devices' CrossCore Embedded Studio
2018-02-14 14:00:36 -06:00
deepikabhavnani b21e93ba32 Generate/Link secure object file
Cortex v8 architecture based devices support secure/non-secure builds.
Secure build should generate the object file/library from elf during link
process which is used by non-secure binary during linking.

--out-implib=file specifies output library in which symbols are exported
--cmse-implib requests libraries mentioned above are secure gateway
libraries

Creation of secure library is done as part of linking process in GCC/ARMC6/IAR
Non-Secure project should add this secure object file as part of the
linking process.
Secure library is named as cmse_lib.o.
2018-02-14 12:48:33 -06:00
Mike Harrington 8c87c2692c Updated README.md to include instructions for different operating systems. Reduced duplicate code. 2018-02-13 14:56:54 -05:00
Tero Jääskö faabde13a1 tools: build: fix handing of "--stats-depth"
The introduction of pretty-bar had broken the handling of
"mbed compile"'s "--stats-depth" argument. No matter what one gave
as parameter to it, the result output is just using the default 2.
Fix the logic in build_api.
2018-02-13 15:35:01 +02:00
deepikabhavnani 1825ec6e92 Added SHA record for context switch assembly files 2018-02-12 11:54:55 -06:00
Senthil Ramakrishnan 3340a020ed Fix code style issues and update documentation 2018-02-12 11:50:34 -06:00
Senthil Ramakrishnan 8967b52bfb crash_log_parser review comment fixes 2018-02-12 11:50:33 -06:00
Senthil Ramakrishnan 96d900c99f Fixes for targets with invalid HardFault_Handler implementation and review/other fixes 2018-02-12 11:50:33 -06:00
Senthil Ramakrishnan 29348d823d Support for generating core/register/thread-info dump on fault exceptions 2018-02-12 11:50:33 -06:00
Mike Harrington d93bdafbf1 Resolved pylint errors and made changes based on feedback. Added README describing how to use headless tools after exporting. 2018-02-09 14:48:06 -05:00
Mike Harrington 60b22dba19 Added exporter for Analog Devices' CrossCore Embedded Studio 2018-02-09 14:48:05 -05:00
deepikabhavnani 4076788d51 Non Secure flag is required for pre-processing of linker file 2018-02-07 22:48:47 -06:00
Cruz Monrreal 02eeb7af41
Merge pull request #6030 from deepikabhavnani/correct_arch
M33: -march not required if -mcpu is set
2018-02-07 20:07:11 -06:00
Cruz Monrreal 1c5c1c79d0
Merge pull request #6027 from ithinuel/fix-target-names-for-murata-abz-and-adv-wise-1510
rename MURATA type ABZ & WISE 1510 to their expected name
2018-02-07 20:06:50 -06:00
Cruz Monrreal e9fddb6eee
Merge pull request #6017 from theotherjimmy/bl-nonzero-rom
Correct auto-sizing last region of bl
2018-02-07 15:56:43 -06:00
Cruz Monrreal c679dee286
Merge pull request #5848 from theotherjimmy/compile-py3
Python2+3: mbed compile, mbed test --compile,  python unit tests
2018-02-07 15:48:18 -06:00
Cruz Monrreal ebb39244f4
Merge pull request #6001 from ubirch/mbed-os-5985
Corrects intermittent CLion exporter issue with cmake build directory
2018-02-07 14:56:18 -06:00
Cruz Monrreal 671cf409c8
Merge pull request #6007 from theotherjimmy/bl-heed-outputext
Take OUTPUT_EXT into account in managed bl
2018-02-07 14:51:11 -06:00
Cruz Monrreal 779ee843ea
Merge pull request #5797 from hosse005/master
ARMC5+6: Specify CPU for ARM scatter file preprocessor
2018-02-07 14:50:44 -06:00
deepikabhavnani c50518e11c -march not required if -mcpu is set
GCC_ARM throws warning if both architecture and core are set (though
correct). If CPU option is set correctly, architecture is set by compiler
itself.
2018-02-06 22:46:04 -06:00
Wilfried Chauveau 6c9fcf3dd8 rename MURATA type ABZ & WISE_1510 to their expected name 2018-02-06 21:23:37 +00:00
Jimmy Brisson 9c3b489bf6 Correct auto-sizing last region in bl 2018-02-05 14:00:12 -06:00
Jimmy Brisson c52d1edd3e Test for region list sanity (sizes all >= 0) 2018-02-05 13:58:37 -06:00
Jimmy Brisson 2d50a90b59 Python2+3: flash_algo 2018-02-05 11:13:40 -06:00
Jimmy Brisson 95c7d4d47c Compare to unicode in example builder 2018-02-05 11:07:37 -06:00
Jimmy Brisson db4c380b2b Python2+3: build_travis.py and Travis tests 2018-02-05 11:07:37 -06:00
Jimmy Brisson 424ad856a9 Python2+3: make.py -n 2018-02-05 11:07:37 -06:00
Jimmy Brisson 1dd39fbe80 Python2+3: mbed test --compile 2018-02-05 11:07:37 -06:00
Jimmy Brisson c93a2bfa4c Python2+3: Use absolute import where possible 2018-02-05 11:07:37 -06:00
Jimmy Brisson 4322bee175 Python2+3: tests passing 2018-02-05 11:04:36 -06:00
Jimmy Brisson cca4425af6 Python2+3: iteritems -> items 2018-02-05 11:04:36 -06:00
Jimmy Brisson 45bdd98a85 Python2+3: tests import correctly 2018-02-05 11:04:36 -06:00
Jimmy Brisson 7abeec9744 Python2+3: clean argparse 2018-02-05 11:04:35 -06:00
Jimmy Brisson 10a91216f5 Python2+3: The rest of mbed compile 2018-02-05 11:04:01 -06:00
Jimmy Brisson 380ecb1b0e Python2+3: working through many has_attr exceptions 2018-02-05 11:04:01 -06:00
Jimmy Brisson 68737f2762 Python2+3: Things import 2018-02-05 11:03:44 -06:00
Cruz Monrreal 964e6e74fb
Merge pull request #5826 from codeauroraforum/Add_iMXRT_Support
NXP: Add support for MIMXRT1050_EVK
2018-02-05 10:15:17 -06:00
Jimmy Brisson c09142e82c Don't bother padding hex files for managed bl 2018-02-02 15:44:32 -06:00
Jimmy Brisson 4f13e21aa0 Use OUTPUT_EXT in managed boot loader 2018-02-02 15:40:44 -06:00
Jimmy Brisson 9b8ba4dd98 Use relative path to scatter for include path 2018-02-02 11:53:51 -06:00
Matthias L. Jugel e321e98faa fix #5985 CLion exporter results in cmake build directory, causes compiler to fail in unexpect... 2018-02-02 09:51:14 +01:00
daid e7839f1cb6
Prevent detect_targets.py tool script from crashing on known targets
As mut['mcu'] can be "None" on unknown targets, the detect_targets script crashes when one of these boards is connected.

This happens when "mbed-cli detect -vv" is ran when a STEVAL-3DP001V1 board is connected. Which does not provide a html file with a target_id, and thus cannot be looked up in the mbedls platform database.
http://www.st.com/en/evaluation-tools/steval-3dp001v1.html
2018-02-02 09:11:24 +01:00
Jimmy Brisson fad2ee55e1 Restrict target_overries usage 2018-02-01 17:09:17 -06:00
Cruz Monrreal 860b66a722
Merge pull request #5022 from scartmell-arm/mbed-config-json-schema
Add JSON schema based validation to mbed config script
2018-02-01 16:01:51 -06:00
Cruz Monrreal ce9f63fde7
Merge pull request #5964 from amq/vscode-launch
VS Code exporter: do not overwrite existing (launch|settings|tasks).json
2018-02-01 13:27:27 -06:00
Steven Cartmell b1ea3881be Fix test errors produced by JSON schema after rebase
- Modified the expected error code in some of the test cases. The error
  message is now issued by the JSON validator.

- Stop validation code being called if no application configuration is
  given to validate.

- Change test mock code to check for specific calls, instead of number of
  calls.

- Derive absolute paths for JSON schema files before loading them, which
  seems to work better with the URI path resolution of the schema parser.
2018-02-01 17:18:41 +00:00
Steven Cartmell 7010010ffc Remove placeholder $id from JSON schema and fix description 2018-02-01 17:18:41 +00:00
Steven Cartmell 151f2fa3a6 Refactor common JSON schema definitions into a seperate file
- Moved all common definitions from schema_app and schema_lib into a
  separate definitions file.

- Changed the calling code to resolve multiple schema files correctly.
2018-02-01 17:18:40 +00:00
Steven Cartmell 3ff7de9771 Remove config_path setting and amend regex in mbed config JSON schema
- Removed the config_path setting from schema and moved the addition of the
config_path value after the validation is done.

- Altered the macro validation regex to be more lenient. Now verifies that
  if '=' is used in the macro definition that something comes after it.
2018-02-01 17:18:40 +00:00
Steven Cartmell fd208e6751 Add JSON schema based validation to mbed config script
- Added app and lib JSON schema definition files which specify the valid
  keys and values that can be used in mbed library and application
  configuration files. The primary different between the app and lib
  schema is that the lib config requires a name key.

- Modified the expected error code in some of the test cases. The error
  message is now issued by the JSON validator.

- Added some validation code to the config script which checks the
  validity of the mbed_app.json file when it is initially loaded.

- Added some validation code to config script which checks each of the
  mbed_lib.json scripts when they are loaded.

- Removed manual checks for allowable config keys from within the mbed_app
  and mbed_lib json files.

- Removed the check_dict_types() function which was no longer being
  called.
2018-02-01 17:18:39 +00:00
Cruz Monrreal 10c81775b4
Merge pull request #5990 from theotherjimmy/fix-sw4stm32-supported
Correct SW4STM32 supported check
2018-02-01 10:30:55 -06:00
Cruz Monrreal bf3693fef4
Merge pull request #5909 from theotherjimmy/bl-as-config
Let libraries, targets configure bootloader
2018-02-01 10:28:42 -06:00
Jimmy Brisson f88b425bfe Correct SW4STM32 supported check 2018-01-31 16:13:21 -06:00
Cruz Monrreal 097966b8c7
Merge pull request #5905 from ithinuel/add-CMWX1ZZABZ-078-support
add support for the murata's module CMWX1ZZABZ-078 based on STM32L0
2018-01-31 12:14:29 -06:00
Jimmy Brisson 6eebc71d99 Force config resolution in gnuarmeclipse exporter 2018-01-31 10:04:34 -06:00
Jimmy Brisson a92d0df4ae Move region adding to mbedToolchain 2018-01-31 10:04:34 -06:00
Jimmy Brisson c9add5c489 Check that boot loader config works in libs 2018-01-31 10:04:34 -06:00
Jimmy Brisson dd3708c24c Handle target overrides that have a path correctly 2018-01-31 10:04:34 -06:00
Jimmy Brisson c180324530 Configure boot loader after scanning 2018-01-31 10:04:34 -06:00
Jimmy Brisson 855d74a968 Enable libraries to have boot loader configuration 2018-01-31 10:04:34 -06:00
Cruz Monrreal b87e98c57b
Merge pull request #5904 from ithinuel/add-wise-1510
add support for STM32L443RC & WISE-1510
2018-01-30 15:01:00 -06:00
Cruz Monrreal 78b65d03f2
Merge pull request #5818 from sarahmarshy/bootloader-align-sectors
Enforce sector alignmnent for managed bootloader builds
2018-01-30 14:54:30 -06:00
amq 301438debb VS Code exporter: do not overwrite existing (launch|settings|tasks).json 2018-01-29 19:18:06 +00:00
Cruz Monrreal cf5065c312
Merge pull request #5901 from cmens23/netbeans_exporter
Netbeans Exporter Bugfix
2018-01-29 10:11:59 -06:00
Cruz Monrreal 702eaff3eb
Merge pull request #5929 from ARMmbed/prettybars
Add pretty bars for compile output
2018-01-29 10:11:20 -06:00
Cruz Monrreal 6da5d54e40
Merge pull request #5933 from phyokyaw/master
Add OpenOCD 5x launch file to e2 studio and update naming
2018-01-29 10:10:08 -06:00
Cruz Monrreal 6e964a6fe4
Merge pull request #5476 from ubirch/add-cmake-export
add cmake exporter for CLion use
2018-01-26 15:07:55 -06:00
sarahmarshy 695dc0059d Change exception in ArmPackManager FLM reader 2018-01-26 13:24:29 -06:00
sarahmarshy 58330fb858 Treat start variable as addrss in `generate_bootloader_build`
Correct spacing.
2018-01-26 13:24:29 -06:00
sarahmarshy 623b1711f9 Introduce sector ceiling/floor rounding
Use ceiling for bootloader end address
Use floor for application size
2018-01-26 13:24:29 -06:00
sarahmarshy 785dd100cf Use Config class sector variable 2018-01-26 13:24:29 -06:00
sarahmarshy 6f39d5a063 Error check existence of sectors 2018-01-26 13:24:29 -06:00
Sarah Marsh 86d4ce1991 Align managed bootloader addresses on sector boundaries
Aligns application start address to sector boundary
Aligns application end address to sector boundary
2018-01-26 13:24:29 -06:00
Sarah Marsh c74de99872 Fix typo in _generate_bootloader_build 2018-01-26 13:24:29 -06:00
Sarah Marsh a2195082cc Add functions for getting sectors in Config class 2018-01-26 13:24:29 -06:00
Sarah Marsh 5009fdb5fc Move FLM parsing to arm_pack_manager and regenerate index
Modify arm_pack_manager to look for new keys in pdsc files, because some
vendors have changed their format
2018-01-26 13:24:29 -06:00
Wilfried Chauveau e6b19d838c add support for STM32L443RC & WISE-1510 2018-01-26 17:06:39 +00:00
Cruz Monrreal da6532e57a
Merge pull request #5857 from TomoYamanaka/master
Registration GR-LYCHEE board as a new mbed board
2018-01-26 10:50:44 -06:00
Cruz Monrreal 9a47f09ea9
Merge pull request #5910 from OSHChip/typo-fix
fix typos in lint.py
2018-01-26 10:36:33 -06:00
Mahesh Mahadevan 060daa99c9 NXP: Add support for MIMXRT1050_EVK
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-01-26 07:46:43 -06:00
Wilfried Chauveau f8e88d7443 add support for the murata's module based on STM32L0 2018-01-26 12:26:25 +00:00
Mahesh Mahadevan 1868e4946c Update CMSIS pack
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-01-25 16:36:44 -06:00
Christopher Haster 471d99c68f Added pretty bar printing for compile output
Looks like this:

    Building project mbed-os-prettyoutput (ARCH_PRO, GCC_ARM)
    Scan: .
    Scan: env
    Scan: mbed
    Scan: FEATURE_LWIP
    Text 70.5KB Data 2.72KB BSS 7.43KB                 ROM 73.2KB RAM 10.1KB
    ROM [|||||||                                             ]  73.2KB/512KB
    RAM [||||||||||||||||                                    ]   10.1KB/32KB
    Image: BUILD/ARCH_PRO/GCC_ARM/mbed-os-prettyoutput.bin

If you build a target without a cmsis-pack it looks like this:

    Building project mbed-os-prettyoutput (ARM_BEETLE_SOC, GCC_ARM)
    Scan: .
    Scan: env
    Scan: mbed
    Scan: FEATURE_BLE
    Text 99KB Data 2.84KB BSS 13KB ROM 102KB RAM 15.8KB
    Image: BUILD/ARM_BEETLE_SOC/GCC_ARM/mbed-os-prettyoutput.bin

And the old behaviour of displaying the memap table can be brought back
by passing the --stats-depth parameter
2018-01-25 11:46:23 -06:00
Clemens Mandl 1ea22c1dd6 Updated List comparision with shorter implementaion using python build-in function zip() 2018-01-24 13:49:24 +01:00
PHST 3ce173b5ce Simplify and Improve error/warning parser for arm_gcc 2018-01-24 08:48:15 +01:00
drewcassidy 6f9aa07491
fix typos in lint.py 2018-01-23 19:19:43 -08:00
Phyo Kyaw d3ac7d3997 Updated exporter for e2 studio: added new launch file 2018-01-23 17:16:26 +00:00
Clemens Mandl 8bb35ca575 Fixed a bug with multiple Sub-Directories with same name 2018-01-23 11:08:58 +01:00
Matthias L. Jugel 0a40a52797 flatten the compiled files list 2018-01-22 19:03:20 +01:00
Matthias L. Jugel c5119ca89e use the normal name without cmake- prefix 2018-01-22 19:03:20 +01:00
Matthias L. Jugel 7acad55f5b add link library paths to build 2018-01-22 19:03:20 +01:00
Matthias L. Jugel c968bc2f86 add ci build operations 2018-01-22 19:03:20 +01:00
Matthias L. Jugel 829b04cb48 change linking stage (dependencies), print built hex file name 2018-01-22 19:03:20 +01:00
Matthias L. Jugel 9e503559bd fix linker issue 2018-01-22 19:03:20 +01:00
Matthias L. Jugel e2ae5607e9 add handling of sub-dependencies, fix profile selection 2018-01-22 19:03:20 +01:00
Matthias L. Jugel c29945b1be simplify the complicated removal of dependency sources
add hex file generation
2018-01-22 19:03:20 +01:00
Matthias L. Jugel 6f667e5ca2 explain code, fix naming, work on linking 2018-01-22 19:03:20 +01:00
Matthias L. Jugel 07b21abc75 add cmake exporter for CLion use 2018-01-22 19:03:19 +01:00
Cruz Monrreal c2784c8962
Merge pull request #5532 from cmens23/master
Exporter for Netbeans GCC_ARM
2018-01-22 10:31:24 -06:00
Cruz Monrreal 47a128a5e5
Merge pull request #5882 from ashok-rao/br-MTB_Dragonfly
Add MTB MTS_Dragonfly as a new target.
2018-01-19 13:58:03 -06:00
Cruz Monrreal 698c7d9e8c
Merge pull request #5819 from geky/test-common
Add COMMON folder for tests
2018-01-18 14:20:23 -06:00
Cruz Monrreal 1a3dae763c
Merge pull request #5858 from yangkunming99/relocate-image-header
RTL8195AM - move region headers to 0xb000 and 0xc000
2018-01-18 11:32:49 -06:00
Ashok Rao 9ee69854ff Adding MTB MTS_Dragonfly as a new target 2018-01-18 17:08:59 +00:00
chrisyang c9fc52166a rtl8195am - reorder some defines properly in ota header file 2018-01-16 13:52:16 +08:00
TomoYamanaka 87968c2536 Enable exporter for GR_LYCHEE is a Renesas new target board
I added GR_LYCHEE as a new target board in DS-5, e2studio and IAR export.
2018-01-16 13:30:31 +09:00
TomoYamanaka 47acc9e551 Add GR_LYCHEE as a new target board in terget.json, build_travis.py and tests.py
I added GR-LYCHEE's configuration in targets.json file. Also, I added GR_LYCHEE as a Renesas new target board in build_travis.py and tests.py.
2018-01-16 13:25:17 +09:00
c.mandl b741e85432 Added Compiler Toolchain Varibales in Templates and modfied generation of jinja 2018-01-15 10:44:36 +01:00
chrisyang a1b4b8f10a rtl8195am - move region headers to 0xb000 and 0xc000
The new layout is as follows:

0x000000 - 0x008000  => bootloader
0x008000 - 0x00b000  => system sectors
0x00b000 - 0x00c000  => region1 header
0x00c000 - 0x00d000  => region2 header
0x00d000 - 0x010000  => reserved
0x010000 - 0x040000  => mbed file system
0x040000 - 0x120000  => region1 image
0x120000 - 0x200000  => region2 image

This is to ensure when daplink erases sections, both regions' headers
are erased properly.
2018-01-15 15:08:13 +08:00
Evan Hosseini 9245b50a54 ARM: ARMC6: Update scatter file shebang include directory 2018-01-12 13:43:20 -06:00
Evan Hosseini 6b21a5539a ARM: ARMC6: Copy headers along with the updated linker scatter file
* Need to copy headers into the build directory as well when also
  writing an updated linker scatter file to the build directory
2018-01-10 15:46:20 -06:00
Christopher Haster d82d9888d4 Added COMMON folder for tests
A COMMON folder allows code reuse across different test cases. This
avoids code duplication or code enterying the application space.

The COMMON folder is uppercase to match naming conventions in Mbed OS.
2018-01-09 16:11:14 -06:00
Clemens Mandl a0703278ea Small Refactoring of variable definitions and removed some unnecessary brackets 2018-01-09 16:54:56 +01:00
Clemens Mandl 212e5669c0 Removed getattr() where it was not needed 2018-01-09 16:13:08 +01:00
Clemens Mandl fe3f533a11 Fixed indention in Line 217 and 218 2018-01-09 15:57:52 +01:00
Senthil Ramakrishnan 47390e62d6 ESP8266 test config and tcp_echo test fix for ESP8266 2018-01-08 14:18:06 -06:00
Jimmy Brisson e301a5b746
Merge pull request #5775 from theotherjimmy/pathsep-memap
Correct memap path handling on windows
2018-01-08 10:37:25 -06:00
Jimmy Brisson 31f7ea7688
Merge pull request #5708 from SeppoTakalo/debug_info
Add minimal debug info to release and develop profiles.
2018-01-08 10:36:30 -06:00
Jimmy Brisson 737f75a68f
Merge pull request #5608 from productize/nucleo-f413zh
NUCLEO_F413ZH: Add support for the NUCLEO-F413ZH board
2018-01-08 10:35:27 -06:00
Evan Hosseini 3c21f1edfb ARM: ARMC6: Fix for ARM linker script cpu formatting 2018-01-08 09:50:33 -06:00
Evan Hosseini 453a1d79f1 ARM: ARMC6: Specify CPU for ARM scatter file preprocessor
Fixes #5796
2018-01-05 15:16:57 -06:00
Jimmy Brisson d94776f909 Assert that reduce depth works and parameterize over path sep 2018-01-02 14:36:10 -06:00
Jimmy Brisson 3db03a77d5 Test gcc memap parser with compiler provided .o's 2018-01-02 14:35:17 -06:00
Jimmy Brisson bfd39bdccb Test memap IAR for multiple arguments per line 2018-01-02 14:34:10 -06:00
Jimmy Brisson 6a8be65904 Use non-scoped imports in memap 2018-01-02 14:19:00 -06:00
Jimmy Brisson 0c08fabbae Correct Gcc builtin module naming 2018-01-02 13:37:25 -06:00
Jimmy Brisson 527c0a2554 Rework parsing dispatch
Parsing dispatch now uses a metaclass as a Trait and a series of classes
that implement the trait for dispatching parsing. This structure gives
each parser it's own namespace, avoiding tacking on suffixes to each
attribute indicating which parser uses it.
2018-01-02 13:11:38 -06:00
Jimmy Brisson fc9bd60d4c Format memap 2018-01-02 10:43:10 -06:00
Jimmy Brisson 003913b22f Use os.sep and os.join instead of string ops 2018-01-02 10:31:00 -06:00
Jimmy Brisson 23c7af799f Handle multiple args per line in IAR cmd parser 2018-01-02 10:29:53 -06:00
Martin Kojtal e07b3c7ac6 tools: cmsis and hal are build together
Build api used to build cmsis separately (how mbed 2 is being build). This is
currently not how cmsis is being defined. As there target dependencies in some
cases, we should include paths from targets when building cmsis
2018-01-02 11:48:56 +00:00
Martin Kojtal 038324a7e5 Travis: add RZ_A1H target
Travis: dsp only for cortex-m
2018-01-02 11:48:47 +00:00
Adam Heinrich da81229186 NUCLEO_F413ZH: Add support for the NUCLEO-F413ZH board
Merged from the existing TARGET_DISCO_F413ZH code (which has the same MCU)
and TARGET_NUCLEO_F412ZG code (which has the same Nucleo-144 board and
pinout).
2017-12-29 15:30:10 +01:00
Cruz Monrreal II 65dd31489a
Merge pull request #5755 from jorisa/fix-make-paths
Fix for #5676 make.py generates duplicate file entries in link_files.txt
2017-12-28 20:57:20 +00:00
Cruz Monrreal II 2b718feba3
Merge pull request #5628 from TomoYamanaka/master
Reregistration GR-PEACH as mbed support board
2017-12-28 20:20:31 +00:00
Cruz Monrreal II b8de0f299a
Merge pull request #5693 from li-ho/ev-cog-iar-export
Enable IAR export for EV_COG_AD3029LZ and EV_COG_AD4050LZ
2017-12-28 18:27:01 +00:00
Cruz Monrreal II 0cb4fcd341
Merge pull request #5756 from adbridge/master
Add mbed-os-example-filesystem to examples list
2017-12-28 18:18:17 +00:00
adbridge 533657fa9c Add mbed-os-example-filesystem to examples list 2017-12-21 17:09:49 +00:00
Joris Aerts d3f6ea4ed2 Fix for #5676 make.py generates duplicate file entries in link_files.txt 2017-12-21 13:53:19 +01:00
TomoYamanaka 8e854b1c89 Add Cortex-A9 for ARMCC and ARMC6
I added the definition of "Cortex-A9" for core support of ARMCC and ARMC6 in arm.py.
2017-12-21 14:09:24 +09:00
TomoYamanaka 8f42cf7ef5 Revert "Remove Cortex-A mbed OS 5 support"
I changed the python and json files to re-registering GR-PEACH to Mbed OS 5.
2017-12-21 14:09:24 +09:00
Deepika 6804361d76 Build failed as code section was not included in map.
Fix by Jimmy
2017-12-20 09:49:43 -06:00
Martin Kojtal 9ebefcd63d
Merge pull request #5470 from ashok-rao/master
Add device_name for TB_SENSE_12.
2017-12-20 14:54:48 +00:00
Martin Kojtal 203fc36157
Merge pull request #5559 from yennster/tools-config-fix
Fix for default test config file
2017-12-20 14:54:11 +00:00
Martin Kojtal 2e6f24518b
Merge pull request #5707 from adustm/stm32l475_iar_export
Add IAR exporter for STM32L475VG (mcu of DISCO_L475VG_IOT01A)
2017-12-20 14:40:35 +00:00
Martin Kojtal 6ee23bcbd4
Merge pull request #5715 from dhwalters423/detect-targets-fix
Fixed call to deprecated get_details_txt
2017-12-20 14:40:00 +00:00
Martin Kojtal 1b3cff54fb Travis: define vendor matrix
Use vendor matrix, creates a job for each vendor folder (targets/TARGET_XXX).
This fixes the errors we have seen, as a job has a limit 50 minutes.
2017-12-19 12:13:30 +00:00
David Walters faec0c3ce5 Fixed call to deprecated get_details_txt 2017-12-15 15:31:36 +00:00
Seppo Takalo 0d6f760c16 Add minimal debug info to release and develop profiles.
This allows minimal debugging and allows tools like
mbed-os-linker-report to work properly.

Because debugging info is kept in .elf file and not flashed to device
there is no side effects to flash sizes.
2017-12-14 17:18:31 +02:00
adustm f76207921b Add IAR exporter for STM32L475VG (mcu of DISCO_L475VG_IOT01A) 2017-12-14 15:50:56 +01:00
Martin Kojtal 98a1aecfc1
Merge pull request #5685 from 0xc0170/fix_gettinstarted
Export: fix link in gettingstarted template
2017-12-13 09:20:11 +00:00
Edmund Hsu df3d0ad167 Enable IAR export for EV_COG_AD3029LZ and EV_COG_AD4050LZ
- ADuCM3029 is the MCU name for EV_COG_AD3029LZ
 - ADuCM4050 is the MCU name for EV_COG_AD4050LZ
2017-12-13 12:05:31 +11:00
Martin Kojtal 32edb92299
Merge pull request #5657 from theotherjimmy/fix-e2studio
Correct typo? in e2studio exporter code
2017-12-12 17:40:04 +00:00
Martin Kojtal 1137b4107a
Merge pull request #5489 from theotherjimmy/correct-pack-syntax
Correct pack_* members to refer to PACK files
2017-12-12 17:32:31 +00:00
Martin Kojtal 95b02936fa Export: fix link in gettingstarted 2017-12-12 08:46:06 +00:00
Jimmy Brisson e0ba3e857c Update Cortex-A build errors 2017-12-07 14:43:40 -06:00
Jimmy Brisson 44e72fdc7d Correct typo? in e2studio exporter code 2017-12-05 10:01:15 -06:00
Jimmy Brisson b3ba9a55b9 Use Config class to find mbed_app.json 2017-12-01 15:18:04 -06:00
Jenny Plunkett 5f5014ef42 Added check for options.source_dir is none 2017-12-01 15:02:50 -06:00
Jenny Plunkett fa56189de5 Removed typos 2017-12-01 15:00:34 -06:00
Jenny Plunkett 6dd260e1ab Added default check for mbed_app.json 2017-12-01 14:55:02 -06:00
Jenny Plunkett 830e9e0bcd Added options source_dir to get_default_config 2017-12-01 14:54:35 -06:00
Jenny Plunkett d438324d31 Look for mbed_app.json in root dir if no --app-config is provided 2017-12-01 12:13:13 -06:00
Martin Kojtal 2e1c2a1cdf
Merge pull request #5538 from geky/littlefs-staging
Integrate littlefs into mbed OS
2017-12-01 08:15:26 +00:00
Clemens Mandl ff7d723fec Removed unnecessary list comprehension 2017-11-29 08:01:31 +01:00
Tony Wu a4575a965f rtl8195am - refactor bootloader and ota support
1. move ota region 1 from 0x00b000 to 0x040000
2. move ota region 2 from 0x0c0000 to 0x120000
3. refactor bootloader header as follows:

   uint32_t tag;
   uint32_t ver;
   uint64_t timestamp;
   uint32_t size;
   uint8_t hash[32];
   uint8_t campaign[16];
   uint32_t crc32;

   where,
   a. hash is the sha256 checksum of the payload.
   b. crc32 is the crc32 checksum of headers from tag to campaign.

4. Call NVIC_SystemReset for soft reset.

Signed-off-by: Tony Wu <tung7970@gmail.com>
2017-11-28 21:33:51 +08:00
Tony Wu 985c2b0ec7 rtl8195am - cleanup post-processing binary hook
Preparing for bootloader redesign.

Signed-off-by: Tony Wu <tung7970@gmail.com>
2017-11-28 21:29:49 +08:00
Clemens Mandl 52839aaa91 Refactoring of function get_netbeans_file_list(file_list) to have a clearer code 2017-11-28 07:42:13 +01:00
Clemens Mandl 61461bcc43 Removed another block of unused (commented) code 2017-11-28 07:15:41 +01:00
Clemens Mandl 2843c9fbd7 Removed commented Line 2017-11-28 07:14:14 +01:00
Christopher Haster 47684d89a5 Added test config for simulated block devices
Not all devices have enough heap to fit a simulated heap block device,
however using a simulated heap block device is preferred if available
(reduced flash wear, faster testing).

Added MBED_TEST_SIM_BLOCKDEVICE for tests that only need a simulated
block device (wear_leveling + resilience), and added support for targets
that are known to have enough heap.
2017-11-27 19:48:56 -06:00
Clemens Mandl e423947af3 Fixed Linking with Linker Script 2017-11-27 17:03:39 +01:00
c.mandl b112ad7da4 Refactoring of Netbeans Exporter...still some more work to do, because linking still not works 2017-11-24 09:45:46 +01:00
Russ Butler abe431f48b Prevent traceback when memap fails to parse
If map file parsing fails then memap_instance is set to None. To
prevent a traceback when parsing fails check if this is None before
trying to access any of its fields.
2017-11-20 12:41:26 -06:00
Jimmy Brisson 08f3402b7c
Merge pull request #5407 from deepikabhavnani/importer_script
Python script to add cmsis/rtx changes in mbed-os
2017-11-20 10:51:43 -06:00
c.mandl 8e23b80561 Removed commented Line 2017-11-20 10:05:06 +01:00
c.mandl 1b30df938c Added Netbeans Exporter 2017-11-20 10:02:08 +01:00
Jimmy Brisson 6720bfdbdc
Merge pull request #5335 from yennster/test-configs-update
Fix for configurable network driver tests
2017-11-16 14:13:01 -06:00
Martin Kojtal d6d9afc7f2
Merge pull request #5499 from adbridge/master
Remove mbed-cloud-client-example-internal.
2017-11-16 16:11:39 +00:00
Jimmy Brisson 4c57d86cd2 Remove include paths from uvision assembler export 2017-11-15 15:33:43 -06:00
Deepika d4f7291b9a Corrected the input to remove command 2017-11-15 11:31:30 -06:00
Deepika 51430cdeb3 Updated code as per Python style guide
https://www.python.org/dev/peps/pep-0008/
2017-11-15 11:30:50 -06:00
Martin Kojtal 41eb565d9c
Merge pull request #5342 from ARMmbed/feature_cortex_a
Update CMSIS/RTX with Cortex-A support
2017-11-15 11:24:36 +00:00
adbridge c0164d6c75 Remove mbed-cloud-client-example-internal. 2017-11-14 11:56:00 +00:00
Jenny Plunkett fbdd019e24 Removed special config for K64F 2017-11-13 15:04:15 -06:00
Jenny Plunkett 5fbc88f6b6 Updated if statements for conciseness 2017-11-13 15:01:11 -06:00
Jenny Plunkett b3e8dec8ea Updated get_test_config function returns comment 2017-11-13 15:01:11 -06:00
Jenny Plunkett 49b0522818 Use ethernet as default config if target has LWIP feature 2017-11-13 15:01:11 -06:00
Jimmy Brisson 0c5ba43f5e Correct pack_* members to refer to PACK files
They referred to PDSC files before
2017-11-13 13:21:31 -06:00
Bartek Szatkowski 2ea01ac8a9 Enabled restrict keyword for IAR 2017-11-10 09:53:42 +00:00
Martin Kojtal 18393f3faf
Merge pull request #5424 from jeromecoutant/PR_L496
NUCLEO_L496ZG_P support
2017-11-09 16:32:56 +00:00
deepikabhavnani 43251e162d Updated the script to be generic for any repo 2017-11-07 13:17:07 -06:00