Commit Graph

28418 Commits (fdcd70eff0131a95719ec68c5dba31a9495cec54)

Author SHA1 Message Date
Jarkko Paso df08498562 Mesh API: Functions to set/get/validate FAN v1.1 domain configuration. 2021-03-11 11:23:33 +02:00
Arto Kinnunen 01b541b3de
Merge pull request #14327 from artokin/nanostack_update_to_feature_wisun
[feature-wisun] Update Nanostack
2021-03-11 10:28:39 +02:00
Lingkai Dong 151ebfcfc9 Add integer overflow check to the malloc wrappers
Add a check that the combined size of the buffer to allocate and
alloc_info_t does not exceed the maximum integer value representable
by size_t.
2021-03-10 09:57:12 +00:00
Arto Kinnunen 856da9bd60 Squashed 'features/nanostack/sal-stack-nanostack/' changes from 91f3ff6d7f..25b9124cd2
25b9124cd2 Merge remote-tracking branch 'origin/release_internal' into release_external
c825b04555 Corrected covery warning on delay_us multiplication
be63bbb145 Updated changelog
77a76c78bb Corrected nw size set on automatic mode
65e6c2db7a Updated unit tests
16e340286a Added waiting queue to EAPOL authentications to Border Router
b9c0b7d2ac Wi-SUN border router starts faster in static configuration
2f427e115a Local repair start and stop clear advertised_dodag_membership_since_last_repair when state is updated.
0a01ab19a4 RPL dio send update
dd3996382c Wi-SUN Border router uses Static address as DODAGID
7a3c8335b0 Additional check to detect parent connection problem
ffe48c93e5 WS management: domain configuration functions implemented (#2567)
5e9ac4ece8 Added new Callback to RPL indicate Multicast DIS received from RPL Parent
85b949e9c2 Bootstrap and EAPOL treats all MAC TX failure causes similarly
b57d9bcd66 Add support for anonymous addressing in Wi-SUN border router (#2565)
7400c8bc9e CFG: API for PHY mode id and channel plan id get & validate (#2564)
2832fe8c27 Added Socket reference limitter
890aad12f1 Wi-SUN MTU size update and IPv6 minium MTU routing skip
3ad28c1cfc Added throttling of number of simultaneous EAPOL authentications
0b84299edb Source route handler call Wi-Sun border router alive function.
c8343b1a01 Added support for dynamic RPL default lifetime
d258068555 Iotthd 4478 (#2560)
7ca6c24b67 Enable and modify memory limits for packet receiving
e2b028d9ae Close CHANGELOG.md for v12.8.1 (#2557)

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 25b9124cd240de3609ff913aa7dadf56d6c0ae16
2021-02-23 12:25:25 +02:00
Arto Kinnunen 3bb13c2405 Merge commit '856da9bd60f3409f55b21d8951bb3cc010668396' into feature-wisun
* commit '856da9bd60f3409f55b21d8951bb3cc010668396':
  Squashed 'features/nanostack/sal-stack-nanostack/' changes from 91f3ff6d7f..25b9124cd2
2021-02-23 12:25:25 +02:00
Gavin Liu 55a1465671 targets:evkbimxrt1050: Adjust the SEMC re-order rules
Update the BMCR0, BMCR1 registers to adjust the SEMC
re-order rules. This can improve the SDRAM stability
under multiple AXI masters system.

Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2021-02-23 10:53:14 +02:00
Tim Wang 376b7e3ae5 targets:RT1050: Fix the flash erase and program issue for qspi nor flash.
Update the LUT to fix the winbond qspi flash erase issue.
Update the page program interface to fix the qspi flash program issue.

Signed-off-by: Tim Wang <tim.wang@nxp.com>
2021-02-23 10:52:58 +02:00
Tim Wang 98b1f0fbed targets:RT1050: Fix the low speed switch issue
Fix the low speed switch issue when using QSPI flash

Signed-off-by: Tim Wang <tim.wang@nxp.com>
2021-02-23 10:52:39 +02:00
timwang 903e0830ee targets:clock: Update the coreclock value
Update the coreclock value which will be used in middleware

Signed-off-by: timwang <tim.wang@nxp.com>
2021-02-23 10:52:15 +02:00
timwang ec9c75e26e targets: clock: change default core clock to 528M
change the clock config of the RT1050 to set the default core clock to
528M

Signed-off-by: timwang <tim.wang@nxp.com>
2021-02-23 10:52:06 +02:00
timwang 889d852913 targets:uart: Add uart_3 support
Add uart_3 support, which using GPIO_AD_B1_06 as TX pin, GPIO_AD_B1_07
as RX pin

Signed-off-by: timwang <tim.wang@nxp.com>
2021-02-23 10:51:29 +02:00
TimWang c80b05a251 targets:lpspi: Update the lpspi driver and api
Change the lpspi default transfer delays to fix the data corruption
issue.

Add the loop and judgement to retry transfer when spi bus is busy.

Add the judgement statement to fix the hang issue.

Signed-off-by: TimWang <tim.wang@nxp.com>
2021-02-23 10:51:18 +02:00
Gavin Liu 9c7ccd28f8 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>
2021-02-23 10:50:41 +02:00
Gavin Liu 0a60f9baca 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>
2021-02-23 10:50:41 +02:00
Gavin Liu 299abb7949 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>
2021-02-23 10:50:41 +02:00
Gavin Liu 007d393621 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>
2021-02-23 10:50:41 +02:00
Gavin Liu d2d0b3bbe8 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>
2021-02-23 10:50:40 +02:00
Gavin Liu 91a5aa25fa 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>
2021-02-23 10:50:40 +02:00
Mahesh Mahadevan 4b10afc469 MIMXRT1050: Update for deep sleep latency
1. Do not disable and enable osillators during deep sleep
   entry and exit
2. Increase the deep sleep to pass tests

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:45:02 +02:00
Mahesh Mahadevan 91a669420e MXRT1050: Add bootloader support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:44:53 +02: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
Mahesh Mahadevan 6b03a083a1 MIMXRT1050: Reduce NOR size used by mbed-os
Reserve 4MB for mbed-os. The rest is used by storage driver

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:44:30 +02:00
Mahesh Mahadevan 3b89e0ab40 MXRT1050: Add support for Flash driver
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:44:18 +02:00
Mahesh Mahadevan c55096e167 MXRT1050: Update Flexspi driver to move functions to RAM
These functions are used to READ/WRITE to the Flexspi NOR

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:44:09 +02:00
Mahesh Mahadevan aa05cf81d2 MIMXRT1050: Add Watchdog support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:43:57 +02:00
Mahesh Mahadevan 0566f1ac37 MXRT1050: Formatting update
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:43:46 +02:00
Mahesh Mahadevan 1138bd2389 Update MXRT sleep function
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:43:36 +02:00
Mahesh Mahadevan 1f4712329e MIMXRT1050: Update UART driver
The UART first instance is 1 and not 0. Update the code logic to account
for this.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:43:26 +02:00
Mahesh Mahadevan 9de7c3eca2 MIMXRT1050: Update the usticker driver
The PIT module should be initialized only once

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:43:17 +02:00
Mahesh Mahadevan 875fa4bbef MXRT: Update the LPTimer driver
1. Run in doze mode
2. Add implementation for free function

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:43:09 +02:00
Mahesh Mahadevan a00e679c07 MXRT: Update GPIO IRQ hal driver
The SDK header provides separate arrays for high and low
GPIO interrupts in place of the previous combined array

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:43:00 +02:00
Mahesh Mahadevan 4bb42d8c1a MIMXRT1050: Update the ENET driver to use wait_us
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:42:49 +02:00
Mahesh Mahadevan 606fbf1fde MIMXRT1050: Update target configuration
1. Add defines to copy ram & no-cache functions
2. Add deep sleep latency definition

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:42:41 +02:00
Mahesh Mahadevan 835c668406 MXRT1050: Do not switch 24M source to reduce latency
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:42:22 +02:00
Mahesh Mahadevan 60f615024d MIMXRT1050: Update the low power driver to SDK 2.6
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:42:13 +02:00
Mahesh Mahadevan 2183a93dd1 MIMXRT1050: Update the XIP file from SDK 2.6
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:41:59 +02:00
Mahesh Mahadevan 31d0b2e414 MIMXRT1050: Update the mbed_overrides file
1. No need to copy RAM functions, this is done in the startup file
2. Update memory config for the FLASH section
3. Configure the PMIC_STDBY pin
4. Update UART clock setting

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:41:49 +02:00
Mahesh Mahadevan 325ac43ad7 MIMXRT1050: Update the clock driver to SDK 2.6
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:41:39 +02:00
Mahesh Mahadevan 81f9694987 MIMXRT1050: Update the ENET PHY driver from SDK 2.6
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:41:24 +02:00
Mahesh Mahadevan 9b99e705b2 MIMXRT1050: Update linker scripts & startup files from SDK 2.6
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:41:14 +02:00
Mahesh Mahadevan fe53fd4c59 MIMXRT1050: Update the device files to SDK 2.6
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:41:05 +02:00
Mahesh Mahadevan 3cfb54e907 MIMXRT1050: Use __ramfunc keyword to copy functions to RAM
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:40:56 +02:00
Mahesh Mahadevan 1167e231e4 MIMXRT1050: Update the drivers to SDK 2.6
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-02-23 10:40:46 +02:00
Mika Leppänen 1270a59df2 Added missing const qualifier to mesh ethernet mac addr get 2021-02-10 13:45:39 +02:00
Mika Leppänen b193f9bcea Added missing const qualifier to mesh ethernet mac addr get 2021-02-10 13:29:55 +02:00
Mika Leppänen 9500f9f6a6 Corrected nanostack coverity warnings 2021-02-02 15:32:02 +02:00
Martin Kojtal 1faaabb6fa
Merge pull request #14170 from artokin/nanostack_release_12_8_0_to_5_15
[mbed-os-5.15] Nanostack release v12.8.0
2021-02-02 13:23:51 +00:00
Martin Kojtal 152f3d46c2
Merge pull request #14057 from artokin/device_management_sync_5_15
[mbed-os-5.15] Fix `mbed device-management` command for Python 3.8
2021-02-02 13:23:37 +00:00
Martin Kojtal bfde5aa1e7
Merge pull request #14161 from JarkkoPaso/feature-wisun
Mesh api: Added PHY mode and channel plan IDs
2021-01-28 16:05:16 +00:00
Jarkko Paso a52c2e2b4d Fixed astyle issue 2021-01-28 11:03:06 +02:00