Commit Graph

27849 Commits (mbed-os-5.15.3-rc1)

Author SHA1 Message Date
adbridge a1104ca1aa "Update secure binaries for ARM_MUSCA_A1_S (ARMC6)" 2020-04-27 13:42:33 +01:00
adbridge 8a31c24fb7 "Update secure binaries for LPC55S69_S (ARMC6)" 2020-04-27 13:35:02 +01:00
adbridge e69571dc0c Update Mbed version to 5.15.3 2020-04-27 13:24:35 +01:00
Martin Kojtal 52f1f28292
Merge pull request #12869 from kivaisan/fix_lwip_socket_close_with_traces_5_15
LWIP: don't pbuf_free(NULL) on socket close (5.15-branch)
2020-04-27 14:19:20 +02:00
Martin Kojtal ccef87e575
Merge pull request #12867 from teetak01/mbed-coap-v5.1.5-for-5.15
Update mbed-coap to version v5.1.5 for Mbed OS 5.15
2020-04-27 12:52:40 +02:00
Kevin Bracey 99344963d2 LWIP: don't pbuf_free(NULL) on socket close
`pbuf_free(NULL)` causes an `LWIP_ASSERT`. Make the call conditional.

Fixes #12184
2020-04-27 13:32:23 +03:00
Teemu Takaluoma e1af7be4e0 Update mbed-coap to version 5.1.5
BLOCK2 code-branch was missing handling for duplicate packets. As part of the fix, added also
a call to update the duplicate package data via a new function
sn_coap_protocol_update_duplicate_package_data_all.

The new implementation handles all CoAP messages, not just those with COAP_MSG_TYPE_ACKNOWLEDGEMENT.
2020-04-27 11:26:09 +03:00
Martin Kojtal dfa80ea210
Merge pull request #12863 from jeromecoutant/PR_12690_5_15
STM32 GCC Unspecified RTOS error
2020-04-27 09:40:23 +02:00
Martin Kojtal 0784ea2326
Merge pull request #12859 from 0xc0170/coap-5.15
Update mbed-coap to version 5.1.4
2020-04-27 09:39:20 +02:00
jeromecoutant 267f32ce25 STM32 GCC Unspecified RTOS error
#12690 on 5.15 branch
2020-04-24 14:02:32 +02:00
Martin Kojtal 8289f11eee
Merge pull request #12854 from devran01/add_psa_hash_func
Implement psa_hash_*() functions
2020-04-24 09:27:23 +02:00
Antti Yli-Tokola 7edaf6dc7c Update mbed-coap to version 5.1.4
Add also 4.13 (Request Entity Too Large) responses to duplicate info list.

Add client library configurations for DEFAULT_RESPONSE_TIMEOUT and SN_COAP_DUPLICATION_MAX_TIME_MSGS_STORED.

Increased the default timeouts of DEFAULT_RESPONSE_TIMEOUT and SN_COAP_DUPLICATION_MAX_TIME_MSGS_STORED to 300 seconds.
These two are critical parameters for low-bandwidth high-latency networks. The defaults should be more geared towards such networks that are likely to have issues with transmissions.
The increased defaults can increase the runtime HEAP usage when there is a lot of duplicates or retransmissions.
2020-04-24 08:18:21 +01:00
Darryl Green 90ceefce56 Implement psa_hash_*() functions 2020-04-23 12:34:58 +01:00
Martin Kojtal 61c5c74847
Merge pull request #12845 from LDong-Arm/mbed-os-5.15
Backport SweynTooth fix for Cordio to 5.15
2020-04-22 18:03:41 +02:00
Martin Kojtal 27ac3d4622
Merge pull request #12813 from artokin/nanostack_relase_to_mbed_os_5_15
[mbed-os-5.15] Nanostack release to mbed-os-5.15 branch
2020-04-22 13:43:35 +02:00
Martin Kojtal 500b299b44
Merge pull request #12842 from cy-arsm/cy-arsm/pr/fix_ipv6_dual_stack_interface
Remove ethernet interface logic for SoftAP and STA
2020-04-22 13:29:43 +02:00
Lingkai Dong 568c1f915f Port Cordio LE Secure Connections check from PacketCraft
This change is provided by Packetcraft (which maintains the
Cordio BLE stack) to address possible Sweyntooth vulnerabilities.

(cherry picked from commit c927773115)
2020-04-22 10:58:27 +01:00
Lingkai Dong 421becce8d Port Cordio SMP control block improvements from Packetcraft
This change is provided by Packetcraft (which maintains the
Cordio BLE stack) to address possible Sweyntooth vulnerabilities.

(cherry picked from commit 0402fe4efb)
2020-04-22 10:58:05 +01:00
Arun S 9b87551d40 Remove ethernet interface logic for SoftAP and STA
Issue: The problem is that there is a race condition introduced in that the LWIP thread is relying on the
interface as it is taken down by a application thread while calling disconnect.
In disconnect api called from application context, whd_emac_wifi_link_state_changed() will refer to netif interface
structure in its callback api netif_link_irq(netif). This netif will be cleared by remove_etherent_interface().
whd_emac_wifi_link_state_changed will post message to tcpip_thread. tcpip_thread will process the message and
call the callback api netif_link_irq(netif)
Calling sequence is whd_emac_wifi_link_state_changed -> remove_etherent_interface(). Hence there is a timing issue
that netif might be cleared first before tcpip thread process the message netif_link_irq(netif)

Fix: remove_etherent_interface() will post message to tcpip thread and tcpip:
thread process the message delete_interface()
which will actually remove the inferface from the netif_list.
Calling sequence is whd_emac_wifi_link_state_changed() message post -> remove_etherent_interface() message post.
message processing order netif_link_irq(netif) -> delete_interface().
Since both the processing is handled in single thread, processing of message is handled sequentially.
2020-04-21 22:15:25 +05:30
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
Arto Kinnunen bbf2db37c9 Merge commit 'd104328f556c60ee09bb316ffc700ba8f1deca19' into mbed-os-5.15
* commit 'd104328f556c60ee09bb316ffc700ba8f1deca19':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from fb7413b846..cc03296c27
2020-04-16 11:43:53 +03:00
Arto Kinnunen d104328f55 Squashed 'features/nanostack/sal-stack-nanostack/' changes from fb7413b846..cc03296c27
cc03296c27 Merge branch 'release_internal' into release_external
59397d17c4 Fixed Wi-SUN border router restart after settings change
8295a43668 PAE authenticator TLS authentication limit based on dynamic value
2776cfef50 RPL config update not re-start whole BR again just increment version number and with new parameters.
bec4d48946 Fixed FHSS testing now it follow configured channel count not a wi-sun configured Default.
b9cad9d362 Remove floating point literals from Thread code
423a48f48b RPL link etx validation update
89a497a386 Merge branch 'release_internal' into release_external
c8cc6601fd Merge pull request #2336 from ARMmbed/sync_with_mbedos
ac5f369d70 MBEDTLS_SSL_EXPORT_KEYS added to Nanostack's tls_sec_prot_lib
6522a086ef Added missing optimizations based on mbedtls/baremetal.h config
0e8739fae3 Added new global rng, needed for MbedTLS optimisations
d5db37eec8 Prepare for upcoming MbedTLS changes
4271a9dda9 Merge pull request #2335 from ARMmbed/sync_with_mbedos
e2db6ffefb Fixed error of function 'mac_fcf_lenght'
28fc2a9543 Fixed  error of structure
194e81beda Fixed  spelling mistake of structure
00ea3fb83c Remove test files
d7f7cc582a Merge branch 'release_internal' into release_external
132cd12107 Merge pull request #2333 from ARMmbed/sync_with_mbedos
550a78e544 Fix function spelling mistake in Thread
74c60242e1 Fix function spelling mistake in border_router.c
89830ecf1a Fix function spelling mistake in iphc_decompress.c
1728ae12dc Fix function spelling mistake in lowpan_context.c
ed5d253fcc Fix function spelling mistake in lowpan_context.h
ecbca0a2ed Fixed typo 'thead' in thread_neighbor_class.h
071911b30a Changed nanostack API network size to be a range of values
4756be4766 NEW API for Validation RX Unicast schedule channel.
0b48e5c018 Channel Mask update ,support for excluded Channels and FHSS API pdate
ead1ade5a7 Start sending PAS message after EAPOL parent TX fails.
8de473b245 Implemented 802.15.4 mode setting (#2328)
975b9e670b Added missing configuration api empty functions
f7db06eb1e Added configuration storage (#2283)
e9561f0fe4 Removed mbedTLS internal include file
fe812c3c1f Changed certificate error message wording to be less fatal
97aaf5f613 Add network property API to Nanostack (#2318)
cfd1a4d271 Fixed Route cost calculation
5094614813 Added opeation mode validation for detect unsupported values.
44f85aaf4b Enabled RPL candidate list filtering and only certificate setup accept without limit.
145c7399b3 Wi-sun address registration trigger update
d492575adb Modified ARO registrations timeouts from the address lifetime
b898f04b5b Removed Extra version number update at revocation start.
b9d14097e2 Wi-sun config message consustent filter
dcebff9bb5 Use RPL parent soft filtering only after bootstrap.
523593e014 Fixed Broken new channel mask update.
a3bcc2d2c8 Removed the PAN version change requirement from routers
bc919d8241 Merge pull request #2315 from ARMmbed/merge_release_internal_to_master

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: cc03296c27fbe26663182d90586e2d31f140e300
2020-04-16 11:43:53 +03:00
Arto Kinnunen 9f3c053626 Merge commit '4daaaf126d9dfbfcbe638753573139d95442da1f' into mbed-os-5.15
* commit '4daaaf126d9dfbfcbe638753573139d95442da1f':
  Squashed 'features/nanostack/coap-service/' changes from e5e0c138e6..5aa54b8e62
2020-04-16 11:42:16 +03:00
Arto Kinnunen 4daaaf126d Squashed 'features/nanostack/coap-service/' changes from e5e0c138e6..5aa54b8e62
5aa54b8e62 Merge pull request #127 from ARMmbed/sync_with_mbedos
6fe78412d2 Follow Mbed OS coding style
2b708be451 trace group defiined for shared_rng
d4c2caca41 more error handling added for ctr and hmac
cace1e9c22 Added missing optimizations based on mbedtls/baremetal.h config
2cc7442ba5 Added new global rng, needed for MbedTLS optimisations
f861157576 Prepare for upcoming MbedTLS changes

git-subtree-dir: features/nanostack/coap-service
git-subtree-split: 5aa54b8e622ec2b44bdf323cc02bd1cfc5ffd904
2020-04-16 11:37:16 +03:00
Martin Kojtal 565ab14981
Merge pull request #12780 from kyle-cypress/pr/cypress-remove-sbsyskit
Cypress: Remove CYSBSYSKIT_01 from 5.15
2020-04-09 20:53:24 +02:00
Kyle Kearney 6554e3951e Revert "Backport #12603: Add CYSBSYSKIT_01"
This reverts commit 4e6692b529.
There are issues with wifi connectivity on this target that mean
it is not ready to ship with 5.15.2.
2020-04-08 14:14:11 -07:00
Martin Kojtal 757f14b807
Merge pull request #12776 from JarkkoPaso/update_stm32_emac_ethernet_driver
Update stm32 emac ethernet driver
2020-04-08 18:35:32 +02:00
Martin Kojtal 64b10f450d
Merge pull request #12767 from Patater/update-to-tls-2.21.0
Upgrade to Mbed TLS 2.21.0 and Mbed Crypto 3.1.0
2020-04-08 15:19:01 +02:00
Martin Kojtal 3db7cd42da
Merge pull request #12771 from kyle-cypress/pr/cypress-backport-whd-assert
Cypress: Partial backport of #12769
2020-04-08 15:18:31 +02:00
Arto Kinnunen 38f9a09f12 Update STM32 EMAC driver based on review
-Fix len type
-Use ETH_RX_BUF_SIZE instead of hard-coded value 1500
2020-04-08 14:11:50 +03:00
Arto Kinnunen 6d2bc4f144 Update STM32 EMAC driver - limit RX frame length
DISCO_F769NI EMAC driver may return ethernet packet with illegal
length when driver is under heavy load. In one case, the received
bytes indicate frame length of 53 bytes but advertised data length
was 65518 bytes. In another case EMAC driver variable
`EthHandle.RxFrameInfos.length` contained value 0xFFFF FFFC.

As a work-around accept only 1-1500 bytes long ethernet packets.
2020-04-08 14:11:21 +03:00
Martin Kojtal 067d7eb166
Merge pull request #12724 from RyoheiHagimoto/renesas_bl_515
RZ_A1H and GR_LYCHEE: Enable bootloader support (Mbed OS 5.15)
2020-04-08 10:05:44 +02:00
Martin Kojtal 82fc228bdf
Merge pull request #12717 from 0xc0170/fix_sleep_stm32f4
Add fix for STM32F4 hardfault in sleep mode
2020-04-08 08:57:57 +02:00
Martin Kojtal 9929ddd038
Merge pull request #12723 from AnttiKauppila/mbedtls_fixes5.15
Mbedtls fixes for 5.15.2
2020-04-08 08:57:12 +02:00
Martin Kojtal eaeb983a9e
Merge pull request #12650 from kivaisan/cellular_alt1250_mbedos_5_15
Cellular: ALT1250 PPP cellular driver for mbed-os 5.15
2020-04-08 08:56:30 +02:00
midd d55117f2aa WHD: Remove an assert from get_rssi()
This assert in WhdSTAInterface.cpp causes rssi greentea test to fail
on Cypress parts. This is because the rssi GT test expects the negative
test case to return 0 and not assert.
2020-04-07 12:25:18 -07: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
Jaeden Amero 8eef39b8f1 crypto: Upgrade to Mbed Crypto 3.1.0 2020-04-07 10:11:16 +01:00
Jaeden Amero ec898fb1fa tls: Upgrade to Mbed TLS 2.20.0 2020-04-07 09:57:37 +01:00
Martin Kojtal e1d7b5a8cf
Merge pull request #12753 from kyle-cypress/pr/cypress-5.15-backport
Cypress: Backport PRs from 6.0 to 5.15.2
2020-04-07 10:49:20 +02:00
Martin Kojtal 41e1c2da5b
Merge pull request #12727 from ARMmbed/mergify/bp/mbed-os-5.15/pr-12693
USBMSD security updates (bp #12693)
2020-04-07 09:44:29 +02:00
Ryan Morse fa6bfb26eb Backport #12701: Custom BT Firmware for CYW9P62S1_43012EVB_01 2020-04-02 15:04:24 -07:00
Dustin Crossman 4e6692b529 Backport #12603: Add CYSBSYSKIT_01 2020-04-02 15:02:44 -07:00
midd be4dd8ee23 Backport #12492: Update psoc6cm0p to version 1.1.1.
This version is built with PSoC 6 Peripheral Driver Library (PDL) 1.4.1
2020-04-02 14:59:54 -07:00
Dustin Crossman ca47da6018 Backport #12422: Cypress Asset Update
- Update psoc6pdl to version 1.4.1.2240
- Update psoc6 core_lib to version 1.1.1.11109.
- Update psoc6hal to 1.1.1.11145.
- Store RTC century and RTC state information in persistent BREG register.
2020-04-02 14:58:48 -07:00
Dustin Crossman a15ed110a6 Backport #12421: Cypress target reorganization
- Remove CY8CMOD_062_4343W and merge into CY8CPROTO_062_4343W.
- Remove CY8CMOD_062S2_43012 and merge into CY8CKIT_062S2_43012.
- Remove CY8CMOD_062S3_4343W and merge into CY8CPROTO_062S3_4343W.
- Removed CY8CMODs from targets.json.
- Removed unnecessary PSOC6Code.complete post binary hook from cypress targets.
2020-04-02 14:56:36 -07:00
midd 8199e25f24 Backport #12394: Fix Cypress 1M SDIO + other minor bugs
- Remove wounding for the hardware CRYPTO block. The PSoC 6 MPN CYW9P62S1_43012EVB_01 was revised
  to add the hardware crypto block.
- Add missing error checks for emac power up.
- Add a multiplied by 2 in the SDIO clock divider calculation to account for internal UDB divider.
  Note: Fixes issues with intermittent WiFi firmware load failures on CY8CKIT_062_WIFI_BT,
  CYW943012P6EVB_01, CYW9P62S1_43012EVB_01, CYW9P62S1_43438EVB_01.
2020-04-02 14:49:22 -07:00
Shuopeng Deng a0ee701d83 Backport #12097: Cypress: Fix IAR Warnings
fix 'enumerated type mixed with another type' IAR warnings
fix 'statement is unreachable' IAR warning
2020-04-02 14:30:46 -07:00