Commit Graph

24184 Commits (15d0a9422daf6a4cbcd574ee91cdaf464fad8c7f)

Author SHA1 Message Date
Filip Jagodzinski 13c38e59a8 Tests: USBHID: Remove unnecessary wait_ready call
Every test case waits at greentea_parse_kv() anyway.
2019-04-24 13:37:42 +01:00
Filip Jagodzinski 57715cb80e Tests: USBHID: Handle variable driver setup time
Wait for the host driver to finish setup before sending any HID reports
from the device.

USBHID::wait_ready() blocks until the device reaches 'configured' state,
but the state of the host HID driver remains unknown to the device.
2019-04-24 13:37:42 +01:00
Filip Jagodzinski 355aadb116 Tests: USBHID: Reuse VID & PID from basic test
To successfully use pyusb on Windows hosts, a Zadig configuration has to
be performed. Since config for basic tests has already been provided,
use it again.
2019-04-24 13:37:42 +01:00
Filip Jagodzinski c9b465fb01 Tests: USBHID: Add tests 2019-04-24 13:37:42 +01:00
Filip Jagodzinski 7eda1266b0 USBHID: Fix the initial HID report read operation
The first 4 bytes received were lost due to a wrong address.
Read the output report into HID_REPORT.data.
2019-04-24 13:37:42 +01:00
Martin Kojtal d254fde716 license: fix files list 2019-04-24 13:37:42 +01:00
Martin Kojtal 22ad3efd1f drivers: add license information 2019-04-24 13:37:42 +01:00
Martin Kojtal 5b7e6b984d rtos: add license information 2019-04-24 13:37:42 +01:00
Kevin Bracey bb882854c2 SDP_K1: Cortex-M4 -> Cortex-M4F
MCU of SDP_K1 has FPU - change core in targets.json to use it.
2019-04-24 13:37:42 +01:00
Ari Parkkila 8937cf072b Cellular: Fix to delete PDP context on disconnect 2019-04-24 13:37:42 +01:00
Martin Kojtal 889185108b ExhaustibleBD: licensed under Apache 2.0
Fixing license, to the same one as .cpp file.
2019-04-24 13:37:42 +01:00
Kevin Bracey d751b1b973 GigaDevice: Cortex-M4 -> Cortex-M4F
GigaDevice parts have FPU - change core in targets.json to use it.
2019-04-24 13:37:42 +01:00
Kevin Bracey 05c85efa0a Don't trap RTX errors or mutex errors during errors
Once a fatal error is in progress, it's not useful to trap RTX errors
or mutex problems, so short-circuit the checks.

This makes it more likely that we may be able to get the console
initialised if it is being written to for the first time by `mbed_error`
in a difficult context - such as an RTX error callback from inside an
SVCall.

For example, the one-line program

   osMutexAcquire(NULL, 0);

will generate an RTX error trap, then `mbed_error` will try to call
`write(STDERR_FILENO)` to print the error, which will prompt mbed_retarget to
construct a singleton `UARTSerial`. This would trap in the mutex
for the singleton or the construction of the UARTSerial itself, if
we didn't allow this leniency. If we clear the mutex checks, then
`UARTSerial::write_unbuffered` will work.
2019-04-24 13:37:42 +01:00
Kevin Bracey 8a48162c98 mbed_error_puts: Prime STDERR_FILENO before writing
Prime the console outside the critical section, improving the chances of
nice initialisation.
2019-04-24 13:37:42 +01:00
Kevin Bracey 26e9ae103a mbed_assert_failure: Don't take critical section
Assert failure took a critical section before calling `mbed_error`.

There's no need to take a critical section on assert failure -
mbed_error does not do this, and is designed to operate from normal
contexts.

Avoiding the critical section will improve the chances of console
initialisation due to assert failure working nicely.
2019-04-24 13:37:42 +01:00
Kevin Bracey 3b366a0a23 Fix UARTSerial emergency unbuffered write
The length calculation in UARTSerial::write_unbuffered was wrong,
meaning it would truncate output data to half length.

This would show up if `platform.stdio-buffered-serial` was configured to
true, `platform.stdio-convert-newlines` was still false - `mbed_error`
crashes would be garbled.

This wasn't usually spotted because applications generally have both
settings false or both true, and if newline conversion is on, then
`mbed_error_puts` writes 1 character at a time to FileHandle::write,
avoiding the length error.
2019-04-24 13:37:42 +01:00
Shawn Shan 8ac04df1ba Fix the build failed issue of MPS2 targets with ARMC6.
Change-Id: I0205d381de331a827435d667c16297aaf5bb609e
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan 3ef9aa35be Add IAR support for the target AN382 of MPS2.
Add file MPS2.icf and startup_MPS2.S to suppout IAR of the target
AN382(ARM_MPS2_M0). Add "IAR" to supported_toolchain list.

Change-Id: I2b2ad7645166c4f973a8baa9c394521514183767
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan 880e5a92dc Add IAR support for the target AN383 of MPS2.
Add file MPS2.icf and startup_MPS2.S to suppout IAR of the target
AN383(ARM_MPS2_M0P). Add "IAR" to supported_toolchain list.

Change-Id: Ib2278d34e265e53ad070aecd318ed4e6a355e3c0
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan 60c95a5cd7 Add IAR support for the target AN385 of MPS2.
Add file MPS2.icf and startup_MPS2.S to suppout IAR of the target
AN385(ARM_MPS2_M3). Add "IAR" to supported_toolchain list.

Change-Id: I038b05b8b21bd146a1568de897ed030ccd52ab79
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan 3386463176 Add IAR support for the target AN386 of MPS2.
Add file MPS2.icf and startup_MPS2.S to suppout IAR of the target
AN386(ARM_MPS2_M4). Add "IAR" to supported_toolchain list.

Change-Id: I4f43617c870197b9d39a4d4c9c12456adcc6f96f
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan bcb1ddaed1 Add IAR support for the target AN500 of MPS2.
Add file MPS2.icf and startup_MPS2.S to suppout IAR of the target
AN500(ARM_MPS2_M7). Add "IAR" to supported_toolchain list.

Change-Id: I0b8f018fc937727382b27ea0669940ae6675c834
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan 58f93fafc7 Add GCC_ARM support for the target AN382 of MPS2.
Add files MPS2.ld and startup_MPS2.S to support GCC_ARM of the target
AN382(ARM_MPS2_M0). Add "GCC_ARM" to supported_toolchains list.

Change-Id: I7046b698834c82e94015e51eef9a0f5e1315ddaa
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan 4eb375c635 Add GCC_ARM support for the target AN383 of MPS2.
Add files MPS2.ld and startup_MPS2.S to support GCC_ARM of the target
AN383(ARM_MPS2_M0P). Add "GCC_ARM" to supported_toolchains list.

Change-Id: I48020b4f0f1b6e0aef3c53f5a3586bc9e9fca9c9
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan 0d11427d51 Add GCC_ARM support for the target AN385 of MPS2.
Add files MPS2.ld and startup_MPS2.S to support GCC_ARM of the target
AN385(ARM_MPS2_M3). Add "GCC_ARM" to supported_toolchains list.

Change-Id: I3110d4ab37a3294488a80a8dc1c929bfd87ce989
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan 522056f37d Add GCC_ARM support for the target AN386 of MPS2.
Add files MPS2.ld and startup_MPS2.S to support GCC_ARM of the target
AN386(ARM_MPS2_M4). Add "GCC_ARM" to supported_toolchains list.

Change-Id: Ib8cea952e1ce0a5ef11ab623cca6f3786eab56f5
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan dcb5b10427 Add GCC_ARM support for the target AN500 of MPS2.
Add files MPS2.ld and startup_MPS2.S to support GCC_ARM of the target
AN500(ARM_MPS2_M7). Add "GCC_ARM" to supported_toolchains list.

Change-Id: Ife109e9e1f2ec8e075e566f9d5c2ec7e3c5067f2
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan a160b573fe MPS2 Re-Enablement in mbed
These file changes provide small fixes for various targets
on MPS2 platform in order to work properly and pass all
Greentea test cases. The __initial_sp has been explicitly set
in the targets' startup files, and also INITIAL_SP has been
given a different value. The values have been extracted from
the specific targets' Application Note documentation.
Affected targets are: ARM_MPS2_M0, ARM_MPS2_M0P, ARM_MPS2_M3,
ARM_MPS2_M4 and ARM_MPS2_M7.

Change-Id: I3d5d0e1ae386cdcc3ba5eb63be929267a257b139
Signed-off-by: Bence Kaposzta <bence.kaposzta@arm.com>
2019-04-24 13:37:42 +01:00
Michal Paszta 873074af32 README file for wifi tests gives configuration example. 2019-04-24 13:37:42 +01:00
Amanda Butler 9264b5d19f Edit README.md
Edit file for consistent person.
2019-04-24 13:37:42 +01:00
Lari-Matias Orjala df394799cc add a code independent unit test writing example 2019-04-24 13:37:42 +01:00
Mahesh Mahadevan ece83f1edc MXRT1050_EVK: Fixes test failure seen with IAR and ARM toolchains
Fixes test failure seen with tests-mbed_hal-stack_size_unification
under IAR and ARM toolchain

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-04-24 13:37:42 +01:00
Michal Paszta 10a1f46f9d ECHOTEST internal loop simplification and fix
The loop was wrongly incrementing the index of the array after assiging
the value. Thus the first array element was used twice and the last one
was never user. The issue is fixed and the loops are refactored and
simplified to avoid such confusion in the future.
2019-04-24 13:37:42 +01:00
Kevin Bracey 982d1dee00 Toshiba: Cortex-M4 -> Cortex-M4F
Toshiba parts have FPU - change core in targets.json to use it.
2019-04-24 13:37:42 +01:00
Kevin Bracey fb355959ed mbed_error: Avoid negative left shift
User uses of `MBED_MAKE_ERROR` assemble a new error that gets its bottom
16 bits from an existing negative 32-bit error code. This lead to
undefined behaviour when `<<` was used on it - even though it was a
shift by zero!

Avoid the undefined behaviour warning from Clang by masking before
shifting.
2019-04-24 13:37:42 +01:00
Sebastian Toscano 19ab7865ed approcah -> approach 2019-04-24 13:37:42 +01:00
jeromecoutant 4e551b1e4b STM32: protect compilation when DEVICE_USTICKER is disabled 2019-04-24 13:37:42 +01:00
j3hill 94b0a4929f Data that is written to/read from external flash using QSPI needs to be in RAM and WORD aligned. 2019-04-24 13:37:42 +01:00
Cruz Monrreal II 4e44f6c1ee Made typo to unblock final check 2019-04-24 13:37:42 +01:00
Cruz Monrreal II dc4aa42e86 Fixed status reporting. 'tr' command wasn't doing any replacement 2019-04-24 13:37:42 +01:00
Cruz Monrreal II a4b59fe119 Fixed shellcheck issues found in functions.sh Added comments to functions 2019-04-24 13:37:42 +01:00
Cruz Monrreal II e932c69280 Cleaned up LittleFS and Event Queue tests. Added {} around each variable. Ported python invocations for simple math opts to coreutil commands 2019-04-24 13:37:42 +01:00
Cruz Monrreal II 9815af3941 Fixed littlefs tests to be Py3 compat 2019-04-24 13:37:42 +01:00
Cruz Monrreal II 7a36f93bf5 Removed nearly all usage of 'apt-get'.
Primary cause of false Travis CI failures was running 'apt-get update'.
Refactored all instances where this was needed with manually fetching and installing dependencies in S3 instace.

This also includes GCC installation.
2019-04-24 13:37:42 +01:00
Cruz Monrreal II 8be769ab9e Re-enabled PR status reporting. Added external bash file to source functions from 2019-04-24 13:37:42 +01:00
Cruz Monrreal II bffc168833 Grouped jobs into build stages 2019-04-24 13:37:42 +01:00
Cruz Monrreal II 34d43450b6 Removed status reporting.
Re-enabled in later commit.
2019-04-24 13:37:42 +01:00
Cruz Monrreal II 33cc51b91c Changed default language to shell.
Not every VM needs the setup overhead that 'language: python' was providing
2019-04-24 13:37:42 +01:00
Brian Daniels 3b89599bb3 Apply suggestions from code review
Co-Authored-By: theotherjimmy <theotherjimmy@gmail.com>
2019-04-24 13:37:42 +01:00
Brian Daniels ff47253b85 Apply suggestions from code review
Co-Authored-By: theotherjimmy <theotherjimmy@gmail.com>
2019-04-24 13:37:42 +01:00