Commit Graph

6278 Commits (mbed-os-5.15)

Author SHA1 Message Date
Egon Zemmer b3250b600a Fix Ublox C030 SARA-R412M onboard cellular device serial (target default instance). 2021-10-21 13:59:38 +02:00
cyliangtw 75dd2c22d1 Follow Mbed OS coding style of if statement 2021-08-27 01:00:51 +08:00
cyliangtw 3198bab7c6 NuMaker M480 & M451 support CAN mask 2021-08-27 00:55:53 +08:00
Ahmet Alincak 7b552ca3d0 Port USBSerial from mbed6.x 2021-06-25 12:08:06 +03:00
Martin Kojtal bfe3d50724
Merge pull request #14597 from CalSol/lpc15xx_extended_can_5_15
LPC15xx extended CAN fix (5.15)
2021-06-15 09:48:36 +02:00
Martin Kojtal 769fc9da70
Merge pull request #14502 from OpenNuvoton/nuvoton_m487_wdt_reset_from_powerdown_5.15
M487: Fix crash on WDT reset from power-down (5.15)
2021-05-18 16:54:15 +02:00
jet 5a1068f11e Fix LPC15XX extended CAN ID conversion 2021-04-26 21:18:51 -04:00
Chun-Chieh Li cb3a6783aa M487: Get around h/w limit with WDT reset from PD
Use WKT to get around this h/w limit
2021-04-22 19:09:05 +08:00
Chun-Chieh Li e0aab8be9f Nuvoton: Fix hal_watchdog_kick() with WDT stopped
According to HAL spec, hal_watchdog_kick() shall do nothing when WDT is stopped.
2021-04-16 10:12:58 +08: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 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
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 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
Arto Kinnunen 7199a3a66b Update WICED binaries for ARMC6
A new method has been added to the NetworkInterface. Therfore WICED
library needs to be rebuild for ARMC6.

Update WICED binaries for:
-MTB_ADV_WISE_1530
-MTB_MXCHIP_EMW3166
-MTB_USI_WM_BN_BM_22
2021-01-21 10:14:21 +02:00
mbedNoobNinja 248e483d2c Adding support for FLASH, FLASHIAP, bootloader 2020-11-06 18:17:07 +02:00