Commit Graph

28199 Commits (957d458a2496eaa222758c234c355627100ae844)

Author SHA1 Message Date
Maciej Bocianski 455b846bc1 unittest: fix ATCmdParser test segfault 2020-01-14 13:15:50 +01:00
Kimmo Vaisanen 0d525fff29 Cellular: Remove deprecated CellularDevice::stop()
CellularDevice::shutdown() should be used instead.
2020-01-14 10:47:05 +02:00
Martin Kojtal 9243abb6be
Merge pull request #12238 from hugueskamba/hk-minimal_printf-fix-vsnprintf
Minimal-printf: Fix wrapping of printf functions for the ARM compiler
2020-01-13 15:54:17 +01:00
Bram de Boer b444b7c560 Added timer shutdown after time stop on deinit 2020-01-13 13:37:50 +00:00
Hugues Kamba a74ffacf81 Remove usage of UARTSerial in Mbed OS Core diretories
Replace with BufferedSerial as UARTSerial has been deprecated.
2020-01-13 13:20:57 +00:00
Hugues Kamba 5fa76279ef Mark `UARTSerial` as deprecated 2020-01-13 13:20:57 +00:00
Hugues Kamba 18f677e91c Implement the BufferedSerial class to replace UARTSerial
`BufferedSerial` is `UARTSerial` renamed to convey the original purpose
of the class.
2020-01-13 13:20:57 +00:00
Anna Bridge c366bb4f2b
Merge pull request #12236 from evedon/ed-baremetal-build-failures
Fix baremetal build failures
2020-01-13 12:51:24 +00:00
YARB(Cypress) c53d2f1198 Addressed comments 2020-01-13 14:46:32 +02:00
Hugues Kamba 3b59f6ce4d Minimal-printf: Fix wrapping of printf functions for the ARM compiler
As the ARM compiler is in GNU compatible mode, it defines __GNU__ which
(based on pre-processor condition in  mbed_printf_implentation.h)
causes the printf functions to be wrapped using _wrap_* instead of
$Sub$$*.

This commit modifies the pre-processor
conditions to check for __GNUC__last in order to correctly
substitute the printf functions depending on the toolchain in use.

It also gets rid of $Super$$* substitution as it is not needed. $Super$$
is used to identify the original unpatched functions.

Missing substitutions for ARM compiler internal optimized "printfs" are
also added.
2020-01-13 11:24:57 +00:00
YARB(Cypress) 3425b8e1fc Cypress: Initial commit of SoftAP host tests 2020-01-10 19:58:40 +02:00
Tymoteusz Bloch d30dba29ec Fix DNS multiple query hints to perform both IP4 and IP6 tests 2020-01-10 17:54:39 +01:00
George Beckstein d8fbfbfeb4 Replace macro "UART1_ENABLED" with corresponding "NRFX_UARTE1_ENABLED". 2020-01-10 11:33:11 -05:00
George Beckstein dd98d0102f Update SDK config for nRF52840 to disable UART1 instance (Mbed serial port uses UARTE peripheral) 2020-01-10 11:32:47 -05:00
George Beckstein cb4f3db2a7 Replace preprocessor "UARTx_ENABLED" with "NRFX_UARTEx_ENABLED". 2020-01-10 11:30:52 -05:00
Michal Paszta ea2f36eadf ESP8266: accept partial writes for TCP and clean up code 2020-01-10 16:53:23 +02:00
Przemyslaw Stekiel 8a938ea777 STM serial free: Set pin function only if pin is defined (not NC) 2020-01-10 14:59:28 +01:00
Evelyne Donnaes 8a4bba33bd Fixed baremetal build failures 2020-01-10 13:20:59 +00:00
Antti Kauppila eb78ba6624 Fixed PDP type handling 2020-01-10 13:48:25 +02:00
Michal Paszta f032274729 ESP8266: Add built-in DNS resolution (disabled by default) 2020-01-10 09:17:12 +02:00
aglass0fmilk dc19460fa3 Remove use of deprecated UART driver (as opposed to UARTE). Disable unused TWIM peripheral (deprecated TWI peripheral is currently used for I2C master mode operation). 2020-01-09 16:35:06 -05:00
George Beckstein b6befee4cf Properly configure PRS API so it actually delegates the shared interrupt slot to the appropriate peripheral 2020-01-09 16:35:06 -05:00
Antti Kauppila 2fb167be26 Fixed IOTCELL-2384
Earlier we called AT+QICSGP only if the username and password was set.
It seems that we must call it also to set up APN while in AT mode.
This commit fixes the issue + updated IPv4/v6 handling to be correct in the same call
2020-01-09 17:19:24 +02:00
Martin Kojtal dc6320239b
Merge pull request #12162 from JanneKiiskila/CMSIS-pack-STM32WB
CMSIS-pack update for STM32WB-family
2020-01-09 15:03:25 +01:00
Martin Kojtal 8c4ed4a6cb
Merge pull request #11897 from kjbracey-arm/crc
MbedCRC: improve init value handling and tests
2020-01-09 13:31:30 +01:00
Martin Kojtal 759ce271c2
Merge pull request #12200 from MultiTechSystems/fix_PeripheralPins
Minor fixes for peripheral pins on Dragonfly Nano
2020-01-09 13:17:01 +01:00
Martin Kojtal d7b7223bcd
Merge pull request #12218 from mprse/ticker_interrupt_test_fix
tests-mbed_hal-common_tickers: adapt ticker_interrupt_test() test case for high frequency tickers - WIP
2020-01-09 13:16:16 +01:00
Martin Kojtal ec3fc672a1
Merge pull request #12215 from u-blox/ubx_get_ip_addr
Cellular: Implementation of virtual get_ip_address funtion in ublox-api
2020-01-09 12:43:12 +01:00
Martin Kojtal 1fb9dd7ddd
Merge pull request #12122 from AnttiKauppila/visibility_fixes
ATHandler refactoring
2020-01-09 12:05:08 +01:00
Martin Kojtal 974baaf199
Merge pull request #12143 from VeijoPesonen/blockdevices_testable
Blockdevice config changes to make it possible to run littlefs filesystem tests
2020-01-09 12:04:20 +01:00
Martin Kojtal 222d31c2b6
Merge pull request #12037 from kjbracey-arm/sharedptr_move
SharedPtr: add move operations
2020-01-09 12:03:45 +01:00
Chun-Chieh Li 4405ab46b6 ESP8266: Simplify flow control and enable per-socket reconnection
1.  Fix 'spurious close' by adding close() in open(). 'spurious close' gets frequent and cannot ignore when send() changes to asynchronous. User can retry open() until 'spurious close' gets true.
2.  Allow only one actively sending socket because:
    (1) ESP8266 AT packets 'SEND OK'/'SEND FAIL' are not associated with socket ID. No way to tell them.
    (2) In original implementation, ESP8266::send() is synchronous, which implies only one actively sending socket.
3.  Register 'SEND OK'/'SEND FAIL' oobs, like others in ESP8266::ESP8266 constructor. Don't get involved in oob management with send status because ESP8266 modem possibly doesn't reply these packets on error case.
4.  Now that ESP8266::send() changes to asynchronous, drop the code with _parser.recv("SEND OK")/_parser.recv("SEND FAIL"). _parser.recv("SEND OK")/_parser.recv("SEND FAIL") and 'SEND OK'/'SEND FAIL' oobs both consume 'SEND OK'/'SEND FAIL' packets and complicate flow control.
2020-01-09 12:48:22 +02:00
Martin Kojtal dbb0695311
Merge pull request #12202 from LMESTM/Increase_MSI_Freq_out_of_deep_sleep
Increase MSI clock frequency when exiting deep sleep
2020-01-09 10:49:20 +01:00
Przemyslaw Stekiel db8e77672f tests-mbed_hal-common_tickers: adapt ticker_interrupt_test() test case for high frequency tickers
On some targets with very fast counters used for us ticker (e.g. 26 MHz) tested interrupt delays provided in the ticker_timeout array may be too short (execution of the set_interrupt() function takes longer than the tested delay).
We will skip tested ticker delay if the delay is less than assumed max set_interrupt() function execution time (20 us).
Also, the test array will be extended.
2020-01-09 08:32:30 +01:00
mudassar-ublox 075a6fdd99 Override virtual get_ip_address funtion in ublox-api for targets UBLOX_C030_U201 and UBLOX_C027 2020-01-09 12:16:48 +05:00
Janne Kiiskila 0a7eb62b9d Size & sectors also for STM32WB55VGYx
The size was still 16 megabytes, while in reality it is one megabyte.
Added the sectors, too (see previous commit msg for details).
2020-01-08 22:00:41 +02:00
Janne Kiiskila 7816f29a57 Sector size definitions to index.json/STM32WB5xx
Adding manually the sector sizes now. The reference manual states
these chips have a fairly nice memory map as sectors are evenly sized
and fairly small. Quote from reference manual;

"The Flash memory is organized as follows:
• A main memory block containing 256 pages of 4 KB, each page with eight rows of
512 bytes."

https://www.st.com/content/ccc/resource/technical/document/reference_manual/group0/83/cf/94/7a/35/a9/43/58/DM00318631/files/DM00318631.pdf/jcr:content/translations/en.DM00318631.pdf
- chapter 3.3.1 Flash memory organization
- internal flash starts at address 0x0800 0000
2020-01-08 21:54:03 +02:00
Martin Kojtal 40b7901cfb
Merge pull request #12217 from OpenNuvoton/nuvoton_usbd
Nuvoton: Add DEVICE_USBDEVICE detection in usbd implementation
2020-01-08 17:00:23 +01:00
Martin Kojtal 8d94d4ce92
Merge pull request #12214 from kivaisan/move_string_to_pdp_type_to_cellularcontext
Cellular: Move string_to_pdp_type method to CellularContext
2020-01-08 16:59:58 +01:00
Martin Kojtal af03f839e2
Merge pull request #10959 from OpenNuvoton/nuvoton_m2351_psa
M2351: Support TFM level 1
2020-01-08 16:09:35 +01:00
Martin Kojtal c42125f890
Merge pull request #12151 from hugueskamba/hk-nrf-fix-baremetal-build
NRF5x: Fix baremetal linker error
2020-01-08 14:41:26 +01:00
Janne Kiiskila 51f22e2f59 Fix ROM size for STM32WB55RGVx (16 MB -> 1 MB)
Per feedback from STM the correct ROM size is 1 MB, instead of
16 MB. The KEIL source information is (in the pack itself) wrong, since
the KEIL webpage lists it as a 16 MB part, too - but if you look into
other sources - it is indeed 1 MB.
2020-01-08 15:39:02 +02:00
Janne Kiiskila dfb62a22bf CMSIS-pack update for STM32WB-family
Update of the tools/arm_pack_manager/index.json -file for the
STM32WB-chipset family.
2020-01-08 15:38:11 +02:00
Martin Kojtal 4b0c4a073c
Merge pull request #12216 from rvolosatovs/fix/unit-tests
Fix dl_channel tests
2020-01-08 14:04:25 +01:00
Martin Kojtal 1a6934adc4
Merge pull request #12081 from micgur01/master
Expose target_offset and header_offset parameters in targets.json
2020-01-08 14:01:57 +01:00
cyliangtw b924a922a8 Add DEVICE_USBDEVICE detection in usbd implementation to avoid compiler error on target without usb-device 2020-01-08 19:36:51 +08:00
Kevin Bracey ccd2a32ad1 MbedCRC: improve default constructors
Original default constructor implementation wasn't quite working
properly; it didn't cope with the new "mode_limit" parameter.

Change mechanism so that this now works:

    MbedCRC<POLY32_BIT_ANSI_CRC, 32, CrcMode::TABLE> crc;
2020-01-08 13:36:17 +02:00
Kevin Bracey 83a9606140 CRC tests: increase parameter reflection coverage
CRC tests failed to exercise handling of the initial and final-xor
values with respect to reflection parameters. Add tests covering this.

Expected behaviour is that the initial value is always non-reflected and
the final-xor happens after the optional output reflection.
2020-01-08 13:36:17 +02:00
Kevin Bracey c46a2ad6ba MbedCRC HAL test: remove duplicates 2020-01-08 13:36:17 +02:00
Kevin Bracey 094f22901f MbedCRC: handle init values better
Init values often need reflection, and use of `__RBIT` prevents constant
init being done at compile time (unless `__RBIT` uses a compiler
intrinsic, which it doesn't for GCC).

Rather than try to handle constants 0U and -1U with a special case to
avoid the RBIT, which can in turn lead to runtime bloat for nonconstant
inits, use a C++20 style is_constant_evaluated() check to switch between
C and assembly forms.

This reduces code-size for non-constant init, by eliminating a runtime
condition, and allows the bit-reversal of any constant init to happen at
compile time.
2020-01-08 13:36:17 +02:00