Commit Graph

6201 Commits (a22f59635bf95d6a138f302d21c3f9e09fa84d06)

Author SHA1 Message Date
timwang a22f59635b 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>
2020-06-09 14:25:41 +08:00
TimWang 2f74892df1 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>
2020-06-09 14:25:36 +08: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
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
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
Dustin Crossman 4e6692b529 Backport #12603: Add CYSBSYSKIT_01 2020-04-02 15:02:44 -07:00
midd be4dd8ee23 Backport #12492: Update psoc6cm0p to version 1.1.1.
This version is built with PSoC 6 Peripheral Driver Library (PDL) 1.4.1
2020-04-02 14:59:54 -07:00
Dustin Crossman ca47da6018 Backport #12422: Cypress Asset Update
- Update psoc6pdl to version 1.4.1.2240
- Update psoc6 core_lib to version 1.1.1.11109.
- Update psoc6hal to 1.1.1.11145.
- Store RTC century and RTC state information in persistent BREG register.
2020-04-02 14:58:48 -07:00
Dustin Crossman a15ed110a6 Backport #12421: Cypress target reorganization
- Remove CY8CMOD_062_4343W and merge into CY8CPROTO_062_4343W.
- Remove CY8CMOD_062S2_43012 and merge into CY8CKIT_062S2_43012.
- Remove CY8CMOD_062S3_4343W and merge into CY8CPROTO_062S3_4343W.
- Removed CY8CMODs from targets.json.
- Removed unnecessary PSOC6Code.complete post binary hook from cypress targets.
2020-04-02 14:56:36 -07:00
midd 8199e25f24 Backport #12394: Fix Cypress 1M SDIO + other minor bugs
- Remove wounding for the hardware CRYPTO block. The PSoC 6 MPN CYW9P62S1_43012EVB_01 was revised
  to add the hardware crypto block.
- Add missing error checks for emac power up.
- Add a multiplied by 2 in the SDIO clock divider calculation to account for internal UDB divider.
  Note: Fixes issues with intermittent WiFi firmware load failures on CY8CKIT_062_WIFI_BT,
  CYW943012P6EVB_01, CYW9P62S1_43012EVB_01, CYW9P62S1_43438EVB_01.
2020-04-02 14:49:22 -07:00
Shuopeng Deng a0ee701d83 Backport #12097: Cypress: Fix IAR Warnings
fix 'enumerated type mixed with another type' IAR warnings
fix 'statement is unreachable' IAR warning
2020-04-02 14:30:46 -07:00
YARB(Cypress) 738ec19183 Backport #12052: Fix for ARM issue 11859.
1. Clear UART events before enabling
2. Reset device before return from test case
2020-04-02 14:29:45 -07:00
YARB(Cypress) 63583ff6b1 Backport #12038: Remove qspi_frequency() call.
cy_qspi_frequency is not implemented.
This change is made because for compatibility
reason with upcoming cy_hal changes.
2020-04-02 14:28:02 -07:00
Shuopeng Deng 880af5d8ae Backport #12019: rework cypress lptimer hal
Changed set_match api to use an absolute ticks rather than delayed tick to match api name.
Added api set_delay to delay by a specific amount of ticks. Removed unused set_time api.
Simplified the logic for computing interrupts match value for cascading counters.
Fixed an issue when incorrect base time would be read when trying to set match values.
2020-04-02 14:27:32 -07:00
RyoheiHagimoto 103faf9007 RZ_A1H and GR_LYCHEE: Enable bootloader support (Mbed OS 5.15) 2020-04-01 17:55:21 +09:00
Marcelo Salazar 1aa999ed0a Add workaround for F429 hardfault 2020-03-31 09:38:25 +03:00
Arto Kinnunen cc75c59d82 Revert "Disable sleep on STM32F4 as an workaround for stability issues."
This reverts commit c3ef3cac09.
2020-03-31 09:38:25 +03:00
Marcelo Salazar b21aeaf153 Add workaround for F429 hardfault 2020-03-30 14:27:51 +01:00
Teemu Takaluoma 723f311de2 Disable sleep on STM32F4 as an workaround for stability issues.
This workaround is related to Mbed OS issue
https://github.com/ARMmbed/mbed-os/issues/12294
2020-03-30 14:27:43 +01:00
adbridge 468bd41f13 Revert "Add sector information"
This reverts commit ed6869d9ec.
2020-03-27 10:44:38 +00:00
adbridge e273c3f0ab Revert "GR_LYCHEE: enable bootloader support"
This reverts commit c654cdc40b.
2020-03-27 10:44:20 +00:00
adbridge 4c32297b07 Revert "RZ_A1H: enable bootloader support"
This reverts commit b7e8cd2267.
2020-03-27 10:43:53 +00:00
d-kato b7e8cd2267 RZ_A1H: enable bootloader support 2020-03-27 14:58:07 +09:00
d-kato c654cdc40b GR_LYCHEE: enable bootloader support 2020-03-27 14:36:23 +09:00
d-kato ed6869d9ec Add sector information 2020-03-27 14:32:12 +09:00
Mahesh Mahadevan c0418058fa 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>
2020-03-03 16:05:49 +02:00
Mahesh Mahadevan ba554b5e20 MXRT1050: Add bootloader support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2020-03-03 16:05:13 +02:00
Mahesh Mahadevan 11c7d0caed MIMXRT1050: Enable FlashIAP support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2020-03-03 16:03:52 +02:00
Mahesh Mahadevan 94e1f3f05f 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>
2020-03-03 16:01:15 +02:00
Mahesh Mahadevan 347a650b79 MXRT1050: Add support for Flash driver
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2020-03-03 16:00:34 +02:00
Mahesh Mahadevan 5ad6c9e31f 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>
2020-03-03 15:56:17 +02:00
Mahesh Mahadevan 2ee224913e MIMXRT1050: Add Watchdog support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2020-03-03 15:55:00 +02:00
Mahesh Mahadevan 408c80a838 MXRT1050: Formatting update
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2020-03-03 15:53:12 +02:00
Mahesh Mahadevan 5a3cdcf4e7 Update MXRT sleep function
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2020-03-03 15:53:12 +02:00
Mahesh Mahadevan a513634ea3 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>
2020-03-03 15:53:12 +02:00
Mahesh Mahadevan 43701a1773 MIMXRT1050: Update the usticker driver
The PIT module should be initialized only once

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2020-03-03 15:53:12 +02:00
Mahesh Mahadevan 2240e06892 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>
2020-03-03 15:53:12 +02:00
Mahesh Mahadevan 702150b871 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>
2020-03-03 15:53:12 +02:00
Mahesh Mahadevan 2b9961cd8c 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>
2020-03-03 15:53:12 +02:00
Mahesh Mahadevan 3cbadf942e MXRT1050: Do not switch 24M source to reduce latency
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2020-03-03 15:53:12 +02:00
Mahesh Mahadevan a060909f9b MIMXRT1050: Update the low power driver to SDK 2.6
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2020-03-03 15:53:12 +02:00
Mahesh Mahadevan 3c3e062bb8 MIMXRT1050: Update the XIP file from SDK 2.6
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2020-03-03 15:53:12 +02:00
Mahesh Mahadevan be6ed39cfc 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>
2020-03-03 15:53:12 +02:00