Commit Graph

1320 Commits (d8df2f25d3437fa5c4f63e003677f59c08b77c96)

Author SHA1 Message Date
Martin Kojtal 8895e91be3 Merge pull request #929 from PrzemekWirkus/mbed_assert_3
Test suite - mbed assert detection
2015-02-26 08:53:35 +00:00
Przemek Wirkus dfa9599ded Added mbed assertion detection
Test suite will detect mbed assertion print and end test execution with MBED_ASSERT error
2015-02-24 13:46:45 +00:00
Martin Kojtal 4e403f8715 Merge pull request #924 from GustavWi/iar_mbed
Fix #910 - debug file with predefined hardware debug settings
2015-02-24 11:18:55 +00:00
GustavWi 5c5bf71e1d Issue #910. Added debug file with predefined hardware debug settings. When user exports to IAR the project has all the necessary settings so the user can immediately flash the program 2015-02-20 15:59:16 +01:00
Mihail Stoyanov 0d4c158505 A minor routine to take care of parasite symbols that may be left over in the serial read buffer. This happens when a program output wasn't terminated with new line. This also does not affect the test results. 2015-02-20 02:30:01 +02:00
Mihail Stoyanov f130a80755 When linking program define the output name based on the OUTPUT_EXT before processing linking the file. This let's any hooks to use the final output file/name.
Omit the dot before the extension for OUTPUT_EXT (all Nordic and Teensy boards);
2015-02-19 18:08:02 +02:00
Mihail Stoyanov ca4aaa2dde Removed colorama dependency. This breaks the online build system, the live exported and prevents deployment of new platforms. Rewrite the code so colors are optional and no additional modules are required for toolchains and platforms 2015-02-19 17:09:07 +02:00
Mihail Stoyanov 014b0f1ca6 Change the output extension/format for Teensy 3.1 to HEX 2015-02-19 16:46:52 +02:00
Przemek Wirkus 78cc959f50 In response to: IOTSFW-325
1. Removed globaly initialized data inside class test() function
2. Removed global variables initialization dependency. Any cause some Python
   implementations and configurations to fail in runtime
3. Added info about Echo port #7 rationale.
4. Testsed with K64F and network tests:

Test summary:
+--------+--------+---------+----------------------------+--------------------+
| Result | Target | Test ID | Test Description           | Elapsed Time (sec) |
+--------+--------+---------+----------------------------+--------------------+
| OK     | K64F   | NET_1   | TCP client hello world     |        3.26        |
| OK     | K64F   | NET_13  | TCP client echo loop       |        2.05        |
| OK     | K64F   | NET_2   | NIST Internet Time Service |        3.43        |
| OK     | K64F   | NET_3   | TCP echo server            |        1.54        |
| OK     | K64F   | NET_4   | TCP echo client            |        1.54        |
| OK     | K64F   | NET_5   | UDP echo server            |        1.46        |
| OK     | K64F   | NET_6   | UDP echo client            |        1.6         |
| OK     | K64F   | NET_7   | HTTP client hello world    |        3.4         |
| OK     | K64F   | NET_8   | NTP client                 |        2.39        |
+--------+--------+---------+----------------------------+--------------------+
Result: 9 OK

Completed in 122.18 sec
2015-02-19 11:36:44 +00:00
Przemek Wirkus 4d5b8776d4 Bugfix for IOTSFW-345:
Adde missing check for optional auto_detect parameter in CLI options.

Test procedure:

* Check with mbed-ls installed:

$ singletest.py --auto -j 8
MBEDLS: Detecting connected mbed-enabled devices...
MBEDLS: Detected K64F, port: COM61, mounted: E:
Building library CMSIS (K64F, ARM)
Copy: startup_MK64F12.o
Copy: sys.o
Copy: cmsis_nvic.o
Copy: system_MK64F12.o

* Uninstall mbed-ls iools:

$ pip uninstall mbed-ls
Uninstalling mbed-ls:
  c:\python27\lib\site-packages\mbed_ls-0.1.4-py2.7.egg
  c:\python27\scripts\mbedls-script.py
  c:\python27\scripts\mbedls.exe
  c:\python27\scripts\mbedls.exe.manifest
Proceed (y/n)? y
  Successfully uninstalled mbed-ls

$ mbedls
'mbedls' is not recognized as an internal or external command,
operable program or batch file.

$ python
Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mbed_lstools
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named mbed_lstools

* Check singletest.py work flow without mbed-ls:

$ singletest.py -i test_spec.json -M muts_all.json
Building library CMSIS (K64F, ARM)
Building library MBED (K64F, ARM)
Building project DETECT (K64F, ARM)
TargetTest::K64F::ARM::DTCT_1::Simple detect test [OK] in 0.50 of 10 sec
Building project DEV_NULL (K64F, ARM)
TargetTest::K64F::ARM::EXAMPLE_1::/dev/null [OK] in 3.49 of 20 sec
Building project HELLO (K64F, ARM)
TargetTest::K64F::ARM::MBED_10::Hello World [OK] in 0.38 of 5 sec
Building project TICKER (K64F, ARM)
TargetTest::K64F::ARM::MBED_11::Ticker Int [OK] in 11.35 of 15 sec
2015-02-19 11:16:45 +00:00
Martin Kojtal 697101564d Merge pull request #912 from Timmmm/patch-1
Fix export_test.py extra_symbols issue.
2015-02-19 10:02:30 +00:00
Przemek Wirkus 7596acd726 Fixed RTC host test (0 sec scenario):
Boolean value used to calclate single RTC test PASS / FAIL was not used to
calculate overall result.

==== ISSUE ====
The test suite treats the RTC test as successful, but test itself reports
failures. Which one is correct – does it fail or does it pass? See below:

HOST: Run test...
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 4.02 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.03 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL

{{success}}
{{end}}
Test::Output::Finish
TargetTest::ARM_MPS2_M4::ARM::MBED_16::RTC [OK] in 30.37 of 40 sec

==== FIX ====

HOST: Run test...
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 0.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL

{{failure}}
{{end}}
2015-02-18 10:19:58 +00:00
Martin Kojtal c9e93d21e3 Merge pull request #918 from dinau/fixed_gcc_makefile_template
Tools - GCC_ARM Makefile Fixed parallel build errro and others.
2015-02-17 14:36:33 +00:00
Przemek Wirkus 0fe5f5f674 Increased initial timeout for each host test so we can be sure binary will be
flashed completely and we can proceed with target reset.

Before fix:
====
Test summary:
+---------+--------+-----------+---------+----------------------------+--------------------+---------------+-------+
| Result  | Target | Toolchain | Test ID | Test Description           | Elapsed Time (sec) | Timeout (sec) | Loops |
+---------+--------+-----------+---------+----------------------------+--------------------+---------------+-------+
| OK      | K64F   | ARM       | NET_1   | TCP client hello world     |        3.37        |       20      |  1/1  |
| OK      | K64F   | ARM       | NET_13  | TCP client echo loop       |        2.06        |       20      |  1/1  |
| OK      | K64F   | ARM       | NET_2   | NIST Internet Time Service |        2.41        |       20      |  1/1  |
| TIMEOUT | K64F   | ARM       | NET_3   | TCP echo server            |       10.21        |       10      |  0/1  |
| TIMEOUT | K64F   | ARM       | NET_4   | TCP echo client            |       10.21        |       10      |  0/1  |
| TIMEOUT | K64F   | ARM       | NET_5   | UDP echo server            |       10.21        |       10      |  0/1  |
| TIMEOUT | K64F   | ARM       | NET_6   | UDP echo client            |       10.21        |       10      |  0/1  |
| OK      | K64F   | ARM       | NET_7   | HTTP client hello world    |        6.46        |       15      |  1/1  |
| TIMEOUT | K64F   | ARM       | NET_8   | NTP client                 |       10.21        |       10      |  0/1  |
+---------+--------+-----------+---------+----------------------------+--------------------+---------------+-------+
Result: 4 OK / 5 TIMEOUT
Completed in 116.32 sec

After fix:
====
Test summary:
+--------+--------+-----------+---------+----------------------------+--------------------+---------------+-------+
| Result | Target | Toolchain | Test ID | Test Description           | Elapsed Time (sec) | Timeout (sec) | Loops |
+--------+--------+-----------+---------+----------------------------+--------------------+---------------+-------+
| OK     | K64F   | ARM       | NET_1   | TCP client hello world     |        3.32        |       20      |  1/1  |
| OK     | K64F   | ARM       | NET_13  | TCP client echo loop       |        2.06        |       20      |  1/1  |
| OK     | K64F   | ARM       | NET_2   | NIST Internet Time Service |        2.4         |       20      |  1/1  |
| OK     | K64F   | ARM       | NET_3   | TCP echo server            |        1.54        |       20      |  1/1  |
| OK     | K64F   | ARM       | NET_4   | TCP echo client            |        1.54        |       20      |  1/1  |
| OK     | K64F   | ARM       | NET_5   | UDP echo server            |        1.47        |       20      |  1/1  |
| OK     | K64F   | ARM       | NET_6   | UDP echo client            |        1.6         |       20      |  1/1  |
| OK     | K64F   | ARM       | NET_7   | HTTP client hello world    |        6.46        |       15      |  1/1  |
| OK     | K64F   | ARM       | NET_8   | NTP client                 |        2.4         |       15      |  1/1  |
+--------+--------+-----------+---------+----------------------------+--------------------+---------------+-------+
Result: 9 OK
Completed in 125.06 sec
2015-02-17 11:22:45 +00:00
Mihail Stoyanov 0e4e1dd9f0 Changed Arch Max default program cycle timer to 2 seconds 2015-02-16 21:57:56 +02:00
dinau a6679e80a5 [Export][GCC_ARM][Makefile][tmpl] Fixed parallel build errro and others.
* Additional maintenance.
  Refer to commit  #708 .
2015-02-16 20:43:42 +09:00
Martin Kojtal c9e7f409af Merge pull request #900 from PrzemekWirkus/host_test_autodetection
Host test autodetection improvements
2015-02-16 09:37:56 +00:00
Martin Kojtal b5fbcc75aa Merge pull request #914 from NitinBhaskar/master
LPC11U68 build support extended to ARM toolchain, uvision export template added
2015-02-16 08:33:41 +00:00
Martin Kojtal 8dce46b543 Merge pull request #915 from BlackstoneEngineering/exporterUpdate2
Update to Offline Exporters
2015-02-15 11:06:07 +00:00
Mihail Stoyanov 37c0558f48 Default ide value for zip export mode 2015-02-13 22:19:30 +02:00
Austin Blackstone 9a6d8a9193 added updated .hgignore file to exporters, the file is simply copied in from the .hgignore file int he export directory, this way the file itself can be updated in the future, not the script 2015-02-13 20:02:04 +00:00
Mihail Stoyanov 4585f8aa11 Add simple ZIP exporter for the mbed Online IDE 2015-02-13 22:01:24 +02:00
Austin Blackstone 3bf5f94744 changed name from readme.html to GettingStarted.htm, changed web address from developer.mbed.org to mbed.org 2015-02-13 17:43:48 +00:00
nitin.bhaskar.27.09@gmail.com ed7e114d66 LPC11U68 build support extended to ARM toolchain, uvision export template added 2015-02-13 21:02:16 +05:30
Tim 6d5ae65e7e Fix export_test.py extra_symbols issue.
Apparently the export() function takes an extra_symbols parameter that wasn't being passed, causing runtime errors. This fixes it.
2015-02-13 13:51:40 +00:00
Martin Kojtal fba1390241 Merge pull request #891 from AppNearMe/master
Add support for LPC11U34_421 and AppNearMe's MicroNFCBoard
2015-02-12 14:30:08 +00:00
Martin Kojtal e5c1f78292 Merge pull request #907 from Ferdas/patch-1
Update gcc_arm_nrf51_dk.tmpl
2015-02-12 12:41:22 +00:00
0xc0170 40ae087628 Travis - NRF51822 addition 2015-02-12 10:33:06 +00:00
Ferdas 7c60dad9f0 Update gcc_arm_nrf51_dk.tmpl
Changed the SoftDevice path according to the directory structure
2015-02-12 00:19:46 +01:00
Donatien Garnier eeba514435 Added extra linker scripts 2015-02-11 16:18:56 +00:00
Przemek Wirkus f2f0f51d16 Added colorama to toolchain notification function and basic test suite prompts 2015-02-10 23:38:01 +00:00
Przemek Wirkus cff6bc44ea Added coloram module import
Minor code indents
2015-02-10 22:41:39 +00:00
Przemek Wirkus 7ca2cab346 Removed extra dependency to TEST_LIB - GCC_ARM linking bug fix 2015-02-10 22:19:17 +00:00
Przemek Wirkus 2882c4e961 Fixed bug in --config and --auto switches 2015-02-10 21:50:56 +00:00
Przemek Wirkus 8910d95ae6 Fixed bug in --tc switch 2015-02-10 21:29:11 +00:00
Przemek Wirkus f38a53ba21 Added new switch --auto to force autodetection with mbed_lstools
Added switch --tc to force certain toolchains.

Switch --auto and -tc works well with switch --config so do not hesitate to
check your configuration before running your test suite.
2015-02-10 21:19:01 +00:00
Mihail Stoyanov be04314419 Add Cortex-M7 and Cortex-M1 symbols 2015-02-10 18:32:44 +02:00
Mihail Stoyanov 3b55949e72 Add Cortex-M1 for ARM_MPS2 platform 2015-02-10 18:04:41 +02:00
Mihail Stoyanov 0153593207 Add Cortex-M1, Cortex-M7, Cortex-M7F target support for CORE_LABELS 2015-02-10 17:58:39 +02:00
Mihail Stoyanov 351ad1864c ARM MPS2 target support for the build system. 2015-02-10 17:55:14 +02:00
Mihail Stoyanov 7fdc827b50 Add Cortex-M7F support for the armcc toolchain 2015-02-10 17:50:11 +02:00
Przemek Wirkus 35c034c911 Added timeout detection from aut-detection MUT printout
Timeout is captured by application supervising host_test and duration is modiffied

Added functionality preventing MUT printouts to reset device's timeout value or script execution timer counter
2015-02-10 09:15:46 +00:00
0xc0170 408837f212 Merge branch 'stm32f0xx_reorg_hal' of https://github.com/ohagendorf/mbed into ohagendorf-stm32f0xx_reorg_hal
Conflicts:
	libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F070RB/gpio_object.h
2015-02-09 09:26:51 +00:00
Martin Kojtal b36cbfe9f0 Merge pull request #894 from lindvalla/fix_lpc4088DM_target
Fix target issues for TARGET_LPC4088_DM
2015-02-09 09:10:08 +00:00
Anders Lindvall dcc53f4bda Fixed target issues for TARGET_LPC4088_DM
- Removed target alias from the EXPORT_MAP in targets.py as it didn't work
- Added copies of the LPC4088 target exporters
- Fixed flag issue in the gcc toolchain
- Changed defines in eth USBDevice, rpt and rtos to handle
  TARGET_LPC4088_DM
2015-02-08 11:56:39 +01:00
Yihui Xiong cb35cab5a4 replace target name 'ble_smurfs' with 'seeed_tiny_ble' 2015-02-07 10:14:26 +08:00
Donatien Garnier 662d5a5d41 Added support for NXP LPC11U34_421 and AppNearMe MicroNFCBoard 2015-02-06 18:33:38 +00:00
Martin Kojtal f41e6b5ac1 Merge pull request #883 from GustavWi/iar_mbed
Added IAR support for NRF51822. IAR's linker can not merge hex files
2015-02-05 13:39:38 +00:00
GustavWi aab9677cda trivial correction 2015-02-04 13:58:40 +01:00
GustavWi 61d1204e05 Added IAR support for NRF51822. IAR's linker can not merge hex files as a section only binarys. I added a binary under TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR that represents the soft_device. I added support in the python scripts to also copy binaries to the build/mbed dir and also added support for the exporter to copy binaries from resources into the exported zip file. 2015-02-04 11:29:31 +01:00