Commit Graph

26583 Commits (2c2a91ce877bccefa5838ff1d907bcc028e9208c)

Author SHA1 Message Date
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
Kimmo Vaisanen 5ae3b078d4 Add UT for AT_CellularNetwork::is_active_context 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen 89ca070e82 Add UT for CEREG URC handler 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen b41c638ac5 Add possibility to test URC handlers 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen 3c5958035a Improve UT for cellular properties 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen a6eed00d5b Add UT for CellularUtil::hex_to_char and ::hex_str_to_char_str
Also added checks for pointer validity.
2019-10-16 11:53:52 +01:00
Kimmo Vaisanen 6eb8fc5942 Unittests for CellularList 2019-10-16 11:53:52 +01:00
Hugues Kamba b8d30a426e Fix Coverity issue: Initialize FlashIAP non-static member in constructor 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen 76171e54e7 Cellular: Handle SEND FAIL and ERROR response
QISEND command can respond either SEND OK, SEND FAIL or ERROR.
If response is not SEND OK, sent bytes should not be checked but
error should be reported.
2019-10-16 11:53:52 +01:00
Leszek Rusinowicz f5f6caa3b0 FUTURE_SEQUANA: InterruptIn implementation bug fix
Fixed HAL API implementation for InterruptIn:
 - Interrupt was not enabled by default after configuration as it should be.
 - Interrupt-to-object linking was not handled properly.
2019-10-16 11:53:52 +01:00
Mirela Chirica 2d967dacbf Cellular: Enable IPV6 for WISE_1570 2019-10-16 11:53:52 +01:00
jeromecoutant b3a14b5ead STM32WB : LSI clock selection when LSE is not available 2019-10-16 11:53:52 +01:00
jeromecoutant 7272fe0613 STM32H7: LSI clock selection when LSE is not available 2019-10-16 11:53:52 +01:00
Hugues Kamba 1c1dfe1dd8 Correct force inline syntax for IAR compiler
Unlinke other compilers supported, the IAR compiler requires the
pre-processor extension to force inline a method to be placed before
the keyword `template` if the method is declared with one.
2019-10-16 11:53:52 +01:00
Kyle Kearney 2b277e8827 Improve psoc6csp doxygen comments 2019-10-16 11:53:52 +01:00
Kyle Kearney 3acb1e49f8 Reorganize resource and rtos abstraction files
- Move resource and rtos abstractions into their own folders
- Remove files for abstractions that are not implemented
2019-10-16 11:53:52 +01:00
Kyle Kearney 0a54b6900e Update to latest HAL
- Add const and static qualifiers in places where they are
  applicable but missing
- Remove headers for drivers that aren't implemented yet
- Misc minor bugfixes
2019-10-16 11:53:52 +01:00
Kyle Kearney 02da070162 Fix incorrect integer division in analogout_read
Replace with multiplication by the floating point reciprocal, to
 produce a floating point result while being more efficient than
 floating point division.
Addresses the issue raised by kjbracey-arm in
https://github.com/ARMmbed/mbed-os/pull/11324#pullrequestreview-282433989
2019-10-16 11:53:52 +01:00
Olli-Pekka Puolitaival f95187599f Fix documentation 2019-10-16 11:53:52 +01:00
Olli-Pekka Puolitaival 95f04e104a Make able to define build jobs amount when building examples 2019-10-16 11:53:52 +01:00
James Wang 318f686ffc remove NRF52840, NRF52832 static_memory_defines set
static_memory_defines controls the macro MBED_RAM_START AND MBED_RAM_SIZE
when nrf52840 to use softdevice, it need MBED_RAM_START to set the true application ram start

default static_memory_defines is true, so just remove NRF52840 and NRF52832's set
2019-10-16 11:53:52 +01:00
James Wang 1bed555921 set NRF52832 static_memory_defines true
static_memory_defines controls the macro MBED_RAM_START AND MBED_RAM_SIZE
when nrf52832 to use softdevice, it need MBED_RAM_START to set the true application ram start
2019-10-16 11:53:52 +01:00
Hugues Kamba 3bf1979d74 minimal-printf: Add capability to run floating point tests manually 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen 2bf62bf4c5 Cellular: Fix get_interface_name to not include leading zero
Multihoming documentation about interface name:
"Two character name string is concatenated with 8 bit value containing index which is incremented on each netif addition"

Cellular uses context id as index and to follow LWIP (LWIP::Interface::get_interface_name), index does not include leading zeros.
2019-10-16 11:53:52 +01:00
Mark Edgeworth ed5dc1cdd5 Review changes 2019-10-16 11:53:52 +01:00
Mark Edgeworth bb5857b92c Update tools/toolchains/mbed_toolchain.py
Co-Authored-By: Graham Hammond <graham.hammond@arm.com>
2019-10-16 11:53:52 +01:00
Mark Edgeworth 3d23962faf IOTBTOOL-349: Correct handling of spaces in project name.
This fixes an issue where a space in the name of a project would cause a link failure
2019-10-16 11:53:52 +01:00
Hugues Kamba 73133a19f5 Prevent unreachable statements and correct variable sizes. 2019-10-16 11:53:52 +01:00
Michal Paszta 9f947e34c0 Fix compilation warnings from GCC 2019-10-16 11:53:52 +01:00
Ari Parkkila 31528016b5 Cellular: Add flow control (IFC) in BG96 AT driver 2019-10-16 11:53:52 +01:00
Kimmo Vaisanen c5c0261737 Cellular: Fix stop tag for Quectel M26 send command
Possible responses for send command are SEND OK<cr><ln>, SEND FAIL<cr><ln> or ERROR<cr><ln>
so normal OK<cr><ln> response check does not work properly.
2019-10-16 11:53:52 +01:00
Martin Kojtal 19cb034b13 iar export: fix invalid optmization flag - remove from misc
The exported project uses project file to set optimization, we can provide this
via misc options. It was recently changed to Ol and this was not handled in our
scripts.
2019-10-16 11:53:52 +01:00
int_szyk 7411db1deb Change the LSI_VALUE according to documentation 2019-10-16 11:53:52 +01:00
int_szyk d6e2edc8d5 Coverity changes in USBMSD.cpp 2019-10-16 11:53:52 +01:00