Commit Graph

205 Commits (c5747c44fa79ca1320da0f889c720a92c8bc0e6e)

Author SHA1 Message Date
Philipp Steiner c17d4f04c5 Update Comments 2019-01-25 14:29:59 +00:00
Philipp Steiner afd7f4133a Add SPIF_ULBPR command also to QSPIFBlockDevice and SPIFReducedBlockDevice 2019-01-25 14:29:59 +00:00
Philipp Steiner 331c66d4fb Add SPIF_ULBPR command and replace wrong command to clear all write-protection bits in the Block-Protection register. 2019-01-25 14:29:59 +00:00
Veijo Pesonen 44696009bd adds an error check for data overflow from modem side 2019-01-25 14:29:59 +00:00
Veijo Pesonen 1eed2668ba fixes a debug print 2019-01-25 14:29:59 +00:00
Veijo Pesonen 64bb010541 Drop signalling SIGIO artificially if UDP send fails
With TCP it's desirable that SIGIO wakes up the application to check
if there is buffer space space available on the mode. With UDP the
behavior is not acceptable as we don't know if the other endpoint is
there as connection establishment is missing. Hence buffers might
stay full forever.
2019-01-25 14:29:59 +00:00
Veijo Pesonen e495866eea fixes disconnect to check the state from modem
Additionally to internal bookkeeping lets check from the modem
that what is connection state in disconnect. There might be
inconsistencies.
2019-01-25 14:29:59 +00:00
Mel W 6309edaa57 some minor streamlining and editorial changes 2019-01-14 13:06:14 +00:00
Juha Ylinen 06cf7c9546 SDBlockDevice docs update 2019-01-14 13:06:14 +00:00
Seppo Takalo 0e001598c3 Flush ESP8266 serial input buffers after HW reset 2019-01-14 13:06:14 +00:00
Veijo Pesonen 91832e6e78 socket_send() returns WOULD_BLOCK if server won't accept
Driver must return NSAPI_ERROR_WOULD_BLOCK if a server won't accept
data from the modem and the modem's buffers are full. In case that
socket is closed driver returns NSAPI_ERROR_CONNECTION_LOST.
2019-01-14 13:06:14 +00:00
Juha Ylinen 090f06f2e0 SPIFBlockDevice docs update 2019-01-14 13:06:14 +00:00
Veijo Pesonen 0f9098d239 Fixes AT-layer socket_open-functions
When a socket open fails it musn't be treated as fatal error. Returning
a device error which is then handled by an application is the correct
solution
2019-01-14 13:06:14 +00:00
Seppo Takalo ec57224a8d ESP8266: Set HW reset time to 2ms 2019-01-14 13:06:14 +00:00
offirko 2b9f5dacc7 reduce info traces to debug level to prevent logs overflow 2019-01-14 13:06:14 +00:00
Yossi Levy cd53b0afe1 This commit fixes an issue in which boards with FlashIAP block device enabled fails the FlashIAP block device tests exists under the component directory. That's because they have no start address and size configured in the mbed_lib.json file. In order to simplify the test for targets with no definitions in the mbed_lib.json, the test will calculate the start address as the first sector after the application ends and up to the max size available. 2019-01-14 13:06:14 +00:00
Yossi Levy db1dadee74 Documnent changes and adding const to get_type method 2019-01-14 13:06:14 +00:00
Yossi Levy 5a83c77b88 astyle fix 2019-01-14 13:06:14 +00:00
Yossi Levy 8f2b5efe0d Add get_type method to block devices. 2019-01-14 13:06:14 +00:00
Antti Kauppila 62c501e32f Cleaned 802.15.4_RF to not have mbed.h includes 2019-01-14 13:06:14 +00:00
Antti Kauppila aebb55baa1 mbed.h includes removed 2019-01-14 13:06:14 +00:00
Michal Paszta 03058ba4e1 Prevent ESP8266 stopping HW control on init 2019-01-14 13:06:14 +00:00
Deepika 7dda22f584 Resolved: [Error] main.cpp@115,34: [Pe266]: "size" is ambiguous
`size` is part of std library since c++17, and results in build
errors for IAR 8.x.
https://en.cppreference.com/w/cpp/iterator/size
2019-01-14 13:06:14 +00:00
Deepika 95d43532d3 Resolved warning: variable declared but never referenced 2019-01-14 13:06:14 +00:00
Deepika ee64d822d1 Resolve string literal error
Space needed between 2 string literals
    [Error] fopen.cpp@204,97: [Pe2486]: user-defined literal operator not found
2019-01-14 13:06:14 +00:00
David Saada c0226febbc Fix LTO build failures due to duplicate local types 2018-12-27 22:26:04 -06:00
Alastair D'Silva 5b29b7e6b5 Don't use define checks on DEVICE_FOO macros (mbed code)
The DEVICE_FOO macros are always defined (either 0 or 1).

This patch replaces any instances of a define check on a DEVICE_FOO
macro with value test instead.

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
2018-12-27 22:26:04 -06:00
Russ Butler 53e39edcde Fix ESP8266 "Link Type" errors after reset
As part of the ESP8266 connect sequence, ESP8266Interface::connect,
a software reset is performed. If the ESP8266 had been connected
previously then the ESP8266 will sometimes send a "WIFI DISCONNECT" OOB
message before performing the software reset. This causes the
ESP8266::_oob_connection_status to change its state (_conn_status) from
NSAPI_STATUS_DISCONNECTED to NSAPI_STATUS_CONNECTING. This causes
ESP8266Interface::_startup, called later in the boot seqeunce, to skip
ESP8266::startup. Without this call socket mux mode (CIPMUX=1) is never
enabled and all send commands using this format fail with a "Link Type"
error.

This patch fixes that problem by unconditionally calling
ESP8266::startup as part of the ESP8266 connect sequence.
2018-12-27 22:26:02 -06:00
Fred.Li 64f2d5e708 Fix wrong PIN config for RTL8195AM platform
Merge from https://github.com/ARMmbed/sd-driver/pull/110
2018-12-27 22:26:02 -06:00
jeromecoutant 624695992c STM32 QSPIF: add DISCO_L496AG, DISCO_F746NG and DISCO_F769NI 2018-12-27 22:26:01 -06:00
offirko 0669a02570 Favor QSPI Bus mode 1-4-4 over QPI QPI may have slightly better performance, but it is not supported by all targets. It requires register setup between each Read and Program/Erase commands, which might damage the overall performance eventually. 2018-12-27 22:26:00 -06:00
Seppo Takalo 3ef71f2dc9 ONME-4007: Fix mbed_lib link from ESP8266 Readme.md
ONME-4007: Fix mbed_lib link from ESP8266 Readme.md
2018-12-27 22:25:56 -06:00
Russ Butler c8c68381d6 Fix ESP8266 recv_udp timeout with flow control
UDP packets are always received as OOB data. Without checking for
new OOB data with a call to "_process_oob" then recv_udp never blocks.
If a UDP packet is not available then NSAPI_ERROR_WOULD_BLOCK is
returned. This causes mbed-os's DNS handling to always fail when
flow control is enabled.

This patch fixes recv_udp by always calling "_process_oob" regardless
of if flow control is enabled. This ensures that recv_udp follows the
timeout parameter and waits for new data to arrive.
2018-12-27 22:25:55 -06:00
Michal Paszta 1931c2cd27 Fix compilation warnings (apart from nanostack) 2018-12-27 22:25:55 -06:00
Mikhail Maltsev d0bef03aed Fix C++11 build with Arm Compiler 6
Currently there are two issues which prevent building Mbed OS with
-std=gnu++11 when using Arm Compiler 6:
* NanostackRfPhys2lp.cpp contains a narrowing conversion in a braced
  initializer list
* ns_types.h includes <stdalign.h> which Arm Compiler 6 currently
  does not provide

This patch fixes both issues. The first one is fixed by changing the
underlying type of the corresponding enumeration when the code is
compiled as C++11. The second issue is worked around by avoiding the
use of <stdalign.h> header for Arm Compiler versions prior to 6.12.
2018-12-27 22:25:55 -06:00
Michal Paszta 56363775f2 ESP8266 send returns WOULD_BLOCK error when busy 2018-12-11 16:14:50 -06:00
Veijo Pesonen c22ac0c279 Fixes namespace collision 2018-12-11 16:14:50 -06:00
Veijo Pesonen 7210b97c59 powers down the modem on disconnect 2018-12-11 16:14:50 -06:00
Veijo Pesonen 5799daef72 Fixes connect, and network-status logic 2018-12-11 16:14:50 -06:00
Veijo Pesonen fc548ec367 Fixes AT command timeout values from reset&connect 2018-12-11 16:14:50 -06:00
Veijo Pesonen c10d276928 Adds support for controlling HW reset of the modem from the driver
While connecting will run HW reset for the modem if reset wire is attached to a know pin.
2018-12-11 16:14:50 -06:00
Deepika ce08039c30 Add Serial + EventQueue dependency to ESP8266 2018-12-11 16:14:50 -06:00
Deepika 771b69e405 Components if using RTOS modules should be enabled only when RTOS is present
Build failures were observed when rtos is ignored with .mbedignored.
Components dependent on RTOS should be guarded with MBED_CONF_RTOS_PRESENT
2018-12-11 16:14:50 -06:00
Deepika 0b38cb85f8 Fix header files used in esp8266
"ns_types.h" results in build failure when networking feature is ignored with
.mbedignored. ESP8266 component should be enabled only when NSAPI is present.
2018-12-11 16:14:50 -06:00
Deepika ea96ee9534 Fix header files used in 802.15.4_RF
"ns_types.h" is not used, but included. Results in build failure when networking
feature is ignored with .mbedignored

"mbed_trace.h" not used.
2018-12-11 16:14:49 -06:00
Oren Cohen 74f5322a1d Fix includes 2018-12-11 16:14:45 -06:00
Oren Cohen fee5e42f95 Fix PSA crypto partiotion and tests
* Styling
* Correct error codes on failing connection
* Add panics where needed
* correct skip defines
* Fix psa_spm_init_refence_counter bug
2018-12-11 16:14:45 -06:00
Veijo Pesonen 891d756a1a Reports NSAPI_STATUS_CONNECTING when trying to reconnect 2018-12-11 16:14:45 -06:00
Michal Paszta a10e299bd9 ESP8266 disconnect returns ERROR_NO_CONNECTION 2018-12-11 16:14:45 -06:00
Veijo Pesonen 1108d8d96c Truncates TCP stream and NACKs UDP datagram when sending too much data
ESP8266 maximum packet size when sending is 2048 bytes.
2018-12-11 16:14:45 -06:00