Commit Graph

3689 Commits (fdc75bf5084aaaccc808626f87f85d1f425f0fa5)

Author SHA1 Message Date
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
Przemek Wirkus 35bb258f0a singletest.py version updated to 1.4 2015-03-16 12:56:19 +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
Przemek Wirkus 8e454c3b1e Added setuptools instructions as Sam G. proposed 2015-03-10 20:53:12 +00:00
Przemek Wirkus d6fde524d1 Initial doc structure added
Still documentation is not 100% updated

Update TESTING.md

Update TESTING.md

Update BUILDING.md

Update BUILDING.md

Update CONTRIBUTING.md

Update TESTING.md

Update TESTING.md

Update CONTRIBUTING.md

Update CONTRIBUTING.md
2015-03-10 16:25:08 +00:00
bcostm 2eb529ef2d [NUCLEO_L053R8] Alignment with STM32Cube driver + preparation for future L0 devices 2015-03-10 14:06:30 +01:00
bcostm 1561dd146a [STM32L053xx] Update adc structure fields
Due to a change in the STM32Cube driver.
2015-03-10 13:20:20 +01:00
bcostm bed648fc95 [NUCLEO_L053R8] Typo corrections 2015-03-10 13:15:08 +01:00
bcostm e1a2d3266c [DISCO_L053C8] Update registers and system files 2015-03-10 13:13:06 +01:00
bcostm 1a95683a30 [NUCLEO_L053R8] Update registers and system files 2015-03-10 11:44:55 +01:00
bcostm 54844496e7 [NUCLEO_L0] Update STM32Cube driver to V1.2.0 2015-03-10 11:42:08 +01:00
Martin Kojtal 0703a02023 Merge pull request #944 from xiongyihui/master
add net support target Seeed Arch Max (stm32f407)
2015-03-10 08:20:03 +00:00
Martin Kojtal 3b22bf5bd7 Merge pull request #959 from dominus97/master
Added support for Nucleo F303RE
2015-03-10 08:18:45 +00:00
dominus97 4e86cf6273 Removed the comment 2015-03-09 18:41:12 +01:00
Sissors 1ffa1baf8a Modified some comments 2015-03-09 18:07:21 +01:00
Martin Kojtal 4b74c54118 Merge pull request #953 from bcostm/master
NUCLEO_F103RB - Migration to STM32Cube driver
2015-03-09 11:48:52 +00:00
Martin Kojtal 0531ad4544 Merge pull request #926 from Sissors/lookmartinImadeanewbranch
Add option to modify RTC source for time functions (using func pointers)
2015-03-09 11:16:52 +00:00
Martin Kojtal 2313b82805 Merge pull request #956 from screamerbg/master
nRF51822/nRF51-DK bootloader compile support and related platforms
2015-03-09 10:56:01 +00:00
bcostm 6c24fef341 Merge branch 'master' of https://github.com/mbedmicro/mbed 2015-03-09 10:51:41 +01:00
Paul Staron 5a803e8ad4 Teensy3.1 deepsleep update
Added extra code for Teensy3.1 deepsleep wake up restore function.
For some reason the Teensy3.1 would not wake from deepsleep, problem with restoring clock set ups. Possibly due to the higher clock frequencies requiring additional PLL locking time.
Most of the SystemInit() code was required. Teensy3.1 has no debug facilities, USBSerial is not usable during deepsleep/wakeup processes. Unless anyone has a better option.
Fully tested with InterruptIn and soft WakeUp.
Deepsleep is not really viable for this platform as it is not possible to isolate the interface chip from the power supply, 2.5mA at best in deepsleep mode.
2015-03-07 23:18:26 +00:00
Paul Staron 256321199f Added USB clock set up + corrected OSC->CR defines
Added USB clock set divider up for 48MHz operation, corrected oscillator MCU loading capacitor defines.
External capacitors not fitted to the Teensy3.1 PCB.
USBSerial tested using official Hello World program for serial communication to pc terminal.
2015-03-07 22:59:07 +00:00
Paul Staron 2dfb1b743f Added Teensy3.1 32KHz MCU loading capacitors.
External loading capacitors not fitted to the Teensy3.1 PCB, Added 20pF MCU loading capacitors for 32KHz crystal.
2015-03-07 22:49:02 +00:00
Paul Staron e027a8e224 Update PinNames.h
Pin name corrections to match platform images.
2015-03-07 22:29:12 +00:00
dominus97 e636215665 Added support for Nucleo F303RE
The OS_TASKCNT is set to 6, could be more.
The OS_SCHEDULERSTKSIZE is set to 112, could also be more.
The OS_CLOCK is set to 72000000 which matches the description on https://developer.mbed.org/platforms/ST-Nucleo-F303RE/

Cheers
2015-03-07 22:33:48 +01:00
dominus97 5e1716f63f Added support for Nucleo F303RE
I am not sure if it's the right SP, but the basic blink code works.
What does the SP stand for? Stack pointer?

Also, if you could tell me where to look for the correct address, I would.
I looked in the reference manual and the programming manual that STM provides, with no luck.

Cheers
2015-03-07 22:13:37 +01:00
Sissors 095ebd03e3 [HAL] K20DXX PWM fix
The old code for the K20 PWM had an issue where calling for example
pwm.period and pwm.write after each other resulted in the pwm.write
function setting the pulsewidth with the value of the old pwm period.
This makes sure it waits until the latest pwm period is written before
it will do so.
2015-03-07 22:06:01 +01:00