Commit Graph

1883 Commits (5bb3ede8904d2488c60b1d7539dff2edcce87062)

Author SHA1 Message Date
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
Martin Kojtal fa11a18dcb test: realtek net config default to none
Changing this to none as result of build failures. Wifi needs own configuration
per an enviroment. By setting this to none, net tests are skipped for Realtek
platform.
2017-11-07 09:19:07 +00:00
Jimmy Brisson 863b3fdcc1
Merge pull request #5291 from SenRamakri/sen_RealtekWiFiConfig
Add RealTek WiFi test configuration
2017-11-06 10:26:12 -06:00
jeromecoutant 88c3bcfd1c NUCLEO_L496ZG_P support 2017-11-03 11:06:45 +01:00
Jimmy Brisson 9e8a9a9a62
Merge pull request #5413 from studavekar/disable_cleanup
Collect build artifacts, disable cleanup
2017-11-02 10:44:55 -05:00
Jimmy Brisson c40b642455
Merge pull request #4650 from catiedev/master
NUCLEO_L496ZG: Add new Platform
2017-11-02 10:36:23 -05:00
deepikabhavnani d4e6decf32 Added arguments to importer script
Repository and json file will be mandotory inputs to script file.
As part of this change we do not need to clone/remove CMSIS repository
2017-11-01 17:05:42 -05:00
deepikabhavnani 78fdb7bcd6 Renamed importer script file 2017-11-01 17:05:42 -05:00
deepikabhavnani 021caa6dcf Python script to add cmsis/rtx changes in mbed-os 2017-11-01 17:05:42 -05:00
Jimmy Brisson 44c4d84082
Merge pull request #5359 from ganesh-ramachandran/master
Added IAR export for TMPM066
2017-11-01 13:28:08 -05:00
Jimmy Brisson cbc3d83f83 Remove include from assember in makefile exporter
The build system does not do this, so this is a consistency fix
2017-11-01 09:26:25 -05:00
Shrikant Tudavekar ccd82c24c8 Collect build artifacts disable cleanup
In preparation to exporter tests
2017-10-31 17:34:06 -05:00
Jimmy Brisson acb384c88a
Merge pull request #5332 from adbridge/master
Improve domain handling and status checking of updated examples.
2017-10-30 10:08:42 -05:00
Anna Bridge 97e2d4a8c5 Merge pull request #5025 from grygorek/master
LPC1769 port
2017-10-26 11:35:35 +01:00
Anna Bridge c7e51daf41 Combine string constants passed to 'join' function 2017-10-24 15:08:41 +01:00
Jimmy Brisson ab8a8de1a7 Merge pull request #5317 from theotherjimmy/fix-arm-supported-check
Tools: Check for toolchain and core support for Arm Compilers
2017-10-23 10:33:22 -05:00
Ganesh Ramachandran 0a1d9fa018 added IAR export for TMPM066 2017-10-23 11:17:31 +05:30
Jimmy Brisson b0fc103de6 Check for core support in ARM toolchain 2017-10-20 10:05:37 -05:00
Jimmy Brisson 3a2f58ebc8 Test the supported check in the ARM toolchains
They fail right now, Cores are not checked
2017-10-20 10:05:17 -05:00
Anna Bridge e9e0595188 Merge pull request #5042 from tung7970/fix-tools
RTL8195AM - Respect Toolchains paths in post bulid script.
2017-10-20 10:23:25 +01:00
Martin Kojtal 2af7213c51 Merge pull request #5104 from architech-boards/master
add support for SILICA_SENSOR_NODE platform
2017-10-19 16:44:17 +01:00
Martin Kojtal 57439f48aa Merge pull request #5246 from theotherjimmy/no-print-memap
Remove debug print from memap IAR impl
2017-10-19 16:43:23 +01:00
adbridge bb579dcfaf Improve domain handling and status checking of updated examples.
All the examples cloned from Mercurial should use the new
os.mbed.com domain. Thus update corrects that.

A new option has been added to the update.py script , -s which shows
the status of any PRs raised against the examples that are tagged with
the current release label.
2017-10-17 18:18:21 +01:00
Jimmy Brisson 4673fb6580 Check for uARM support when compiling with uARM 2017-10-17 11:08:58 -05:00
Christopher Haster 9fd6c5ae56 Fix behaviour of empty .mbedignore
Should ignore nothing, currently ignores everything
An empty .mbedignore is easy to create when tinkering with a local repo
2017-10-13 11:52:13 -05:00
Jimmy Brisson 299af9742d Merge pull request #5247 from kegilbert/example-build-profile-arg
Add profile argument to mbed-os example build tools
2017-10-13 09:24:04 -05:00
Jimmy Brisson 5c8ef54e2f Merge pull request #5224 from adbridge/master
Fix branch updates and make Linux compatible
2017-10-13 09:22:59 -05:00
Jimmy Brisson a67737f993 Merge pull request #5086 from pan-/systick_sleep_fix
Sleep: Disallow sleep for targets turning off the systick clock at sleep entry
2017-10-13 09:19:10 -05:00
Senthil Ramakrishnan 10a1e6e477 RealTek WiFi test configuration 2017-10-10 14:55:58 -05:00
Roberto Spelta b969979127 added IAR export for STM32L476JG 2017-10-10 16:04:52 +02:00
Tony Wu 7d6e66db2f rtl8195am - use TOOLCHAIN_PATHS to locate toolchain
Use TOOLCHAIN_PATHS to locate toolchain binaries for users might set
compiler paths, through mbed_settings.py, env vars, or system path.

Signed-off-by: Tony Wu <tonywu@realtek.com>
2017-10-09 23:38:03 +08:00
Pierre-Marie Ancele c17c410dc6 add target definition for sw4stm32 exporter 2017-10-06 11:37:03 +02:00
adustm 88a1540813 Add STM32L496VG to be able to exprot a program in IAR 2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele 2290847876 build_travis.py Fix indentation 2017-10-06 11:35:16 +02:00
Pierre-Marie Ancele 0ebbbc2c34 NUCLEO_L496ZG update build_travis.py 2017-10-06 11:35:16 +02:00
Jimmy Brisson 0fd13b5288 Merge pull request #5240 from studavekar/retry-on-clone-failure
Add retry to handle git clone failure
2017-10-05 11:15:41 -05:00
Jimmy Brisson 23d201cb21 Merge pull request #5237 from 0xc0170/fix_examples_eddy
examples: remove eddystone ble examples
2017-10-05 11:15:14 -05:00
Jimmy Brisson 9b62dce47e Merge pull request #5199 from mgiaco/master
Add quotes to preprocessor path on export
2017-10-05 11:12:24 -05:00
Jimmy Brisson 41998d5836 Merge pull request #5084 from adustm/NUCLEO_L486_export
Allow exporters for NUCLEO_L486RG
2017-10-05 11:12:06 -05:00
Jimmy Brisson da78647c1d Merge pull request #5077 from dhwalters423/dhwalters423-add-detect-info
Added interface version information to mbed detect command.
2017-10-05 11:11:33 -05:00
Kevin Gilbert f8fa90209e Remove -p as an argument flag for profile 2017-10-03 16:14:07 -05:00
Kevin Gilbert 310f833f52 Add profile argument to mbed-os example build tools to allow non-default build profiles to be passed in 2017-10-03 15:24:29 -05:00
Jimmy Brisson 0524ba40bd Remove debug print from memap IAR impl 2017-10-03 13:46:30 -05:00
Shrikant Tudavekar cdd29b87a5 Add retry to handle git clone failure
more info on https://github.com/ARMmbed/mbed-os/issues/5239
2017-10-02 14:39:24 -05:00
Mahadevan Mahesh 880f106740 Change LPC54608 to LPC546XX to include support for LPC54608/18/28
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-10-02 11:20:27 -05:00
Martin Kojtal e6b1ef508e examples: remove eddystone ble examples
They are not part of the releases
2017-10-02 15:37:52 +01:00
Piotr Grygorczuk 728a3a4a76 mbed LPC1768 & Xpresso LPC1769 unified
Target of LPC1769 links to mbed LPC1768.
The PinNames.h has conditional compile for the pin names.
LWIP lpc17xx emac driver modified to allow LPC1769 target
2017-10-02 11:05:39 +01:00
adbridge 31407a17ca Move to using command strings rather than command lists.
Previously the script used
cmd =['git','checkout', branch]
syntax. This does not work well cross platform. The solution it to
actually use strings. E.g.
cmd = "git checkout " + branch
2017-09-29 16:17:33 +01:00
Jimmy Brisson 24418b43da Merge pull request #5182 from theotherjimmy/test-flags-assumptions
tools/toolhains - Test for flag passing in constructor
2017-09-29 10:14:29 -05:00
Jimmy Brisson 1a04b0a7b4 Merge pull request #5052 from mbedNoobNinja/Branch_Export
ds5 & e2studio export fix
2017-09-29 10:09:30 -05:00
David Walters 61f46b809d Changed type => test_type 2017-09-29 15:34:32 +01:00
David Walters bb79f6991b Minor copy edits, added comment 2017-09-29 10:12:02 +01:00
David Walters a047f6276d Increased test coverage / mocking of external modules 2017-09-29 10:05:05 +01:00
Jimmy Brisson e3cb228d5e Merge pull request #4795 from sarahmarshy/test-configs
Add configurable network driver tests
2017-09-28 14:06:38 -05:00
adbridge d2d2b68fc5 Fix the prepare_branch function
Currently when checking if the destination branch already exists the
command 'git branch' is used. This only returns local branches. What is
actually required is the list of remote branches. This can be obtained
by the command 'git branch -r' and filtering the result.
2017-09-27 17:59:19 +01:00
Jimmy Brisson 6cecd09d07 Merge pull request #4961 from theotherjimmy/check-rtos-export
Check for mbed 5 support on export
2017-09-27 09:02:38 -05:00
Mathias Giacomuzzi ca5bcf7592 remove the first join 2017-09-27 12:31:45 +02:00
Jimmy Brisson b9b4bb5c25 Move IAR flag passing to constructor 2017-09-26 08:59:01 -05:00
Jimmy Brisson ef6de7eb3b Check for flag passing in toolchain constructor 2017-09-26 08:58:59 -05:00
Mathias Giacomuzzi 0947db6400 add quotation marks for compiler path 2017-09-26 11:01:01 +02:00
David Walters 4c2d17eee0 Removing unused imports/update copywright` 2017-09-25 16:58:52 +01:00
David Walters b887bb7de6 Added safety check, added test converage for new function 2017-09-25 16:53:41 +01:00
Jimmy Brisson 482c2aef2d Merge pull request #5149 from theotherjimmy/update-export-link
Update link in GettingStarted to current docs
2017-09-25 10:13:09 -05:00
Jimmy Brisson 6ca2342fba Merge pull request #5166 from theotherjimmy/force-armc5-preproc
Force preprocessing of asm for make_armc5
2017-09-25 10:12:28 -05:00
Jimmy Brisson b8863862cc Merge pull request #4959 from phyokyaw/master
e2 studio exporter update
2017-09-25 10:11:13 -05:00
adustm 4817f06435 Allow exporters for NUCLEO_L486RG 2017-09-22 14:21:00 +02:00
Martin Kojtal c6f655c02e Merge pull request #4779 from JarnoEtt/sw4stm_exporter_fix
Fixed sw4stm32 exporter
2017-09-22 11:36:21 +01:00
Jimmy Brisson 69c38012eb Force preprocessing of asm for make_armc5
It seem to preprocess asm with the `.S` extension on linux, but the
windows build of Arm Compiler 5 seems to omit the preprocessing step
unless you have a `.sx` extension. Odd.
2017-09-21 17:37:10 -05:00
Jimmy Brisson 97b0dd8bd5 Update link in GettingStarted to current docs 2017-09-21 15:32:26 -05:00
Jimmy Brisson 4de448142b Merge pull request #5125 from theotherjimmy/improve-memap-performance
Refactor memap for speed
2017-09-21 11:40:41 -05:00
Sarah Marsh 92a642bc5e Turn off Odin testing by default 2017-09-20 18:31:06 -05:00
Sarah Marsh 8ef849da79 Add new Odin configuraiton to remove emac device_has 2017-09-20 18:31:06 -05:00
Sarah Marsh 26aa4eaa6a Use ethernet as default test configuration for Odin netsocket tests 2017-09-20 18:31:06 -05:00
Sarah Marsh 6a44ceb094 Add copyright headers and use mbed error to skip tests without network config files 2017-09-20 18:31:06 -05:00
Sarah Marsh 4161e5c48d Move test config keys out of targets.json
Change TestConfig class methods to module methods
2017-09-20 18:30:08 -05:00
Sarah Marsh e48f9948a7 Add ETHERNET and ODIN_WIFI to odin device has. Add odin WiFi test configuration 2017-09-20 18:29:38 -05:00
Sarah Marsh dee8e7f0ea Use default mbed-os test configuration if no app_config is supplied 2017-09-20 18:29:38 -05:00
Sarah Marsh ba6eb98b5c Use only one flag for test configuration file
Tools will figure out if user passed in a custom path (to indicate configration file for module) or whether they used a keyword (to indicate they'd like to use an mbed OS configuration)
2017-09-20 18:29:37 -05:00
Sarah Marsh e982eed4ad Add option to add a configuration file for modules 2017-09-20 18:27:59 -05:00
Sarah Marsh 8c0bc781d9 Allow tools to use networkinterface configs in tests 2017-09-20 18:27:59 -05:00
Jimmy Brisson 727256a05d Remove prefix stuff from GCC memap parser
It's just not used anymore
2017-09-20 11:00:02 -05:00
Jimmy Brisson 3d5bea337f Test the module_add function 2017-09-20 10:49:12 -05:00