Commit Graph

26809 Commits (b8a18e29bd843821c9cd41fdf6dd573a7426ab94)

Author SHA1 Message Date
Filip Jagodzinski 2b4b64fafd Tests: USB: Fix Python 3 compatibility
Use integer division explicitly in basic test.
Convert bytes to str for Python 3 in serial test.
2019-09-30 10:21:16 +02:00
Filip Jagodzinski c323af8417 Bump the six (Python module) version to 1.12.0
This version provides a few handy functions: six.ensure_binary,
six.ensure_text, and six.ensure_str.
2019-09-30 10:20:45 +02:00
Ladislas de Toldi fa217c5bec
Update README with Google Test version 1.8.1 2019-09-30 09:47:44 +02:00
Martin Kojtal a1961de8a2
Merge pull request #11458 from fkjagodzinski/test_update-usb_device-fix_pyusb_backend
Tests: USB: Use libusb0 backend on Windows
2019-09-30 08:45:56 +02:00
Ryan Morse 54d962a240 Moved TriggerMux initialization out of the HAL and into the BSP since that is what dictates what trigger muxes actually need to be used 2019-09-27 13:01:38 -07:00
Anna Bridge 372a3f19c9
Merge pull request #11514 from dmaziec1/UART_deep_sleep_enable
ESP8266 unlocks deep sleep when disconnected
2019-09-27 16:50:22 +01:00
Anna Bridge e39ba114e1
Merge pull request #11491 from Tharazi97/equeue_chain_problem
Equeue chain, add documentation of using equeue_destroy
2019-09-27 16:29:01 +01:00
Qinghao Shi a3f82738dd FASTMODEL: enable PSA tests for fastmodel 2019-09-27 15:59:42 +01:00
Qinghao Shi 4bbbad3d79 FASTMODEL: add simulated TRNG implementation to fastmodel 2019-09-27 15:58:28 +01:00
Dominika Maziec 948bad1ed9 ATCmdParser doxygen header's documentation scanf 2019-09-27 16:02:24 +02:00
Dominika Maziec e84e098bcb esp8266 in _oob_* : recv() brought back where it was needed 2019-09-27 15:54:43 +02:00
Marc Emmers 4c1067b8b8 Fixed missing #if in port_api.c 2019-09-27 14:44:20 +02:00
Anna Bridge 60a8a9dafb
Merge pull request #11568 from JuhPuur/unittest_speedup
Speed up unit test build with parallel jobs
2019-09-27 13:29:18 +01:00
Anna Bridge 727b089291
Merge pull request #11517 from balajicyp/tcp_pktloss
TCP Packet loss happens due to running of out of Mailbox size.
2019-09-27 13:27:27 +01:00
Anna Bridge 07b3fb9db9
Merge pull request #11560 from kyle-cypress/pr/psoc6-tdb-internal-flash
Explicitly set tdb internal flash size for PSoC6 Targets
2019-09-27 13:23:48 +01:00
jeromecoutant fff88617b7 STM32H7 ST CUBE V1.5.0 update 2019-09-27 11:39:06 +02:00
Ari Parkkila e449e6dcdc Cellular: Fix setting of PDP context ID (cid) 2019-09-27 02:09:36 -07:00
Antti Kauppila f26074c7be Added missing include + cleaned up some tests 2019-09-27 11:13:20 +03:00
Qinghao Shi 4b18329094 TEST: change intefration fs test format and mount order 2019-09-27 00:28:28 +01:00
Kevin Bracey 046379e629 Tighten GCC 2-region _sbrk
When moving to the second heap region due to overflowing the first
region, the `_sbrk` implementation assumed the allocation would fit in
the second region, and didn't check for that overflowing too.

Problem revealed in `stats_heap` test with GCC 8 on K64F - the allocation
attempt for 1GiB crashed, as `_sbrk` indicated 1GiB was available at the
start of the second region.
second region.

Presumably older versions of newlib fault that allocation attempt before
passing to `_sbrk`.

While there, adjust the code to not use a separate static `bool`, saving
RAM. We can track with just one pointer, as order of the two regions is
fixed, and already relied on by newlib.
2019-09-26 16:12:59 +03:00
Martin Kojtal ba7b4799f9
Merge pull request #11439 from hugueskamba/hk-remove-unreachable-statement-warnings
Remove unreachable statements warnings
2019-09-26 14:35:44 +02:00
Martin Kojtal fff888b118
Merge pull request #11562 from VVESTM/vve_h7_memmap
STM32H7: memory relocation
2019-09-26 14:01:23 +02:00
Martin Kojtal 698e75f336
Merge pull request #11529 from vmedcy/pr/psoc6pdl-1.3.1
PSOC6: update to PDL 1.3.1
2019-09-26 12:24:06 +02:00
Juhani Puurula b836256701 Speed up unit test build with parallel jobs 2019-09-26 12:14:56 +03:00
Balaji 4f8036b682 TCP Packet loss when TCP Receive mailbox is full. 2019-09-25 10:58:25 -07:00
Chris Trowbridge eb6a474ba8 EP_AGORA: Add config logic to enable BLE, cell, and LoRa by default 2019-09-25 12:28:04 -04:00
Martin Kojtal 28a0e3c9b7
Merge pull request #11564 from hugueskamba/hk-fix-armc6-baremetal-build
Fix ARMC6 linker error for the bare metal profile
2019-09-25 16:44:45 +02:00
Hugues Kamba cc7403457d Fix ARMC6 linker error for the bare metal profile
The ARMC6 compiler inadvertently introduces the `_scanf_mbtowc` symbol
to the build. The commit provides a weak definition of the symbol to
satisfy the linker whenever the symbol is included. This affects ARM
Compiler 6 version 6.12 and earlier.

The compiler error was previously observed when the MICROLIB library is
used with the uARM toolchain. However, the weak definition was put in
`mbed-os/rtos` which is not included when the bare metal profile is used.
2019-09-25 12:20:50 +01:00
Ari Parkkila 8054b8eef8 Cellular: Fix resolving of DNS server IPv4/6 address 2019-09-25 03:16:45 -07:00
Martin Kojtal ab857c4963
Merge pull request #11478 from hugueskamba/hk-fix-some-more-warnings
Refactor CRC constructor method to remove warning
2019-09-25 10:11:37 +02:00
Kimmo Vaisanen 986204f269 Fix TLSSocket tests
- set certs and keys after socket open() as required by offloaded TLSSocket
- Added more checks for invalid handshake test and removed google.com test as
  as some modems (e.g. BG96) might contains root CA for google.com
2019-09-25 09:25:33 +03:00
Kimmo Vaisanen 6ba0efc969 Cellular: Use more specific error codes for socket open and connect
- When calling socket APIs when socket is not open, NSAPI_ERROR_NO_SOCKET will be
  returned instead of generic NSAPI_ERROR_DEVICE_ERROR

- If socket_send() is called when connection is not open, NSAPI_ERROR_NO_CONNECTION
  will be returned instead of generic NSAPI_ERROR_DEVICE_ERROR
2019-09-25 09:25:33 +03:00
Kimmo Vaisanen b319be14e8 Offloaded TLSSocket for BG96
Some external modems have an internal TLSSocket implementation which can be used
instead of mbedtls based TLSSocket. Using offloaded TLSSocket can result in
significantly reduced ROM usage.

Offloaded TLSSocket can be enabled by enabling "nsapi.offload-tlssocket" and the used
network stack (e.g. cellular modem's CellularStack class) must support the setsockopt's
defined in nsapi_types.h.

Compared to original mbedtls based TLSSocket, offloaded TLSSocket brings in one significant
API limitation. Offloaded TLSSocket requires setting of certificates and keys after open()
and before connect() calls, where mbedtls based TLSSocket allows setting these before open()
call.
2019-09-25 09:25:33 +03:00
Mukund Ghonasgi 57d4103dd8 Adapt to Target that don't support 3M BT Uart Baud 2019-09-24 16:49:54 -07:00
Kyle Kearney 832c69b1a6 Explicitly set tdb internal flash size for PSOC6
The default computation assumes that a flash sector is several times
larger than a flash page. On PSoC 6 targets this is not the case
(the two values are the same) so the computed size is too small.
This is a similar change to 1b1f14d36b,
but for devices which implement TDB in internal storage.
2019-09-24 11:31:04 -07:00
Volodymyr Medvid d199fa6bb4 PSOC6: update to PDL 1.3.1.1499 2019-09-24 17:43:23 +03:00
Martin Kojtal d91ed5fa42
Merge pull request #11495 from kivaisan/improve_cellular_ut
Improve cellular unittests
2019-09-24 16:37:02 +02:00
Martin Kojtal 07ebd92f7b
Merge pull request #11494 from hugueskamba/hk-fix-coverity-iotcore-1334
Fix Coverity issue: Initialize FlashIAP non-static member in constructor
2019-09-24 14:58:29 +02:00
Martin Kojtal e1cfb7b908
Merge pull request #11534 from kivaisan/handle_qisend_send_fail
Cellular: Handle SEND FAIL and ERROR response
2019-09-24 13:30:32 +02:00
Martin Kojtal 65d5c72cbd
Merge pull request #11404 from lrusinowicz/interrupt_in_fix
FUTURE_SEQUANA: InterruptIn implementation bug fix
2019-09-24 13:20:39 +02:00
int_szyk a60df639fe thread_mle_message_handler: fix null comparison.
Fixes Coverity issue about comparing nullptr.
2019-09-24 12:53:53 +02:00
int_szyk 76407bc654 sn_coap_builder: remove unnecessary code.
Fixes Coverity issue about unused variable.
2019-09-24 11:35:52 +02:00
int_szyk b0b9553991 CellularStack: remove unnecessary assignment.
Fixes Coverity issue about unused variable.
2019-09-24 11:05:01 +02:00
int_szyk 7c13b8f6b9 CellularUtil prefer_ipv6: check length.
Fixes Coverity issue about not checking the length of string before copying it.
2019-09-24 10:44:38 +02:00
Mukund Ghonasgi 15ee09c4bd Update Cordio BT Driver to support without BT Device Wake and Host Wake pins defined. 2019-09-23 11:29:57 -07:00
Hugues Kamba 5724c4cf39 Remove unreachable statements warnings
The warnings are observed when building with the IAR toolchain.
2019-09-23 11:58:49 +01:00
Martin Kojtal f513bce4a3
Merge pull request #11480 from gpsimenos/gp-enable-tickless-stage2
Enable tickless mode in additional tested targets
2019-09-23 11:42:58 +02:00
Dominika Maziec 1aa3b5d9d0 UART in deep sleep mode when it is disconnected 2019-09-20 17:18:32 +02:00
Martin Kojtal daafb950d9
Merge pull request #11538 from mirelachirica/ipv6_to_wise_1570
Cellular: Enable IPV6 for WISE_1570
2019-09-20 15:29:07 +02:00
Martin Kojtal 1f5a124820
Merge pull request #11117 from Terstegge/target_msp432_support
Target msp432 support
2019-09-20 15:02:35 +02:00