Commit Graph

3762 Commits (d41ef07d3263c16abb38f78c8467809005ca0445)

Author SHA1 Message Date
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
Paul Staron fda34ea4c2 Update USBDevice.cpp
Added Teensy3.1 support
2015-03-07 18:28:13 +00:00
Paul Staron ea867c7cf7 Update USBEndpoints.h
Added Teensy3.1 support
2015-03-07 18:26:12 +00:00
Paul Staron 4cfd93b5af Update USBHAL_KL25Z.cpp
Added Teensy3.1 support
2015-03-07 18:23:25 +00:00
Martin Kojtal 87952c57ec Merge pull request #952 from vh21/master
Remove trailing whitespace in RTX
2015-03-07 14:25:20 +01:00
Mihail Stoyanov 90b01bb708 Add BOOT and OTA for Seeed Tiny BLE target 2015-03-06 20:31:28 +02:00
Mihail Stoyanov 46e1601852 Added bootloader hex file for all nRF51822 based platforms. Added NRF51822_BOOT and NRF51_DK_BOOT platforms so bootloader is included in the compiled program. This is required for FOTA. 2015-03-06 18:54:14 +02:00
Mihail Stoyanov 27431a156c Merge branch 'master' of https://github.com/mbedmicro/mbed 2015-03-06 18:09:01 +02:00
bcostm ba2d69e5a4 [NUCLEO_F103RB] Update all hal files (STM32Cube compliancy) 2015-03-06 10:11:35 +01:00
bcostm d54b1038fa [NUCLEO_F103RB] Add cmsis toolchains files 2015-03-06 10:08:49 +01:00
bcostm 69cecbdf8e [NUCLEO_F103RB] Add STM32Cube F1 driver 2015-03-06 10:06:22 +01:00