Commit Graph

28216 Commits (mbed-os-5.15)

Author SHA1 Message Date
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 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 9454bb00cd
Merge pull request #13920 from artokin/mac_address_set_get_mbed_os_5_15
[mbed-os-5.15] Network interface MAC address set/get
2021-01-25 08:50:21 +00:00
Martin Kojtal 46a045b7e0
Merge pull request #14046 from mikaleppanen/mbedos_5_15_corr_cert_add
[mbed-os-5.15] Corrected Wi-SUN certificate add and remove functions on Wi-SUN interface
2021-01-25 08:49:55 +00:00
Martin Kojtal 01495a76f5
Merge pull request #13879 from mbedNoobNinja/TARGET_UPDATE
mbed-os-5.15: Add FLASH, FLASHIAP & bootloader support for VK_RZ_A1H board
2021-01-22 13:08:59 +00:00
Martin Kojtal 66e10446bb
Merge pull request #13954 from mikaleppanen/new_to_nothrow_5_15
[mbed-os-5.15] Replaced new calls with nothrow version of the call on mesh api
2021-01-22 12:48:58 +00:00
Arto Kinnunen a0a284ed49 Move files back to original locations
Files were moved during rebase, move files back to original places
2021-01-21 11:35:44 +02:00
Arto Kinnunen c854c8fc02 Squashed 'features/nanostack/sal-stack-nanostack/' changes from 09d9e24f2d..3183d87e41
3183d87e41 Merge branch 'release_internal' into release_external
9e27a772f2 Disabled BR IID verify from DODAG ID
33ac7911cf Merge pull request #2548 from PelionIoT/sync_with_mbed_os
6f8b2829f4 compile out trace when not available
825373d3ef Add SPDX license identifier to Arm files
3ec3bc649d fixed warnings: static method defined but not used
ee34352ceb Check if RX channel needs to be updated when RX slot detected (#2540)
d59dc5d25e Fix doxygen 1.8.17 warnings (#2546)
1e0beb3e67 Update unit tests to support Ubuntu 2020_04 LTS (#2545)
b9b2ffd96b Fixed FHSS get retry period (#2543)
a0bf6aec91 Check if RX channel needs to be updated after broadcast received (#2539)
fde325eee2 Wi-SUN Neighbour ARO registration failure handling update:
1e1f9c66b0 RPL dio Handler update:
0421502e27 Asynch message advertiment enable added to DAO done when disabled.
0374f74013 Corrected memory leak on key storage allocation on low memory situation
23c2f7ed05 Disable ASYNCH messages at enter Local repair state.
c1df6b0d75 Added Poison_count check for First DIO time blocker.
944f934539 Added channel mask size to FHSS configuration (#2536)
20e79e05fc RPL Local repair disable clear advertised_dodag_membership_since_last_repair state
8a4638089a Fix doxygen comments (#2534)
fe06236e43 MAC ACK RX guarantee update
2388a80700 MAC layer send ack allways when it requirement's
29b387b697 RPL dao dynamic timeout
00bbd02f85 Don't allow TX slot length go below allowed minimum (#2528)
8333faa401 Out of memory improvement to remove packets from routing
0a12aebff9 Support channel plan IDs 1, 2 and 5 with NA and BZ bands (#2526)
ee4333da6f Wi-SUN Timing configuration is selected based on network size and data rate
a5b2a26eb2 WS: API to set PHY mode and Channel plan IDs as defined by FAN 1.1 (#2520)
b86a044911 Update nanostack v12.7.0 changelog (#2525)
35b95da122 Remove unnecessary files from release
0717432619 Merge remote-tracking branch 'origin/release_internal' into release_external
f68126b85a Adaptation layer MCPS confirmation handle update
e483a0748d Added OFDM configurations and FEC in RF config structure (#2513)
b88abfa1c2 BUG fix: Fixed broken Brodcast MAC overflow handling
9cad47826a Random early detection congestion API update
00aed73abc Modified the Wi-SUN stack Latency estimates a bit slower
6b83d821ea Remove periodic PAN version increase from Wi-SUN border router
ef670e21f3 Integrated ReD congestion packet drop to Wi-SUN bootstrap interface.
b956d9e983 Revert "Improved transmission in high traffic (#2511)" (#2512)
01749c2116 Improved transmission in high traffic (#2511)
3158e966e0 Adaption layer queue trace update
5a32f4a7bb Update changelog, random_early_detection_congestion_check nameupdate and minor comment fix.
b818f12c6d Extented network status for support dropped tx congestion packet.
11c0763f4d Added new service Random early detection
f2c358dc2b Optimized medium NWK MPL parameters to 40 second multicast interval (#2508)
c013bc7790 Added traces to EAPOL TX failure
c29ee94a20 Changed TLS return value to int32_t
501a2c8578 Added trace for mbed TLS errors
9d7cd22aa6 Updated change log
1290225b95 Corrected radius message memory allocation
7b1c59695b Removed trace print's
efb83934f6 Adaptation layer MCPS confirmation handle update
ac1025e7e9 Bug Fix: Accept only next possible BSI for detect BR reboot and drop unkown's.
58f0e56fe4 Updated change log
102e525b9a Nanostack now indicates connection down on RPL local repair start
395791d535 FHSS WS: Do not allow broadcast TX on unicast channel (#2501)
72f8ecb8d2 Updated changelog.md
237620827c Activated higher priority by traffic class CS6 for NS/NA and RPL, EAPOL/ DHCP Relay messages.
afbe9061b5 Adaptation layer update
13fb2bfdbb Update CHANGELOG.md
af81c48993 DIO init TX filter update
13a872c6b9 Fix typos in github template (#2498)
1af20e1aee Initial version of CHANGELOG (#2497)
d9874ede96 Feature update: Improved MAC TX queue purge
69264429f9 Wi-SUN Aro registration temporary address registation bug fix.
d3170ed50a Removed generic event and wrong trace info.
0db3486a7a Removed trace from place which is normal and not needed
a080f18d83 Added debug tarce for dropped unsecured and MPL packets.
51cd5646ed Wi-SUN NS probe update:
579f75684e Adaptation layer: Do not push CCA failed packet back to MAC (Wi-SUN) (#2487)
715ae9a693 Merge remote-tracking branch 'origin/release_internal' into release_external
42c9807207 Nanostak trace level configuration (#2489)
6f5217119a Bug fix: socket reference count made 16-bit (#2490)
f51669adc7 Bug fix: Do not print UFSI drift when fixed channel is used (#2488)
18fa0486e3 RPL DAO timeout update:
660e178506 Clear debug traces.
cbac0bbca4 DIO init send block for node
fed5d1c819 Created different MPL configuration based on network size
7ad7e81209 Wi-SUN recovery and BR BSI update:
d207f4d9f9 Merge branch 'release_internal' into release_external
d166c89427 MPL: buffered max limit increased to 8k (#2482)
0f6666a97e Fixed Unit test's
1ff9b1d6c6 LLC drop a packet if FHSS shedule is not configured.
7cecc28c98 Fixed missing asynch trigle setup stop at if down process
7a8b2bfd98 Wi-SUN fhss API default value setting fixes
164a3706c6 Fixed coverity issues from management API
8b5b433284 Corrected out of bounds access coverity warning (#2475)
4ffe6a12cc Multicast forwarding is separated from the routing flag
30f431581d Wi-SUN discovery staten enter upxdate
083b84e9c5 Iotthd 4308 (#2473)
fcc33d559c Removed time increment from NVM time read function on interface up
9c8e3afc9f fhss_tx_handle update
5491a6b052 Fixed UFSI update print function (#2470)
86f64c58b6 FHSS WS: Check if BC schedule is stopped before computing timeout delay (#2469)
a0b112a97b Corrected defects and coding style
2f4678a2f2 Corrected trace macro
5e967515ee Distributed key storage NVM writes to longer time period
9b3891fffb FHSS WS: handle blocked interrupts (#2466)
a792e832de Added validation at MAC ack buffer handler
2a465b2e49 DNS configuration lifetime validation

git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: 3183d87e410d80b96042c143e586967dce2ff650
2021-01-21 11:12:23 +02:00
Arto Kinnunen ae5d0426ed Squashed 'features/nanostack/coap-service/' changes from 5aa54b8e62..4a126bd278
4a126bd278 Fix compiler and cppcheck warnings (#131)
ca7ca7da30 Merge pull request #130 from PelionIoT/sync_from_mbedos
15d73dc6d4 (via Mbed OS)Remove call to function-like macro with no effect

git-subtree-dir: features/nanostack/coap-service
git-subtree-split: 4a126bd278522e7b004de35ab0887394117f1213
2021-01-21 11:12:16 +02:00
Arto Kinnunen 681f51142e Squashed 'features/frameworks/mbed-trace/' changes from 6ced9711c4..b98f6a9050
b98f6a9050 Merge remote-tracking branch 'origin/master' into release_for_mbed_os
7a60a77390 Enable libservice by default
fc7503c1a6 Make IPv6 tracing conditional to nanostack-libservce

git-subtree-dir: features/frameworks/mbed-trace
git-subtree-split: b98f6a9050afd1d0b9354bc82d5d363fff5a1405
2021-01-21 11:12:13 +02:00