Commit Graph

3947 Commits (13f4fc725465da12f1924ab81fb083446b3ef10a)

Author SHA1 Message Date
Jeremy Brodt bbe2e0caed Using "Data Terminal Ready" signal to determine when the host is connected. 2015-03-17 14:18:56 -05:00
Jeremy Brodt 1bbb0ee109 Added macros to alias the endpoint callback functions to support configurability. 2015-03-17 13:41:40 -05:00
Rohit Grover 1108cf9526 going back to the previously successful logic to create a 64-bit timestamp. 2015-03-17 14:39:58 +00:00
Martin Kojtal d1b1a93371 Merge pull request #978 from 0xc0170/fix_nucleo103_gpio_connected
Nucleo F103RB - gpio_is_connected method readdition
2015-03-17 10:40:30 +00:00
0xc0170 b75b7a456e Nucleo F103RB - gpio_is_connected method readdition 2015-03-17 10:34:52 +00:00
Rohit Grover 543e8c89d0 remove un-necessary comment block. 2015-03-17 10:07:14 +00:00
Rohit Grover 2376a58193 use 64-bit RTC virtual counter (with 56-bit precision) to compute us-ticker value. 2015-03-17 09:40:53 +00:00
Martin Kojtal bad3d049d8 Merge pull request #976 from explora26/fix_hrm1070_softdevice
HRM1017 - Fix the incorrect softdevice path.
2015-03-17 08:44:47 +00:00
ohagendorf 3dcdba1636 [NUCLEO_F303RE] exporter for GCC_ARM and CoIDE
Added exporter to GCC_ARM and CoIDE.
2015-03-17 02:13:23 +01:00
explora26 766ed49226 [HRM1017] Fix the incorrect softdevice path. 2015-03-17 00:17:37 +08:00
explora26 d8ce906f54 [export] add gcc/uvision templates for RedBearLab nRF51822. 2015-03-17 00:13:55 +08:00
Rohit Grover c619bbbedf add a cast for correctness. 2015-03-16 14:05:44 +00:00
Rohit Grover 35eb4b5250 use rtc1_getCounter64() as it should have been from the beginning. 2015-03-16 14:05:05 +00:00
Martin Kojtal fdc75bf508 Merge pull request #971 from PrzemekWirkus/mcu_filter_for_auto
Added to option --auto handler for -f <mcu> filter switch.
2015-03-16 14:04:25 +00:00
Rohit Grover f32efaee90 cleanup for a comment block. 2015-03-16 14:04:23 +00:00
Rohit Grover 712b53ff64 add rtc1_getCounter64() 2015-03-16 14:04:00 +00:00
Rohit Grover 8febc5aa93 replace a use of __INLINE with inline 2015-03-16 14:01:00 +00:00
Rohit Grover 71407656d2 trying a simplification to the math which computes RTC callback time. 2015-03-16 13:45:33 +00:00
bcostm 5af36d1e3b [NUCLEO_L073RZ] Add target in test files 2015-03-16 14:44:36 +01:00
bcostm c33c193dcf [NUCLEO_L073RZ] Update python files and add toolchains template 2015-03-16 14:43:51 +01:00
bcostm 7aee02aa12 [NUCLEO_L073RZ] Add hal files 2015-03-16 14:42:22 +01:00
bcostm 0c3cf4ffdc [NUCLEO_L073RZ] Add toolchains 2015-03-16 14:41:49 +01:00
Przemek Wirkus 35bb258f0a singletest.py version updated to 1.4 2015-03-16 12:56:19 +00:00
Rohit Grover b20dc8e4d4 another trivial change to a comment; fixed a typo. 2015-03-16 12:55:10 +00:00
Rohit Grover ea4537df7d shortened the comment in us_ticker_set_interrupt(). 2015-03-16 12:48:54 +00:00
Martin Kojtal cc6830bf9e Merge pull request #965 from bcostm/master
NUCLEO_L053R8/DISCO_L053C8 - hal files refactoring
2015-03-16 09:36:06 +00:00
Przemek Wirkus cf7f03254a Added to option --auto handler for -f <mcu> filter switch. Now using -f switch
will filter target platforms to test. Use comma to pass more MCU names to
filter.

```
$ singletest.py --auto -j 8 -O --config
MBEDLS: Detecting connected mbed-enabled devices...
MBEDLS: Detected NUCLEO_L053R8, port: COM35, mounted: E:
MBEDLS: Detected KL25Z, port: COM89, mounted: F:
MUTs configuration in auto-detected:
+-------+-------------+---------------+------+-------+
| index | peripherals | mcu           | disk | port  |
+-------+-------------+---------------+------+-------+
| 1     |             | NUCLEO_L053R8 | E:   | COM35 |
| 2     |             | KL25Z         | F:   | COM89 |
+-------+-------------+---------------+------+-------+

Test specification in auto-detected:
+---------------+-----+------+
| mcu           | ARM | uARM |
+---------------+-----+------+
| KL25Z         | Yes | -    |
| NUCLEO_L053R8 | -   | Yes  |
+---------------+-----+------+
```

Building original configuration (no filter):
```
$ singletest.py --auto -j 8 -O
MBEDLS: Detecting connected mbed-enabled devices...
MBEDLS: Detected NUCLEO_L053R8, port: COM35, mounted: E:
MBEDLS: Detected KL25Z, port: COM89, mounted: F:
Building library CMSIS (KL25Z, ARM)
Building library MBED (KL25Z, ARM)
Building project DETECT (KL25Z, ARM)
.
.
.
Building library CMSIS (NUCLEO_L053R8, uARM)
Building library MBED (NUCLEO_L053R8, uARM)
Building project DETECT (NUCLEO_L053R8, uARM)
.
.
.
Completed in 3.68 sec
```

```
$ singletest.py --auto -j 8 -O -f KL25Z --config
MBEDLS: Detecting connected mbed-enabled devices...
MBEDLS: Detected NUCLEO_L053R8, port: COM35, mounted: E:
MBEDLS: Detected KL25Z, port: COM89, mounted: F:
MUTs configuration in auto-detected:
+-------+-------------+-------+------+-------+
| index | peripherals | mcu   | disk | port  |
+-------+-------------+-------+------+-------+
| 2     |             | KL25Z | F:   | COM89 |
+-------+-------------+-------+------+-------+

Test specification in auto-detected:
+-------+-----+
| mcu   | ARM |
+-------+-----+
| KL25Z | Yes |
+-------+-----+
```

Building original configuration (with applied filter):
```
$ singletest.py --auto -j 8 -O -f KL25Z
MBEDLS: Detecting connected mbed-enabled devices...
MBEDLS: Detected NUCLEO_L053R8, port: COM35, mounted: E:
MBEDLS: Detected KL25Z, port: COM89, mounted: F:
Building library CMSIS (KL25Z, ARM)
Building library MBED (KL25Z, ARM)
Building project DETECT (KL25Z, ARM)
.
.
.
Completed in 1.33 sec
```
2015-03-13 15:30:44 +00:00
Martin Kojtal d477c486d2 Merge pull request #967 from PrzemekWirkus/devel_shell_plugin_update
Host test minor shell plugin update and bugfix
2015-03-13 15:29:47 +00:00
Martin Kojtal 38e1c7c94b Merge pull request #969 from mazgch/master
Update pin mapping form ODIN and C029
2015-03-13 10:37:27 +00:00
mazgch 0bde33162d updated pin mapping 2015-03-13 11:00:29 +01:00
bcostm de420415a7 Merge branch 'master' of https://github.com/mbedmicro/mbed 2015-03-13 10:14:56 +01:00
Przemek Wirkus bf33d5e19e 1. Host test shell plugin bugfix.
Test suite should report IOERR_COPY when shell copy command fails (fixed).
2. Host test shell plugin update
	How you can specify with option -c value 'shell' and copy plugin will detect
	for you your OS and choose between 'cp' (for 'posix') and 'copy' (for
	Windows).
2015-03-12 15:41:46 +00:00
Przemek Wirkus 0cf5f89cf4 Merge pull request #7 from mbedmicro/master
Synd with master (12 March 2015)
2015-03-12 15:25:05 +00:00
Martin Kojtal 0518541815 Merge pull request #964 from 0x4E656F00/master
Fix ksdk mcu HAL - stopbit
2015-03-12 12:49:30 +00:00
Martin Kojtal db8ec90de6 Merge pull request #966 from PrzemekWirkus/devel_parallel_exec_2
Experimental parallel test execution on MUTs (option --parallel), v2
2015-03-12 10:35:07 +00:00
Przemek Wirkus 4c45ed1cb1 Parallel functionality, marge conflicts resolved (v2)
Description
===========

Added thread model for function SingleTest::execute where for each target we
have separate thread.

Added new experimental feature. Currently we are only building in parallel
mbed SDK and libraries with dependencies.
Each MUT is flashed separately, but with this new feature we are able to
flash multiple boards at the same time and get results in parallel.

Test execution time is reduced by n where n is number of MUTs (MUT: mbed under
test).

using --parallel means that:
* separate thread will be spawned to build mbed SDK and dependencies (libraries)
    for each unique target with all declared toolchains.
    E.g:
            Thread(n==1):   LPC1768:        ARM, uARM, GCC_ARM
            Thread(n==2):   K64F:           ARM, GCC_ARM
            Thread(n==3):   NUCLEO_X:       uARM
    .
    .
    .
    Thread(4): for toolchain in NUCLEO_Z[toolchains]
               -> build mbed SDK
                            -> build libs
                             -> build project
                              -> run MUT testrunner
                                    return test results for NUCLEO_Z[toolchain]

Done:
1. Added option --parallel.
2. Decoupled execute function so it can be run in parallel with other execute
    functions.
3. Thread join via Queue, not Thread::Join() to avoid deadlocks or waits for
    particular thread to finish.
4. All builds are in parallel, but because each target and library for each
    toolchain have different directory we do not worry about building in
    parallel and compiler collisions.

Missing:
1. No sync for 'print' (TODO).
2. No sync on test result structures - not needed because we only append to
    them (?).

Experimental --parallel bugfix: self.test_suite_properties_ext dict was not
populated with target name.
2015-03-12 09:55:11 +00:00
Martin Kojtal fb702edaa5 Merge pull request #957 from star297/master
Teensy3.1 updates + USBDevice Teensy3.1 Target addition.
2015-03-12 09:26:37 +00:00
bcostm 07a46c0d41 [STM32L0] Add missing common hal file (refactoring) 2015-03-12 10:21:58 +01:00
bcostm d956c1a496 [NUCLEO_L053R8] Add specific hal files (refactoring) 2015-03-12 10:20:56 +01:00
bcostm e2cfc32459 [DISCO_L053C8] Add specific hal files (refactoring) 2015-03-12 10:20:03 +01:00
bcostm 843423e4fd [STM32L0] Add common hal files (refactoring) 2015-03-12 10:19:14 +01:00
bcostm e636ca4cad [NUCLEO_L053R8/DISCO_L053C8] Remove hal files (refactoring) 2015-03-12 10:18:08 +01:00
Martin Kojtal 39ab67b8ce Merge pull request #958 from Sissors/k20pwm
K20DXX PWM fix
2015-03-12 09:18:07 +00:00
Martin Kojtal 7ca34c2eda Merge pull request #962 from PrzemekWirkus/docs
Docs folder (building, tests, contribution)
2015-03-12 08:59:40 +00:00
0x4E656F00 1519466bc8 Update serial_api.c
Fix number of stop bits in serial_format()
2015-03-11 17:02:15 -04:00
Martin Kojtal e61148de59 Merge pull request #961 from bcostm/master
NUCLEO_L053R8/DISCO_L053C8 - Update STM32Cube driver
2015-03-11 18:15:13 +00:00
Przemek Wirkus b2ff2e9b5e Merge pull request #6 from mbedmicro/master
Synd with master (11 March 2015)
2015-03-11 15:46:09 +00:00
Paul Staron 4196e0530d K20xx sleep.c update
Utilised Header file mask defines.
Tested InterruptIn and timer WakeUp
2015-03-10 22:53:59 +00:00
Paul Staron ca5fe8afd7 Teensy3.1 Updated clock set up.
Utilised Header file mask defines for clock set up's.
Tested default Teensy3.1 set up 3 and set up 0 (IRC mode).
Modes 1 and 2 require 8MHz crystal to test.
2015-03-10 22:48:24 +00:00
Przemek Wirkus 4dbafc757d Update BUILDING.md 2015-03-10 20:56:32 +00:00