Commit Graph

466 Commits (4cf91b90f7d93030a72f2d025997b15a4171049e)

Author SHA1 Message Date
Sarah Marsh 0f8ed0231f Removed --no_static_destruction from IAR IDE flags 2016-09-28 13:55:00 +01:00
Brian Daniels 4ba1c4237d Fixing constant cleaning when compiling tests
This addresses the issue where building tests via test.py always triggered
a clean build. This is because the mbed_config.h file was being deleted from
the shared OS build to ensure that the correct config was always being
used. However, this contanstly triggered a rebuild of the OS since the
config file was not present.

Due to the shared build, having multiple app configurations that could
override the OS settings is not possible. For this reason, we now ignore
app config files unless explicitly set via the command line option
'--app-config'. Though there will now be two mbed_config.h files in the
include path of the build, it shouldn't matter since the contents will be
the same.
2016-09-28 13:53:53 +01:00
Jimmy Brisson df71f8e173 Print percent complete when building 2016-09-28 13:53:49 +01:00
jeromecoutant b15535b973 Add CAN capability 2016-09-28 13:52:54 +01:00
jeromecoutant cb54c488d6 Serial init timeout: increase default value
It seems that my test bench is very slow...
I need to increase the timeout value in order to get the port ready

Thx
2016-09-28 13:50:30 +01:00
Erwan GOURIOU 8312e6e3d6 Extend asynch I2C to STM32F4 boards
Move i2c_s to common_objects.h
Introduce I2C Master/Slave asynch test
Test I2C asynch master/slave on STM32F4 boards
2016-09-28 13:50:20 +01:00
Erwan GOURIOU 9b204f8be2 Fix I2C byte transfer API to enable Master/Slave test on F411RE
i2c_byte_write could be used to send byte and address.
In case used for address, ADDR Flag should be reset.
2016-09-28 13:50:18 +01:00
Erwan GOURIOU 295a748bc7 Test Asynch I2C on F411RE
Add single board I2C master/slave asynch test
2016-09-28 13:50:15 +01:00
Jimmy Brisson ab22d5ec3b Refactor Target and Config away from global variables 2016-09-28 13:50:05 +01:00
Sarah Marsh a56b4ba0b1 New build tests.
*Changes*
- Parallel export
- mbed-os tests added
- specified release version (default to 5)
- default tests AND targets dependent on specified release version
2016-09-28 13:50:03 +01:00
Marcelo Salazar 8972cefcda Minor tweak on spaces 2016-09-28 13:49:48 +01:00
Marcelo Salazar e79ce44ce5 Minor fix to match with master 2016-09-28 13:49:47 +01:00
Marcelo Salazar 3d7a978c16 Change default uvision exporter to uvision5
uVision4 is no longer maintained by the Keil team (support was stopped
long time ago).

This is why we need to make the uvision exporter able to generate uVision5
projects by default (which is based on software packs).

Also, adding note that the uvision4 exporter is now deprecated and will be
removed in the future.
2016-09-28 13:49:46 +01:00
Brian Daniels a03e8a88b1 Fixing missing import for os.path.exists 2016-09-28 13:48:40 +01:00
Jimmy Brisson b88600105e Add documentation about profiles to the toolcahins 2016-09-28 13:48:37 +01:00
Jimmy Brisson 719cbd997a Add a inc_repos option to the exporters 2016-09-28 13:48:31 +01:00
Sarah Marsh ee8ed6d7b0 Abstract check_executable added 2016-09-28 13:48:24 +01:00
Sarah Marsh d5941774ce Toolchain check generic in mbedToolchain 2016-09-28 13:48:23 +01:00
Sarah Marsh b1820d836e Docstrings. Empty executable search path handling. 2016-09-28 13:48:22 +01:00
Sarah Marsh fc7c05df17 Revise checking toolchain path 2016-09-28 13:48:21 +01:00
Jimmy Brisson 8c303bad16 Correct adding repo_files 2016-09-28 13:48:19 +01:00
Steven Cooreman 28647182f4 Fix exporter to pull root path
Simplicity Studio exporter doesnt really support header files in the root directory (looking at you, mbed_config.h), so this is a workaround for that issue.
2016-09-28 13:48:18 +01:00
Jimmy Brisson 3b91ea6588 Add a gettingstarted.html to all exporters 2016-09-28 13:48:17 +01:00
sarahmarshy a6c4af3072 Fix uvision group naming
The previous way of finding group names found the encompassing directory of each file. If the project is exported from the online compiler, this resulted in temporary folder names like tmpyKKWv_ showing up as group names.

I propose defaulting to the project name if the file is in the project root.
2016-09-28 13:48:13 +01:00
Marcelo Salazar 879bb85da8 Fixed bug on memap (non-default output path)
Removed code that checks if the path to the map file
matches with the selected toolchain.
2016-09-28 13:48:03 +01:00
jeromecoutant a4f46e747b travis: revove rtos support for NUCLEO_L053R8 2016-09-28 13:46:28 +01:00
jeromecoutant fa2f0f0f34 Disable RTOS tests for STM32 8K targets
8K RAM target is too small for
"NUCLEO_L031K6"
"NUCLEO_L053R8"
"DISCO_L053C8"
"NUCLEO_F030R8"
2016-09-28 13:46:26 +01:00
Tony Wu 1d57ff71f7 Tools - Fix fill section size variation
The linking order of object files affects the actual code placement,
which in turn affects the size of fill section due to the number of
zeros required to maintain appropriate data/code alignment may change.
This is observed when building on Mac and Linux host.

example: mbed compile -m K64F -t GCC_ARM (build 1)
+---------------------+-------+-------+-------+
| Module              | .text | .data |  .bss |
+---------------------+-------+-------+-------+
| Fill                |   120 |     4 |  2381 |
| Misc                | 28755 |  2216 |    84 |
| features/frameworks |  4236 |    52 |   744 |
| hal/common          |  2745 |     4 |   325 |
| hal/targets         | 12116 |    12 |   200 |
| rtos/rtos           |   119 |     4 |     0 |
| rtos/rtx            |  5721 |    20 |  6786 |
| Subtotals           | 53812 |  2312 | 10520 |
+---------------------+-------+-------+-------+

example: mbed compile -m K64F -t GCC_ARM (build 2)
+---------------------+-------+-------+-------+
| Module              | .text | .data |  .bss |
+---------------------+-------+-------+-------+
| Fill                |   128 |     4 |  2381 |
| Misc                | 28755 |  2216 |    84 |
| features/frameworks |  4236 |    52 |   744 |
| hal/common          |  2745 |     4 |   325 |
| hal/targets         | 12116 |    12 |   200 |
| rtos/rtos           |   119 |     4 |     0 |
| rtos/rtx            |  5721 |    20 |  6786 |
| Subtotals           | 53820 |  2312 | 10520 |
+---------------------+-------+-------+-------+

This patch fixes fill section size variation by sorting object
files before passing to linker.

Signed-off-by: Tony Wu <tung7970@gmail.com>
2016-09-15 18:07:32 +01:00
Conor Keegan cc8386da47 Add unit tests for app_config 2016-09-15 18:07:30 +01:00
Conor Keegan 9c05d88349 Add app config switch to options.py and make.py 2016-09-15 18:07:29 +01:00
Conor Keegan 9d368098e5 Add test command switch for app config file 2016-09-15 18:07:26 +01:00
OzzySan d066a50cfc Added gcc_arm template for export. 2016-09-15 18:07:18 +01:00
OzzySan f9bcf7ad70 Added support for MTM_MTCONNECT04S 2016-09-15 18:07:17 +01:00
sarahmarshy 64943bb85c Test names not dependent on disk location of root
#2613 should be merged first
Using test_api, I found that the test names were dependent on where mbed-os (if that is the root) is stored on disk if you provide anything other than '.' as the root directory.
This would change names like:
```
repos-mbed-os-example-blinky-mbed-os-features-storage-feature_storage-tests-cfstore-example3
```
to
```
features-storage-feature_storage-tests-cfstore-example3
```
2016-09-15 18:07:09 +01:00
ohagendorf 0241fbf2f1 disco_f769 some rework ... (part II)
as suggested by adustm
2016-09-15 18:06:41 +01:00
ohagendorf 5f9492b503 adding gcc_arm exporter definitions 2016-09-15 18:06:39 +01:00
ohagendorf fa2ff868c0 adding to build_travis 2016-09-15 18:06:37 +01:00
ohagendorf 85c3774ca6 adding rtos lib 2016-09-15 18:06:36 +01:00
Brian Daniels 8cb8ee983d Correctly providing directories to build_apis
The shared `prepare_toolchain` and `scan_resources` functions in build_api
expect a list, not a string. This is different from the
toolchain.scan_resources function. Now the functions are being used
correctly within the `find_tests` function in test_api
2016-09-15 18:06:20 +01:00
Jimmy Brisson 522c1789ef return the number of failures from the script 2016-09-15 18:06:08 +01:00
Jimmy Brisson 72daa77e22 Separate the import and compile steps for better integration with Jenkins 2016-09-15 18:06:06 +01:00
Jimmy Brisson 2fd68ba552 Use mbed-os 5 example instead of the mbed 2 one 2016-09-15 18:06:05 +01:00
Jimmy Brisson aa23e01a00 Update Docstring 2016-09-15 18:06:04 +01:00
Jimmy Brisson 3a5f541a23 Use IPV6 feature for filtering mesh, client, and sockets 2016-09-15 18:06:02 +01:00
Jimmy Brisson ffe5aeb7b4 Allow filtering by target as well as by features 2016-09-15 18:06:01 +01:00
Jimmy Brisson 33f28e696e Allow command-line filtering of toolchains 2016-09-15 18:06:00 +01:00
Jimmy Brisson 98e64bc4c7 Move to feature filter for target and toolchain detection; print passed tests 2016-09-15 18:05:58 +01:00
Jimmy Brisson b7d352d5a6 Move example tests to their own folder 2016-09-15 18:05:57 +01:00
Jimmy Brisson e95173279d Use json for the example to target mapping and print failures 2016-09-15 18:05:56 +01:00
Jimmy Brisson 12cb6574e3 Add smoke test that builds example programs with mbed-cli 2016-09-15 18:05:55 +01:00