Commit Graph

26716 Commits (b9d824d67cb15cf43a205aa5c78336aaa2aaeecf)

Author SHA1 Message Date
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
Juhani Puurula d932a4f6e0 Speed up unit test build with parallel jobs 2019-10-16 11:53:52 +01:00
Balaji 1d69501012 TCP Packet loss when TCP Receive mailbox is full. 2019-10-16 11:53:52 +01:00
Kyle Kearney 477f5636e2 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-10-16 11:53:52 +01:00
Hugues Kamba 0a7a0d8134 Remove unreachable statements warnings
The warnings are observed when building with the IAR toolchain.
2019-10-16 11:53:52 +01:00
Vincent Veron 85757ce198 STM32H7 : use RAM instead of DTCMRAM (GCC_ARM toolchain) 2019-10-16 11:53:52 +01:00
Vincent Veron 7561e770a3 STM32H7 : use RAM instead of DTCMRAM (ARM toolchain) 2019-10-16 11:53:52 +01:00
Vincent Veron dd9f9e1cb5 STM32H7 : use RAM instead of DTCMRAM (IAR toolchain)
Keep vector table and crash data ram in 0x20000000 for
tests-mbed_platform-crash_reporting test.
Move the rest in RAM (0x24000000). This is needed for ethernet and allows
user to use more RAM (512k).

Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-10-16 11:53:52 +01:00
Volodymyr Medvid 0cb250ca04 PSOC6: update to PDL 1.3.1.1499 2019-10-16 11:53:52 +01:00
Volodymyr Medvid 8bed19a9d2 PSOC6: update to PDL 1.3.1.1474 2019-10-16 11:53:52 +01:00
Hugues Kamba d4fe163804 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-10-16 11:53:52 +01:00
Hugues Kamba 5861f1a855 Remove `statement is unreachable` warning in MbedCRC.h
The code removed appears unnecessary given that the switch case below
also handles the case where the polynomial is `POLY_32BIT_REV_ANSI`
2019-10-16 11:53:52 +01:00
Kimmo Vaisanen 9da19e2877 UT for CellularDevice get/set timeouts methods 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen 6ac9379093 Fix CellularDevice::shutdown UT
As shutdown was overridden in test class, original shutdown() method
was not called at all.
2019-10-16 11:53:52 +01:00