mbed-os/connectivity/nanostack/sal-stack-nanostack
Jamie Smith 86723f7dab
Synchronize changes with Mbed upstream: September 2023 edition (#185)
* Fix null pointer dereferencing

Add null check for return values of functions that are mostly (but not
always) checked for null.
E.g., since 98% of calls to protocol_stack_interface_info_get_by_id
check for null, it is likely that the function can return null values in
some cases, and omitting the check could crash the program.

* Update MAX32660 peripheral drivers with final ones that use by SDK

* Apply MAX32660 delta
Update mbed hal function as per of SDK update

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>

* M2354: Fix debug failure in Mbed Studio

In Mbed Studio, debugging, based on pyOCD, requires Mbed OS application code starting on the sector boundary.

Modification list:
1.  Update TF-M import assets with MCUboot header padding to sector aligned
2.  Following above, change header size argument (-H) in wrapper.py command line
3.  Following below, fix min-write-size (--align) to 4 (per flash_area_align()) in wrapper.py command line
    https://docs.mcuboot.com/design.html#image-trailer

Related issue:
https://github.com/ARMmbed/mbed-os/issues/15417

* Do not clear interrupt flag during initialization
This causes issue for repeaded initialization while using BufferedSerial mode

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>

* MAX32660, MAX32670 UART performance improvement

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>

* Handle negative values passed to close()

Calling close() with negative numbers causes out-of-bounds indexing of the filehandles array. For example, this can happen if open() returns an error and the value is later passed to close().

* Moved a { to the same line as if

Moved a { to the same line as if

* add nullpointer check in LWIP::socket_close

* Fix crash when using FDCAN3 RX IRQ on STM32G473 (and others)

* connectivity: drivers: Update Nuvoton M467 EMAC DMA_IE ctl

In IRQ Handler, to disable some interrupt type of DMA error.
It could avoid unexpected repeated interrupt.The masked bit of
DMA_IE could be recovered in next EMAC IRQ event.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>

* Add workaround for G474 hardfault

* update drivers STM32WL CUBE V1.3.0

* Changed static to weak

* Fix: Do not disable SPI for manual drive mode during transaction setup
It has been reported that disabling SPI module causes glitch for manual SS drive mode

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>

* make cellular event queue size configurable

update unit tests

---------

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>
Signed-off-by: cyliang tw <cyliang@nuvoton.com>
Co-authored-by: Mingjie Shen <shen497@purdue.edu>
Co-authored-by: Ahmet Polat <Ahmet.Polat@maximintegrated.com>
Co-authored-by: Sadik.Ozer <sadik.ozer@analog.com>
Co-authored-by: Chun-Chieh Li <ccli8@nuvoton.com>
Co-authored-by: alrvid <126816223+alrvid@users.noreply.github.com>
Co-authored-by: Jost, Chris <79271064+chrJost@users.noreply.github.com>
Co-authored-by: Joseph Duchesne <joseph@avidbots.com>
Co-authored-by: cyliang tw <cyliang@nuvoton.com>
Co-authored-by: Maxim Markin <mak22223@ya.ru>
Co-authored-by: Charles <hallard04@free.fr>
Co-authored-by: Lukas Karel <lukas.karel@world-direct.at>
2023-09-24 23:37:28 -07:00
..
doxygen Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 4a3c5c525b..225a4af94f 2021-09-23 13:04:04 +03:00
nanostack Merge commit '00253cb11629fab6f753682d89faa2ce7b4a213a' into nanostack_v15_1_0 2021-12-08 13:41:33 +02:00
source Synchronize changes with Mbed upstream: September 2023 edition (#185) 2023-09-24 23:37:28 -07:00
.gitattributes Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 4a3c5c525b..225a4af94f 2021-09-23 13:04:04 +03:00
.gitignore Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 4a3c5c525b..225a4af94f 2021-09-23 13:04:04 +03:00
.mbedignore Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 4a3c5c525b..225a4af94f 2021-09-23 13:04:04 +03:00
CMakeLists.txt Convert nanostack and lwipstack to STATIC libraries 2022-09-14 00:25:28 -07:00
DOXYGEN_FRONTPAGE.md Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 4a3c5c525b..225a4af94f 2021-09-23 13:04:04 +03:00
Doxyfile Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 4a3c5c525b..225a4af94f 2021-09-23 13:04:04 +03:00
LICENSE-Apache-2.0 Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 4a3c5c525b..225a4af94f 2021-09-23 13:04:04 +03:00
LICENSE-BSD-3-Clause Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 4a3c5c525b..225a4af94f 2021-09-23 13:04:04 +03:00
Makefile Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 4a3c5c525b..225a4af94f 2021-09-23 13:04:04 +03:00
NOTICE Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 4a3c5c525b..225a4af94f 2021-09-23 13:04:04 +03:00
README.md Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 4a3c5c525b..225a4af94f 2021-09-23 13:04:04 +03:00
include_dirs.mk Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 4a3c5c525b..225a4af94f 2021-09-23 13:04:04 +03:00
mbed_lib.json Squashed 'connectivity/nanostack/sal-stack-nanostack/' changes from 4a3c5c525b..225a4af94f 2021-09-23 13:04:04 +03:00
sources.mk Merge commit '00253cb11629fab6f753682d89faa2ce7b4a213a' into nanostack_v15_1_0 2021-12-08 13:41:33 +02:00

README.md

ARM Mesh networking stack

This repository contains the ARM mesh networking stack that provides support for the following mesh protocols:

  • 6LoWPAN with Neighbor Discovery (ND) and Mesh Link Establishment (MLE)
  • Wi-SUN

All networking stacks are using IEEE 802.15.4 based radios.

The full documentation is hosted in Mbed OS documentation.

On mbed OS, mesh networking stacks can be used through Mbed Mesh API and Network Socket API.

To see, how the mesh networking stack works, check the example application mbed-os-example-mesh-minimal.

6LoWPAN with ND and MLE

This networking stack is using standard 6LoWPAN and uses:

Wi-SUN

Wi-SUN (Smart Utility Networks) specification is standardized by Wi-SUN Alliance.

License

The software is partially provided under a Apache 2.0 license and partially BSD-3-Clause as described below.

This project also contains code from other projects as listed below. The original license text is included in those source files.

  • Public header files are provided under Apache 2.0 license.
  • Source code excluding Thread protocol, is provided under Apache 2.0
  • Source code implementing Thread protocol is provided under BSD-3-Clause
  • mDNS library is from FNET project and provided under Apache 2.0 license.