Commit Graph

24426 Commits (7095c31bcae405bb332d5c3e1d587e56ebf71340)

Author SHA1 Message Date
Brian Daniels 11775ef111 Force SAMD21 and SAMR21 targets to ARMC5 due to incompatibility.
The hal code for this target uses "const volatile" types inside of
structs, which are non-trivially copyable in clang (used by ARMC6). This
causes the build to fail.

Here's the commit that changed this in clang:
a3d727ba77

It seems this was reverteed some time ago in clang, but ARMC6 may not
be up to date.
2019-04-09 14:52:15 -05:00
Brian Daniels fb6fcc5324 Only enable uvision postbuild when in a non-zipped exported project.
Projects that are zipped are typically from the online compiler or they
are meant to be used in a separate environment. Since the postbuild
script requires the Mbed OS tools to present in the project, we will
disable the postbuild script when the project is exported to a zipped
project.
2019-04-09 14:10:38 -05:00
Brian Daniels bbef60fbf2 Correct calls to merge_region_list 2019-04-09 14:10:37 -05:00
Brian Daniels ae344342d1 Fix import of region functions 2019-04-09 14:10:37 -05:00
Brian Daniels 1319948412 Conditionally enable post build in uvision for managed bootloader 2019-04-09 14:10:36 -05:00
Brian Daniels a0cce48282 Modify uvision templates to conditionally enable post build 2019-04-09 14:08:14 -05:00
Brian Daniels d004828589 Add post build script for uvision to support managed bootloader. 2019-04-09 14:08:14 -05:00
Brian Daniels 4734cb7059 Add template for export info needed by the post build script 2019-04-09 14:08:13 -05:00
Brian Daniels 533ee1f717 Add debug and flash init scripts for uvision.
These files are used when the post build script is enabled to support
projects that are using managed bootloader mode.
2019-04-09 14:08:13 -05:00
Brian Daniels a5d89bb088 Update merge_region_list test case 2019-04-09 14:08:13 -05:00
Brian Daniels 5b33dfd6e4 Update calls to merge_region_list 2019-04-09 14:08:13 -05:00
Brian Daniels 3b768de528 merge_region_list now takes in just restrict_size instead of config.
merge_region_list was changed to do some extra checks regarding the
different regions. It only was checking the "restrict_size" parameter
and not the whole config option. So this reduces the argument down to
just this value. This makes it easier to serialize the data needed for
post build steps after being built in an exported project.
2019-04-09 14:08:13 -05:00
Cruz Monrreal b419cfc3ed
Merge pull request #10328 from kjbracey-arm/stdio_serial_option
Add option to disable default UART console
2019-04-09 14:03:41 -05:00
Cruz Monrreal 49cae76a19
Merge pull request #10350 from c1728p9/fix_usb_typo
Fix doxygen comment in USBDevice
2019-04-09 14:03:30 -05:00
Cruz Monrreal 73f1edd6db
Merge pull request #10004 from OpenNuvoton/nuvoton_m2351_fix-memory-partition
M2351: Support memory custom partition
2019-04-09 14:03:18 -05:00
Cruz Monrreal 803f5fd44e
Merge pull request #9966 from naveenkaje/sct_fix
tools: fix the path generated to the sct file
2019-04-09 14:03:09 -05:00
Shrikant Tudavekar 3769ec4acc place crash data region at end of IRAM 2019-04-09 13:34:18 -05:00
Deepika 36c7b2de86 uARM - Move heap region after IRAM1
ARM_LIB_HEAP start is aligned to IRAM1 end, hence should be placed next to
RW_IRAM1 i.e. no other region in between.
2019-04-09 12:01:01 -05:00
Cruz Monrreal 6dbc00dd8a
Merge pull request #10292 from hasnainvirk/ec2x_driver
Cellular: Basic driver for Quectel EC25/EC21
2019-04-09 11:06:51 -05:00
Cruz Monrreal cec5a85761
Merge pull request #10354 from hasnainvirk/compile_error_at_handler
Cellular: Using new rather than malloc in debug_print
2019-04-09 11:06:15 -05:00
Cruz Monrreal 67de89d119
Merge pull request #10346 from lrusinowicz/sequana_armc6_fixes
FUTURE_SEQUANA: Add suport for ARMC6
2019-04-09 11:06:05 -05:00
Cruz Monrreal d1672d0200
Merge pull request #10341 from mirelachirica/check_urc_resp_stop_1
Cellular: Check for URC during AT response stop
2019-04-09 11:05:56 -05:00
Cruz Monrreal 2cb157c949
Merge pull request #10324 from jarvte/more_info_from_stm
Cellular: new state machine state and better info from stm
2019-04-09 11:05:48 -05:00
Cruz Monrreal fba8156bda
Merge pull request #9967 from bridadan/fix_vscode_makefile_zip
Fix for projects exported as a zip file (affects online compiler)
2019-04-09 11:05:33 -05:00
Brian Daniels 80b0a4cbd8 Make files call the linker from the build dir, so correct the path 2019-04-09 10:20:20 -05:00
Filip Jagodzinski 491ea5530a Tests: USBHID: Specify `hidapi` license 2019-04-09 17:05:34 +02:00
Filip Jagodzinski 852390fcdc Tests: USBHID: Make report test optional on Linux
This test case uses `hidapi` -- a cross-platform Python module.
To keep the initial Mbed setup as simple as possible, the `hidapi`
module is skipped on Linux hosts because of its external dependancies
for this platform.

The module can be easily installed following instructions from the
README file.
The test case is skipped if the host machine lacks `hidapi` module.
2019-04-09 17:03:22 +02:00
Filip Jagodzinski 111f485cbe Tests: USBHID: Remove unnecessary wait_ready call
Every test case waits at greentea_parse_kv() anyway.
2019-04-09 17:03:22 +02:00
Filip Jagodzinski 36eb700ede 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-09 17:03:22 +02:00
Filip Jagodzinski 4f880691fb 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-09 17:03:22 +02:00
Filip Jagodzinski 565ceb0048 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-09 17:03:21 +02:00
Filip Jagodzinski 572beb6731 Tests: USBHID: Add tests 2019-04-09 17:03:21 +02:00
Kevin Bracey c5b5407dc8 cmsis_importer.json: adjust source paths 2019-04-09 17:34:51 +03:00
Jimmy Brisson 002a2b17c0 Fix the bug that travis caught 2019-04-09 09:19:41 -05:00
Kevin Bracey aa0e86475c mbed_error_puts: Prime STDERR_FILENO before writing
Prime the console outside the critical section, improving the chances of
nice initialisation.
2019-04-09 16:15:17 +03:00
Kevin Bracey f2a13a85a1 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-09 16:15:09 +03:00
Kevin Bracey 380b27e741 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-09 16:15:09 +03:00
Teppo Järvelin 8234f00506 Cellular: fix state machine to compile after master rebase
Fix automatic rebase error with cellulardevice.cpp
2019-04-09 14:00:59 +03:00
Teppo Järvelin 2470a3611c Cellular: new state machine state and better info from stm
Added new state (signal quality) and more information about progress
so application/driver can build recovery logic.
2019-04-09 13:44:45 +03:00
Martin Kojtal dc1198b5c8
Merge pull request #10254 from theotherjimmy/remove-some-deadcode
Remove unused tools modules and document the used ones.
2019-04-09 12:26:49 +02:00
Hasnain Virk 9229aba87d Using new rather than malloc in debug_print
Using malloc will require us to add stdlib.h somewhere in the path for
the application. Maybe the CI apps are adding stdlib.h and that's why
the code would have worked. In a custom app, it can happen that the
header is not included. Using new avoids the need to add stdlib.h
anywhere and it is more in line with C++.
2019-04-09 12:25:59 +03:00
Martin Kojtal 65ada92527
Merge pull request #10301 from alekla01/examples-verbose-patch-1
examples test compile optional verbose
2019-04-09 11:04:33 +02:00
Martin Kojtal d9463ee95a
Merge pull request #10318 from KariHaapalehto/emw3166
Crash with MTB_MXCHIP_EMW3166 has been corrected.
2019-04-09 11:04:20 +02:00
Martin Kojtal af3a7656a4
Merge pull request #10330 from michalpasztamobica/greentea_test_fixes
Reduce greentea socket tests failures related to network issues
2019-04-09 11:03:33 +02:00
Martin Kojtal 4a3edf5c83
Merge pull request #10332 from bridadan/fix_large_print
Break up large prints from --supported
2019-04-09 11:03:16 +02:00
Martin Kojtal 905042ec17
Merge pull request #10333 from bridadan/toolchain_path_quotes
Allow toolchain paths to be wrapped in quotes
2019-04-09 11:00:43 +02:00
Martin Kojtal 680d10f246
Merge pull request #10335 from orenc17/psa_release_check_exec
PSA release.py - Check that required toolchains are in PATH
2019-04-09 10:59:35 +02:00
Martin Kojtal a59ba20aec
Merge pull request #10338 from jarvte/fix_deleting_of_stm
Cellular: Fix deleting of state machine to correct class
2019-04-09 10:59:15 +02:00
Martin Kojtal 47838ea4be
Merge pull request #10340 from paul-szczepanek-arm/fix-negotiate-mtu
BLE: fix missing implementation call
2019-04-09 10:58:59 +02:00
Martin Kojtal f4fa6c9d2a
Merge pull request #10343 from VVESTM/issue_10049
TARGET_STM32F7: Reset QSPI in default mode on abort for all versions.
2019-04-09 10:27:56 +02:00