Commit Graph

27904 Commits (cb94e609e108c2f19d366bccc0789431424f9c75)

Author SHA1 Message Date
Arto Kinnunen cb94e609e1 Merge commit '4b041bf749b46884727bf627a1a73da6d756ccd9' into feature-wisun
* commit '4b041bf749b46884727bf627a1a73da6d756ccd9':
  Squashed 'features/frameworks/nanostack-libservice/' changes from 9a61e73787..c6cae6992a
2020-05-11 11:49:01 +03:00
Arto Kinnunen 4b041bf749 Squashed 'features/frameworks/nanostack-libservice/' changes from 9a61e73787..c6cae6992a
c6cae6992a Merge pull request #90 from ARMmbed/sync_with_mbedos
bc57095abb Netsocket/lwIP Stack: Remove support for ARM Compiler 5

git-subtree-dir: features/frameworks/nanostack-libservice
git-subtree-split: c6cae6992a12f62f19cf7875f889304d5c1ded6d
2020-05-11 11:49:00 +03:00
Arto Kinnunen 314eb7a586 Merge commit '1687b4aa4f8e24dffa1b019757c081da48bf526d' into feature-wisun
* commit '1687b4aa4f8e24dffa1b019757c081da48bf526d':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from cc03296c27..9a2166869f
2020-05-11 11:42:39 +03:00
Arto Kinnunen 1687b4aa4f Squashed 'features/nanostack/sal-stack-nanostack/' changes from cc03296c27..9a2166869f
9a2166869f Merge branch 'release_internal' into release_external
8e72b80826 MAC CCA thr: Check if channel out of range (#2363)
146a0a38c2 Corrected trace on authenticator
d04a96dd48 Merge pull request #2361 from ARMmbed/sync_with_mbedos
2c2b915198 Added empty function for ns time callback
76ac0decce Remove NCS36510 target
0258ac3197 Remove KW24D target
788f01b93d Netsocket/lwIP Stack: Remove support for ARM Compiler 5
2fbc7a1c4f Corrected invalid memory read on access revoke
941b9b42dc Updates to stagger/latency (#2358)
c2abaaafba Corrected defects
1811194bf2 Corrected warning trace, validations and ut stubs
69e2d1989e Added NS filesystem and interface to application
c5b6993ddd refactored packet ingress
a05605eca3 Unsecured packets will be acked by default automatically.
36dfb2924f MAC: Implemented automatic CCA threshold (#2353)
0396b9738c Revert EAPOL simplify failure handling and focus this problem later on.
b2fe3d49db Ignoring authentication failure if security protocol already started
11de56dad8 Added info API for Wi-SUN border router
87a4f691fe Added EAPOL key storage to authenticator and unified GTK storage (#2345)
ff1ca25ed7 EAPOL failure simplify and EAPOL relay agent add trace when eapol temp pool is empty
6667b31ae8 Update NA trace
34cdafe214 Temporary EAPOL neighbour entry Update and MAC MLME update
d092f833a8 Iotthd 3995 (#2347)
e2ea4e41f7 Disabled BR (TLS server) EC calculation queue
575985190d Changed the rate limiting function to calculate the values runtime
899e75510b Make it possible to update tr51 table to larger dynamically
8436669c10 Added configuration for DHCP lifetime value
da732bc28e When network name or PAN ID is changed authenticator updates MAC keys

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 9a2166869fb56c9ad3fb44b0561e2310444c28f1
2020-05-11 11:42:39 +03:00
Martin Kojtal 99c1667bae
Merge pull request #12931 from juhhei01/feature-wisun
[feature-wisun] Add possibility to configure Mesh MAC neighbourtable size.
2020-05-07 09:59:58 +02:00
Juha Heiskanen fe26e15c52 Add possibility to configure Mesh MAC neighbourtable size.
Accepted values are 5-255. MAC neighbour table size is limited to 8-bit number so thats why 255 is max value.
2020-05-06 11:07:28 +03:00
Arto Kinnunen 8d61f3ba46
Merge pull request #12883 from artokin/feature_wisun_backport_12522
[feature-wisun] Add getsockopt option to read network property
2020-05-05 13:07:24 +03:00
Arto Kinnunen 09f956095f Fix RTT/stagger API unit tests
Adjust RTT/stagger API unit tests to work in mbed-os-5.15 branch.
2020-05-04 11:09:02 +03:00
Arto Kinnunen 35d28d4aa5
Merge pull request #12657 from mikaleppanen/new_wisun_conf_param
Added new configuration parameters to Wi-SUN network interface and Border Router class
2020-04-29 16:16:30 +03:00
Martin Kojtal 3d03b7f497
Merge pull request #12878 from mikaleppanen/ns_kv_store
Added kv store adaptation to Nanostack file interface
2020-04-29 15:09:05 +02:00
Arto Kinnunen 4d8af9f333 Add getsockopt option to read network property
Add getsockopt options NSAPI_LATENCY and NSAPI_STAGGER to read
network specific timing constraints from socket.
-NS_LATENCY returns estimated latency to given address.
-NSAPI_STAGGER returns estimated initial delay that application
 should wait before transmitting data to network.

Application can use the new options to avoid network congestion by
adjusting transmission delays and retry timeouts.

Add wrappers to make API usage easier:
-get_rtt_estimate_to_address
-get_stagger_estimate_to_address

This is backport of the https://github.com/ARMmbed/mbed-os/pull/12522
2020-04-29 13:20:42 +03:00
Mika Leppänen 92704874cc Added kv store adaptation to nanostack file interface 2020-04-28 16:04:46 +03:00
Martin Kojtal 1e9f83f12a
Merge pull request #12868 from teetak01/mbed-coap-v5.1.5-for-wisun
Update mbed-coap to version v5.1.5 for feature-wisun
2020-04-28 12:08:11 +02:00
Teemu Takaluoma fab4092543 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:29:33 +03:00
Antti Yli-Tokola a8c96b82b1 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-27 11:29:28 +03:00
Mika Leppänen 7709193140 Added Wi-SUN Border Router class 2020-04-27 09:43:22 +03:00
Mika Leppänen 6219d75e64 Added new configuration parameters to Wi-SUN interface 2020-04-27 09:17:40 +03:00
Arto Kinnunen e519efd8fb
Merge pull request #12814 from artokin/feature_wisun_update_mbed_os_and_nanostack
[feature-wisun] Nanostack release to feature-wisun branch and update to mbed-os-5.15.2
2020-04-23 13:15:30 +03:00
Arto Kinnunen e1eb4c4e11
Merge pull request #12826 from artokin/fix_feature_wisun_tests
[feature-wisun] Fix feature-wisun tests
2020-04-22 08:40:49 +03:00
jeromecoutant 6963b987d1 FPGA CI TEST SHIELD: add test config json file 2020-04-17 16:11:00 +03:00
Arto Kinnunen 13f5df4b8b Update Atmel 802.15.4 RF driver
Update to version v3.1.0.
2020-04-16 14:25:25 +03:00
Arto Kinnunen 30c16c15eb Update S2LP 802.15.4 RF driver
Update driver to version 1.0.2
2020-04-16 14:25:15 +03:00
Arto Kinnunen 1317bf6df7 Merge commit '8696907765975bba8cb098c2772c89198c71a783' into feature-wisun
* commit '8696907765975bba8cb098c2772c89198c71a783':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from fb7413b846..cc03296c27
2020-04-16 14:23:56 +03:00
Arto Kinnunen 8696907765 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 14:23:55 +03:00
Arto Kinnunen 199407f4d4 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 13:08:27 +03:00
Arto Kinnunen 190eb9acfb Merge remote-tracking branch 'upstream/mbed-os-5.15' into feature-wisun
* upstream/mbed-os-5.15: (45 commits)
  Revert "Backport #12603: Add CYSBSYSKIT_01"
  Update STM32 EMAC driver based on review
  Update STM32 EMAC driver - limit RX frame length
  WHD: Remove an assert from get_rssi()
  crypto: Use updated ECC curve macros
  crypto: Update the service for Mbed Crypto 3.x
  crypto: Upgrade to Mbed Crypto 3.1.0
  tls: Upgrade to Mbed TLS 2.20.0
  Backport #12701: Custom BT Firmware for CYW9P62S1_43012EVB_01
  Backport #12603: Add CYSBSYSKIT_01
  Backport #12492: Update psoc6cm0p to version 1.1.1.
  Backport #12422: Cypress Asset Update
  Backport #12421: Cypress target reorganization
  Backport #12394: Fix Cypress 1M SDIO + other minor bugs
  Backport #12097: Cypress: Fix IAR Warnings
  Backport #12052: Fix for ARM issue 11859.
  Backport #12038: Remove qspi_frequency() call.
  Backport #12019: rework cypress lptimer hal
  Cellular: ALT1250 PPP cellular driver for mbed-os 5.15
  RZ_A1H and GR_LYCHEE: Enable bootloader support (Mbed OS 5.15)
  ...
2020-04-16 13:03:48 +03:00
Arto Kinnunen 04dacfaac3
Merge pull request #12766 from mikaleppanen/wisun_stats
Add Wi-SUN statistics interface
2020-04-15 15:55:00 +03:00
Arto Kinnunen 714708d842
Merge pull request #12774 from liugang-gavin/feature-wisun
Feature wisun
2020-04-15 12:27:13 +03:00
Mika Leppänen f28b8cbdf0 Added Wi-SUN statistics interface
Added network and MAC statistics to Wi-SUN interface.
2020-04-14 10:04:44 +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
Gavin Liu cfc63e3933 targets:MIMXRT1050: Add LPSPI4 support
Add LPSPI4 PIN configurations.

Signed-off-by: fred.li <fred.li@arm.com>
Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2020-04-08 18:05:11 +08:00
Gavin Liu 40090c9bc9 targets:MIMXRT1050: Update link file for application
For the application(firmware) booted by bootloader(OTA),
the image doesn't need the "flash_config" and "ivt" header.
So update the link file to support both kinds of application
(firmware) booted by bootROM and bootloader.

In default, the compilation will get the image with
"flash_config" and "ivt" header, for example the bootloader
compiling.

When compiling the OTA application image, please add the
line as below in the mbed_app.json file.

	"target.macros_add" : ["MBED_APP_COMPILE"]

This will remove the "flash_config" and "ivt" header in the
final image.

Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2020-04-08 17:01:07 +08:00
Gavin Liu 5d3b11baf1 targets:MIMXRT1050: Add QSPI Flash FLASHIAP support
Update the flash driver to support both Hyper Flash
and QSPI Flash.

In addition, the static function cannot be linked to
SRAM even defined by AT_QUICKACCESS_SECTION_CODE macro.
So remove all "static" modifier for the FLASHIAP
functions.

Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2020-04-08 17:01:07 +08:00
Gavin Liu e84699bb65 targets:TARGET_IMX: Fix the memset issue for FLASHIAP
The memset function from c library will be linked in flash
space, it's risk for FLASHIAP. So I wrote flexspi_memset
to replace the memset for IMX FLASHIAP, and put the function
into targets/.../TARGET_IMX/flash_api.c file. All IMX Soc
platforms can declare it as extern and use in their Soc
flexspi driver files.

Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2020-04-08 17:01:07 +08:00
Gavin Liu 5a01e3eee2 targets:TARGET_IMX: Fix the flash init risk
The flash access may fail when implementing flash
initialization. So there is risk for interrupt handler
which linked in flash space.

Add the critical section to avoid the risk.

Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2020-04-08 17:01:07 +08:00
Gavin Liu 9f0206c90c targets:MIMXRT1050: Add QSPI Flash boot support
NXP MIMXRT1050 EVK can support Hyper Flash or QSPI Flash with
small hardware reworks. Modify the XIP file to support boot
from the two kinds of Flash device. The Hyper Flash should be
the default device and defined in tartgets.json with the macro
"HYPERFLASH_BOOT". To select the QSPI Flash, just remove the
macro with the below line in any overriding json file.
	"target.macros_remove" : ["HYPERFLASH_BOOT"]

Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2020-04-08 17:01:07 +08: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