Commit Graph

800 Commits (fdcd70eff0131a95719ec68c5dba31a9495cec54)

Author SHA1 Message Date
Arto Kinnunen fdcd70eff0 802.15.4 Atmel RF driver update
Sync with master version v3.3.6
2021-06-22 12:54:56 +03:00
Arto Kinnunen 9867c3a77e 802.15.4 STM S2LP driver update
Update STM S2LP driver to version v1.0.8
2021-04-14 13:44:22 +03:00
Arto Kinnunen 0db42d0ffa 802.15.4 Atmel RF driver update
Sync with master version v3.3.5
2021-04-14 13:41:39 +03:00
Arto Kinnunen 32f52fe8c5 Revert "Update PSA auto-generated components and services"
This reverts commit 2a316fe73b.
2021-04-09 12:34:12 +03:00
Mahesh Mahadevan b62980496d MIMXRT1050: Enable FlashIAP support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:44:43 +02:00
Arto Kinnunen 522bde1352 802.15.4 Atmel RF driver update (v3.3.4)
Sync with master version v3.3.4
2021-01-21 11:12:05 +02:00
Arto Kinnunen 72a6a13241 802.15.4 Atmel RF driver update (v3.3.2)
Sync with master version v3.3.2
2020-09-07 11:04:49 +03:00
Arto Kinnunen 682ece59b3 802.15.4 STM S2LP driver update (v1.0.7)
Update STM S2LP driver to version v1.0.7
2020-09-07 11:02:23 +03:00
Arto Kinnunen 26b53ec9d8 802.15.4 Atmel RF driver update
Sync with master version v3.3.1
2020-08-18 12:05:48 +03:00
Arto Kinnunen e7508ea0f8 802.15.4 STM S2LP driver update
Sync with master v1.0.6
2020-08-18 12:05:17 +03:00
adbridge 2a316fe73b Update PSA auto-generated components and services 2020-08-12 12:37:10 +01:00
Chun-Chieh Li 935134e2fe ESP8266: Add retries to avoid spurious close in blocking mode
With send(...) changing to non-block, modem can be busy in sending previous data and 'busy' the current 'AT+CIPCLOSE' command.
In blocking mode, add retries to avoid spurious close to some degree.
This is required to pass GT netsocket-tcp/netsocket-tls tests which expect close(...) to be OK.
2020-07-01 16:03:49 +08:00
Michal Paszta 5a163b14bd ESP8266: accept partial writes for TCP and clean up code 2020-06-19 17:54:36 +08:00
Chun-Chieh Li 89e2406ab2 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-06-19 17:54:34 +08:00
Michal Paszta 8c5cc71081 ESP8266: Introduce single send_status instead of two flags 2020-06-19 17:46:04 +08:00
Michal Paszta 9669a4f7bb ESP8266: Improve error handling and partial sends 2020-06-19 17:46:02 +08:00
Michal Paszta 5f4ba9d3df ESP8266: add a retry mechanism to avoid duplicate data sends
We are now checking if ESP8266 has confirmed receiving data over serial
port with an undocumented (but existing) "Recv x bytes" message. Next we
are explicitly waiting for an official "SEND OK".
2020-06-19 17:45:55 +08:00
Anna Bridge 82e2f9016c
Merge pull request #13080 from artokin/nanostack_release_12_3_0_to_5_15
[mbed-os-5.15] Nanostack release v12.3.0
2020-06-12 14:47:34 +01:00
Arto Kinnunen 85b3d20ee6 802.15.4 MCR20A RF driver update
Sync with master version v1.0.9
2020-06-08 14:24:31 +03:00
Arto Kinnunen 34273a4a78 802.15.4 Atmel RF driver update
Sync with master version v3.3.0
2020-06-08 14:20:00 +03:00
Arto Kinnunen 84d9e62f24 802.15.4 STM S2LP driver update
Sync with master v1.0.5
2020-06-08 14:17:30 +03:00
Darryl Green f7fdee385f Remove references to mbed-crypto
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:04:18 +01:00
Darryl Green 90ceefce56 Implement psa_hash_*() functions 2020-04-23 12:34:58 +01:00
Arto Kinnunen cc13a5b571 Update Atmel 802.15.4 RF driver
Update to version v3.1.0.
2020-04-16 11:44:50 +03:00
Arto Kinnunen 9f2cd03bda Update S2LP 802.15.4 RF driver
Update driver to version 1.0.2
2020-04-16 11:44:35 +03:00
Darryl Green 65e91244fa crypto: Use updated ECC curve macros 2020-04-07 11:30:31 +01:00
Jaeden Amero 7ed3f9c998 crypto: Update the service for Mbed Crypto 3.x
Update Mbed OS's PSA Crypto service to work with Mbed Crypto 3.x.

- psa_asymmetric_verify() is now called psa_verify_hash().
- psa_asymmetric_sign() is now called psa_sign_hash().

Compatibilty wrappers are provided via crypto_compat.h for source-level
backwards compatibility.
2020-04-07 10:22:00 +01:00
Arto Kinnunen 1a5cf1f9c2 Update 802.15.4 RF drivers
Update atmel-rf-driver to version v3.0.9
Update mcr20a-rf-driver to v1.0.8
2020-02-21 11:12:47 +02:00
Arto Kinnunen 3fd01edf59 RF802.11.4 S2LP driver sync with dev repository
Sync with version v1.0.1 in development repository.
2020-02-21 11:01:30 +02:00
adbridge f86022a61d Fix indentation levels for comments in psa file 2020-02-05 16:34:55 +00:00
adbridge d27ace3454 Update PSA auto-generated components and services 2020-02-05 15:41:10 +00:00
Pawel Zarembski feb2952cb2 hani_iot: add spif storage config 2020-02-05 15:25:11 +00:00
Andrew Chong 14f27720a2 Updated the code fix of timer and Mbed TLS. 2020-02-05 15:09:40 +00:00
Antti Yli-Tokola b87a067434 Make ESP8266 compatible with non rtos build 2020-02-05 14:40:24 +00:00
adbridge 5d947032ba Revert "Update PSA auto-generated components and services"
This reverts commit eedfd64bc1.

The only changes in this commit are white space changes which
are actually wrong and breaking the astyle checks.
2019-12-11 11:54:24 +00:00
adbridge eedfd64bc1 Update PSA auto-generated components and services 2019-12-11 10:52:57 +00:00
Przemyslaw Stekiel 66fbe32c66 Add static pinmap support: SDBlockDevice, kvstore, system storage
This is done in order to enable static pin-map for Mbed Cloud Client Example. This should give extra ROM savings, ~1KB.
2019-12-11 10:45:56 +00:00
Hugues Kamba 20f41a0540 LPC55S69_NS: Fix baremetal compilation error
As the `psa` library is not included in the baremetal profile, perform
a TFM system reset only if the `psa` library is included in
the build otherwise perform a normal CMSIS system reset.
2019-11-28 14:53:31 +00:00
Martin Kojtal ffdd54315f
Merge pull request #11941 from michalpasztamobica/remove_internal_string_apis
Remove string-based API usage within mbed-os
2019-11-28 14:26:03 +01:00
Michal Paszta 83cd0d6c1a ESP8266: add SocketAddress-based API for get_ip_address, get_gateway and get_netmask 2019-11-27 20:02:27 +02:00
Martin Kojtal 5f7ecea00b
Revert "MbedCRC and CRC HAL revisions" 2019-11-26 13:45:37 +00:00
Jarkko Paso 41b25d5007 S2-LP: Preamble configuration to follow Wi-SUN FAN specification 2019-11-19 12:10:51 +02:00
Martin Kojtal fd22997b60
Merge pull request #11559 from kjbracey-arm/crc
MbedCRC and CRC HAL revisions
2019-11-13 18:24:04 +01:00
Kevin Bracey 8811972201 Adjust code for MbedCRC changes
* Make mbed_error use bitwise MbedCRC call rather than local
  implementation.
* Remove use of POLY_32BIT_REV_ANSI from LittleFS.
* Move some MbedCRC instances closer to use - construction cost is
  trivial, and visibility aids compiler optimisation.
2019-11-13 14:31:49 +02:00
Kyle Kearney 96cfc7393d Disable attempted 4-byte addressing for some boards
4-byte addressing has been seen to cause failures on NORDIC
boards and with Macronix memories. Suppress the attempt to enable it
on that hardware (via vendor quirks and a target check) until either
the failure cause can be fixed or a more robust suppression mechanism
is implemented.
2019-11-12 12:26:26 -08:00
Kyle Kearney 2526b9fc00 QSPIF: Handle fast mode enable via vendor quirks
Use a vendor id check to only perform this enable on devices which define the
 second configuration register where the fast mode enable bit lives.
Change _enable_fast_mode to use the standard status register reading and writing functions
2019-11-12 12:26:26 -08:00
Kyle Kearney 02dbf68e17 QSPIF: Handle parts with extra config registers
Default to 2 status registers, but update this value if necessary
 during vendor quirk handling for parts (currently only Macronix)
 which have one status register and two control registers. For the
 purposes of QSPIFBlockDevice, these are all considered status
 (or at least "status-like") registers because they are all written
 via the Write Status Register instruction.
Set the custom RDCR instruction for Macronix during quirk handling.
Update reading and writing of status registers to handle a variable
 number of status registers.
2019-11-12 12:26:25 -08:00
Kyle Kearney eb5494e7a9 QSPIF: Centralize handling of vendor quirks
Introduce a separate function for handling alterations to device interaction
which are not covered by the SFDP tables and therefore require checking against
the vendor id.
2019-11-12 12:26:25 -08:00
Kyle Kearney 26314d96c5 Don't clear quad enable when clearing block protection
QSPIFBlockDevice::_clear_block_protection() has logic to retain the
WIP and WEL bits in status register 1, but it failed to account for
the situation where the QE bit is also in status register 1.
In _sfdp_set_quad_enabled, note the status register and bit therein
for the quad enable, so that _clear_block_protection can retain it.
2019-11-12 12:26:25 -08:00
Kyle Kearney d2ef56859c QSPIF: Add back enable_fast_mode
This function writes a "config" register to ensure that the flash part
is in high performance mode, not low-power mode. This is required at
by at least MX25R6435F in order to operate at frequencies > 33MHz
(for reference, DISCO_L475VG_IOT01A runs the QSPI interface at 80 MHz).
The config register that this writes does not appear to be covered by
the SFDP spec (JESD216D.01) so this remains the status quo of
unconditional execution, as has been done on master since #8352.
2019-11-12 12:26:25 -08:00