Commit Graph

1733 Commits (8add2922352366f8fc5490fe12ac09145425d4e2)

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