Commit Graph

26929 Commits (cf4f12a123c05fcae83fc56d76442015cb8a39e9)

Author SHA1 Message Date
Juhani Puurula e2d6d26ab5 Change imgtool lib import to relative import 2019-10-16 11:58:32 +01:00
Filip Jagodzinski d8b88dc5dd Tests: USB: Move control endpoint buffers to heap
This fixes the stack overflow error during the basic USB tests.

Update the ctrl_buf member of the USBTester and USBEndpointTester test
classes to be allocated on the heap. This saves 2 KB of a main stack.
2019-10-16 11:58:32 +01:00
Michal Paszta 39e17a111f Increase the timeout for DNS tests as their number increased 2019-10-16 11:58:32 +01:00
Michal Paszta 0039cfb743 Increase timeout in DNS_TIMEOUTS test for ESP8266
The test floods the device with UDP requests (it skips the 100 ms delay to simulate instant timeout). ESP8266 starts responding with "busy p..." message. It needs more time to process the data and recover for subsequent tests.
2019-10-16 11:58:32 +01:00
Ben Cooke 9145b72433 Add MTS_DRAGONFLY_F413RH platform to mbed-os 2019-10-16 11:58:32 +01:00
Ari Parkkila 2eab0fbee4 Cellular: Fix resolving of DNS server IPv4/6 address 2019-10-16 11:58:32 +01:00
Kyle Kearney 7dd86e8f48 Clean up BSP hardware configuration
- Improve block naming
- Remove unneeded items
2019-10-16 11:58:32 +01:00
Kyle Kearney 45b674623f Update CY8CPROTO-064-SB linker scripts
Update linker scripts for the latest PDL to be consistent with other Cypress targets
2019-10-16 11:58:32 +01:00
Kyle Kearney 222443ea63 Refactor serial flash support 2019-10-16 11:58:32 +01:00
Kyle Kearney 85ba6ea4f3 Simplify BSP contents
Remove some (Cypress-proprietary) BSP interfaces and hardware initialization
from the BSPs which is better implemented by a library or application firmware.
Move some remaining functionality from common to the individual targets.
2019-10-16 11:53:52 +01:00
Kyle Kearney 91131a03f7 Consolidate/clean up wifi initialization 2019-10-16 11:53:52 +01:00
Kyle Kearney 8e6c6d1d8e Avoid doubly allocating whd thread stack
Don't malloc during wifi initialization, as that could cause double allocation in some cases.
The thread stack will be allocated by cy_rtos_thread_start if necessary.
2019-10-16 11:53:52 +01:00
int_szyk 95766d71ac thread_mle_message_handler: fix null comparison.
Fixes Coverity issue about comparing nullptr.
2019-10-16 11:53:52 +01:00
int_szyk e7b5a4f32b sn_coap_builder: remove unnecessary code.
Fixes Coverity issue about unused variable.
2019-10-16 11:53:52 +01:00
int_szyk 85f104755f CellularStack: remove unnecessary assignment.
Fixes Coverity issue about unused variable.
2019-10-16 11:53:52 +01:00
int_szyk 2d2fdf7cf9 CellularUtil prefer_ipv6: check length.
Fixes Coverity issue about not checking the length of string before copying it.
2019-10-16 11:53:52 +01:00
Qinghao Shi ce73f8ecdd FASTMODEL: add a comment for TRNG simulation 2019-10-16 11:53:52 +01:00
Qinghao Shi 4e3d31540a FASTMODEL: update trng based on comments 2019-10-16 11:53:52 +01:00
Qinghao Shi 828b2f132e FASTMODEL: enable PSA tests for fastmodel 2019-10-16 11:53:52 +01:00
Qinghao Shi c81995cf56 FASTMODEL: add simulated TRNG implementation to fastmodel 2019-10-16 11:53:52 +01:00
Kevin Bracey 0a58c80b56 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-10-16 11:53:52 +01:00
Ladislas de Toldi 74715c71f7 Update README with Google Test version 1.8.1 2019-10-16 11:53:52 +01:00
Ladislas de Toldi b152f4e5f1 update googletest to v1.8.1 2019-10-16 11:53:52 +01:00
Janne Kiiskila 04767f3022 AT_CellularDevice.cpp - unused variable err warning
We get this compiler warning;

Compile [  7.9%]: AT_CellularDevice.cpp
[Warning] AT_CellularDevice.cpp@206,18: variable 'err' set but not used [-Wunused-but-set-variable]

Due to the fact, that the code that would actually use this variable
is behind trace flags. Based on review feedback from Antti Kauppila and
Kimmo Väisänen, adding same flagging also for that.
- Reason being - the operation needs to be within the locks.
2019-10-16 11:53:52 +01:00
Qinghao Shi a7038fb818 TEST: change intefration fs test format and mount order 2019-10-16 11:53:52 +01:00
Ari Parkkila 78f3292036 Cellular: Fix setting of PDP context ID (cid) 2019-10-16 11:53:52 +01:00
Chris Trowbridge 89ce27b3fc EP_AGORA: Add config logic to enable BLE, cell, and LoRa by default 2019-10-16 11:53:52 +01:00
Mirela Chirica 9dab079d33 Cellular: Removed not used variable 2019-10-16 11:53:52 +01:00
Mirela Chirica d48ea364ff Cellular: Include of errno.h needed for Mac OS X 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen f295272b3b LoRa: Fix build warning about _ongoing_tx_msg
_ongoing_tx_msg was incorrectly initialized before _mlme_confirmation.

Fixes following build warning:
[Warning] LoRaMac.h@691,26: 'LoRaMac::_ongoing_tx_msg' will be initialized after [-Wreorder]
[Warning] LoRaMac.h@689,28:   'loramac_mlme_confirm_t LoRaMac::_mlme_confirmation' [-Wreorder]
[Warning] LoRaMac.cpp@68,1:   when initialized here [-Wreorder]
2019-10-16 11:53:52 +01:00
Filip Jagodzinski 12e5955771 Tests: USB: Remove outdated docs from basic test 2019-10-16 11:53:52 +01:00
Filip Jagodzinski 0f896fa97d Tests: USB: Update error formatting in basic test 2019-10-16 11:53:52 +01:00
Filip Jagodzinski 85c495f451 Tests: USB: Extract common code in basic test 2019-10-16 11:53:52 +01:00
Filip Jagodzinski 11dc3d2f78 Tests: USB: Distinguish failure/error in basic test 2019-10-16 11:53:52 +01:00
Filip Jagodzinski c9c7dbbaf0 Tests: USB: Clean up test failure output
Catch all pyusb errors and report failures to the device. Printing full
tracebacks was more confusing than useful.
2019-10-16 11:53:52 +01:00
Mukund Ghonasgi 1eb85aefab Adapt to Target that don't support 3M BT Uart Baud 2019-10-16 11:53:52 +01:00
Mukund Ghonasgi 8bd35cc039 Update Cordio BT Driver to support without BT Device Wake and Host Wake pins defined. 2019-10-16 11:53:52 +01:00
Mukund Ghonasgi f6507b7140 Cypress Cordio Driver Update 2019-10-16 11:53:52 +01:00
Filip Jagodzinski e6363486dd Tests: USB: Fix Python 3 compatibility
Use integer division explicitly in basic test.
Convert bytes to str for Python 3 in serial test.
2019-10-16 11:53:52 +01:00
Filip Jagodzinski a604eca79e 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-10-16 11:53:52 +01:00
Dominika Maziec 3d4c21d45a ATCmdParser doxygen header's documentation scanf 2019-10-16 11:53:52 +01:00
Marc Emmers b82becb323 Add newline at end of file 2019-10-16 11:53:52 +01:00
Marc Emmers 0876991561 Fixed missing #if in port_api.c 2019-10-16 11:53:52 +01:00
jeromecoutant b2e0a13730 STM32H7 ST CUBE V1.5.0 update 2019-10-16 11:53:52 +01:00
Ryan Morse c62c7135f9 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-10-16 11:53:52 +01:00
int_szyk a19d3693fa Change reset_reason timeout.
Changed mbed_drivers-reset_reason and mbed_hal-reset_reason tests
because sometimes for some devices it was a little bit to short.
2019-10-16 11:53:52 +01:00
Filip Jagodzinski 2c2a91ce87 Tests: USBHID: Use libusb0 backend on Windows
libusb0 supports all features used for testing. A newer version
(libusb1) does not have a complete implementation for Windows.
2019-10-16 11:53:52 +01:00
Filip Jagodzinski 7aeb5c97dd Tests: USB: Use libusb0 backend on Windows
libusb0 supports all features used for testing. A newer version
(libusb1) does not have a complete implementation for Windows.
2019-10-16 11:53:52 +01:00
int_szyk 0b27213785 Expand documentation of equeue 2019-10-16 11:53:52 +01:00
int_szyk bd756ab906 Tweak equeue chain tests
Changed the order of destroying queues because it is needed to destroy
queues in specified order when they are chained.
2019-10-16 11:53:52 +01:00