Commit Graph

4873 Commits (mbed-os-5.12.3)

Author SHA1 Message Date
adbridge b520ed424d "Update secure binaries for LPC55S69_S" 2019-05-03 14:08:19 +01:00
adbridge 58d300053b "Update secure binaries for FUTURE_SEQUANA_M0_PSA" 2019-05-03 13:59:29 +01:00
adbridge 6c45c5f978 "Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA" 2019-05-03 13:26:11 +01:00
Mahesh Mahadevan 49cbb25638 LPC55S69: Add support for UART hardware flow control
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-05-03 12:24:48 +01:00
fred.li 2529222829 Fix Syntax Error for IAR & ARMCC 2019-05-03 12:24:48 +01:00
fred.li c3efc6e28f PDMC support for ARMCC and IAR 2019-05-03 12:24:48 +01:00
fred.li 1cfdbfd43f Remove invalid device_name 2019-05-03 12:24:48 +01:00
fred.li ae0f05f3be Add configuration to support PDMC compile Configurable flash size for UNO_91H 2019-05-03 12:24:48 +01:00
Martin Kojtal 01391fa85a SDP_K1: Fix year change in the system clock 2019-05-03 12:24:48 +01:00
Malavika Sajikumar 0ab7ad99e3 Fixing alignment. 2019-05-03 12:24:48 +01:00
Malavika Sajikumar a182558ff3 AWAKE signal turned on at system init for SDP-K1 board.
- Setting AWAKE signal high in the SystemInit() to ensure VIO supply to daughter boards through SDP and Arduino connectors.
2019-05-03 12:24:48 +01:00
Malavika Sajikumar 45a2952fec Improvements made to PinNames.h of SDP-K1 board.
PinNames.h:
- Removing definition of Status LED.
- Redefining SPI and I2C pin names using Arduino pins names.
2019-05-03 12:24:48 +01:00
Ryan Morse 697b46ca4a Added support for QSPI to Cypress Boards 2019-05-03 12:24:48 +01:00
Laurent Meunier dba7b428e1 STM32F303RE: Activate FLASHIAP 2019-05-03 12:24:48 +01:00
ccli8 7e68ec0cb9 Support crash capture for no-XRAM configuration 2019-05-03 12:24:48 +01:00
JarekParal 90ea0927d1 Fix code alignment 2019-05-03 12:24:48 +01:00
JarekParal 228a902a6e Add missing ADC pins mapping for FRMD-K66F 2019-05-03 12:24:48 +01:00
Steven Cooreman 8347708f33 Remove sleep lock/unlock from HAL
The sleep locking/unlocking is taken care of by the layer above (driver).
2019-05-03 12:24:48 +01:00
Juho Eskeli b0780563a8 STM32L4xx: IAR linker file updated to better use available memory 2019-05-03 12:24:48 +01:00
ccli8 6f545ac5a0 Get around unknown error with power-down
On NUC472, on wake-up from power-down mode, we may meet hard fault or some other
unknown error. Before its cause is found, we enter idle mode instead for a workaround.
To simulate power-down mode with idle mode, we also disable us_ticker during
power-down period.
2019-05-03 12:24:48 +01:00
Kevin Bracey 74f0a3e3f5 KW24D: Use default ARM compiler (ARMC6)
KW24D was set to ARMC5 because the ARMC6 tooling didn't correctly handle
Cortex-M4 without floating-point. Now fixed.
2019-05-03 12:24:48 +01:00
Deepika d7e53cdd7c Add missing boot stack size memory from heap calculation 2019-05-03 12:24:48 +01:00
Deepika f8367b4f7c Update linker script for using SRAM1 and SRAM2 in ARM To have the flexibilty in application; to use any of the section (data/bss/heap) without updating linker script in every use case, following decisions are made: 1. Fixed size and small sections moved to SRAM2 (32K) Vectors Crash data Remaining section - RW / ZI 2. Large memory space should be used for variable sections RW/ZI Heap - (Minimum - 0x12000) Stack - At bottom 2019-05-03 12:24:48 +01:00
adbridge a3e7416ff4 "Update secure binaries for LPC55S69_S" 2019-04-24 16:07:31 +01:00
adbridge 2106e703e0 "Update secure binaries for FUTURE_SEQUANA_M0_PSA" 2019-04-24 14:21:53 +01:00
adbridge 0a5e610af5 "Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA" 2019-04-24 14:09:26 +01:00
Lei Zhang 1e81845f85 PSOC6: Add WICED library build for ARMC6
- Also remove WICED library build for ARMC5
2019-04-24 13:53:18 +01:00
Hennadiy Kytsun 608a1f5400 CY8CKIT_062_WIFI_BT_PSA: mention tools/psa/release.py in README 2019-04-24 13:53:00 +01:00
Hennadiy Kytsun 81960509f2 PSOC6: remove __attribute__((constructor)) from SystemInit 2019-04-24 13:51:12 +01:00
Hennadiy Kytsun d9b0706163 FUTURE_SEQUANA: reuse supported_toolchains from TARGET_PSOC6 2019-04-24 13:50:58 +01:00
Hennadiy Kytsun 37e0c5ec8a PSOC6: add ARMC6 support (fix issue #9830)
Update PDL syslib driver to 2.30.
Update startup assembly and linker scripts.
2019-04-24 13:50:43 +01:00
Hennadiy Kytsun 2f29ce64d4 PSOC6: update version of PDL IPC driver 2019-04-24 13:50:31 +01:00
Hennadiy Kytsun d36b6708df PSOC6: update version of PDL flash driver
Flash driver 3.30:
Moved ipcWaitMessageStc structure to the RAM section called ".cy_sharedmem"
Added support Secure Boot devices
Moved CY_FLASH_EFFECTIVE_PAGE_SIZE to flash_api.c (the macro is Mbed specific).
2019-04-24 13:50:19 +01:00
Hennadiy Kytsun f96ae8b0c3 PSOC6: remove custom IPC configuration for PSA
* Update PDL startup driver to version 2.40
* Update linker scripts and startup assembly
* Remove custom IPC configuration from PSA initialization:
  use default IPC configuration provided by low-level startup code.
2019-04-24 13:50:06 +01:00
Hennadiy Kytsun cec01fd14b PSoC6: Remove TARGET_CY8C62XX CSP directory
GeneratedSource folders are BSP specific. No parts of the kit BSP can be reused
as generic chip support package. Remove TARGET_CY8C62XX directory,
and use flat BSP inheritance model:

MCU_PSOC6 -> MCU_PSOC6_M4 -> CY8CKIT_062_WIFI_BT
MCU_PSOC6 -> MCU_PSOC6_M0 -> CY8CKIT_062_WIFI_BT_M0
2019-04-24 13:49:54 +01:00
Kevin Bracey 2c67592432 Atmel SAMG55: Cortex-M4 -> Cortex-M4F
SAMG55 has FPU - change core in targets.json to use it.
2019-04-24 13:37:42 +01:00
Kevin Bracey adb07ef8d4 ARM MPS2: Cortex-M4 -> M4F & M7 -> M7FD
According to their cmsis.h, FPU is present, so change targets.json to
use it.

* ARM_MPS2_M4: already was Cortex-M4F
* ARM_MPS2_M7: Cortex-M7 -> M7FD
* FVP_MPS2_M4: Cortex-M4 -> M4F
* FVP_MPS2_M7: Cortex-M7 -> M7FD

If they do not in fact have FPU, then cmsis.h should be modified to set
`__FPU_PRESENT` to 0. This will currently cause compilation problems
with ARMC6, but I'll be submitting a fix for that.
2019-04-24 13:37:42 +01:00
Deepika 96c0d8fb64 uARM - Move heap region after IRAM1
ARM_LIB_HEAP start is aligned to IRAM1 end, hence should be placed next to
RW_IRAM1 i.e. no other region in between.
2019-04-24 13:37:42 +01:00
Kevin Bracey ebc5e7ba17 i.MX RT1050: Reactivate data cache
Since commit 12c6b1bd8, the i.MX RT1050 has effectively had its data
cache disabled, as the SDRAM was marked Shareable; for the Cortex-M7,
shareable memory is not cached.

This was done to make the Ethernet driver work without any cache
maintenance code. This commit adds cache maintenance and memory barriers
to the Ethernet driver, and removes the Shareable attribute from the
SDRAM, so the data cache is used again.

Cache code in the base fsl_enet.c driver has not been activated - the
bulk of it is in higher-level Read and Write calls that we're not using,
and there is one flawed invalidate in its initialisation. Instead
imx_emac.cpp takes full cache responsibility.

This commit also marks the SDRAM as read/write-allocate. As the
Cortex-M7 has its "Dynamic read allocate mode" to automatically switch
back to read-allocate in cases where write allocate is working poorly
(eg large memset), this should result in a performance boost with no
downside.

Activating write-allocate is also an attempt to provoke any flaws in
cache maintenance - the Ethernet transmit buffers for example will be
more likely to have a little data in the cache that needs cleaning.
2019-04-24 13:37:42 +01:00
Leszek Rusinowicz 5118cdf887 FUTURE_SEQUANA: Fix flash_api bug introduced with e16d2d81d9
PDL Flash API requires that the data buffer is 32-bit aligned, otherwise
programming can hung. Buffer declared as uint8_t array is not always
properly aligned, e.g. with gcc 6 when -Os option is used.
2019-04-24 13:37:42 +01:00
Leszek Rusinowicz 186dcaac54 FUTURE_SEQUANA: Clean up "unused variable" compiler warnings
Clean up compiler warnings coming from PDL read-out of peripheral
interrupt status registers.
2019-04-24 13:37:42 +01:00
Kevin Bracey bb882854c2 SDP_K1: Cortex-M4 -> Cortex-M4F
MCU of SDP_K1 has FPU - change core in targets.json to use it.
2019-04-24 13:37:42 +01:00
Kevin Bracey d751b1b973 GigaDevice: Cortex-M4 -> Cortex-M4F
GigaDevice parts have FPU - change core in targets.json to use it.
2019-04-24 13:37:42 +01:00
Shawn Shan 8ac04df1ba Fix the build failed issue of MPS2 targets with ARMC6.
Change-Id: I0205d381de331a827435d667c16297aaf5bb609e
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan 3ef9aa35be Add IAR support for the target AN382 of MPS2.
Add file MPS2.icf and startup_MPS2.S to suppout IAR of the target
AN382(ARM_MPS2_M0). Add "IAR" to supported_toolchain list.

Change-Id: I2b2ad7645166c4f973a8baa9c394521514183767
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan 880e5a92dc Add IAR support for the target AN383 of MPS2.
Add file MPS2.icf and startup_MPS2.S to suppout IAR of the target
AN383(ARM_MPS2_M0P). Add "IAR" to supported_toolchain list.

Change-Id: Ib2278d34e265e53ad070aecd318ed4e6a355e3c0
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan 60c95a5cd7 Add IAR support for the target AN385 of MPS2.
Add file MPS2.icf and startup_MPS2.S to suppout IAR of the target
AN385(ARM_MPS2_M3). Add "IAR" to supported_toolchain list.

Change-Id: I038b05b8b21bd146a1568de897ed030ccd52ab79
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan 3386463176 Add IAR support for the target AN386 of MPS2.
Add file MPS2.icf and startup_MPS2.S to suppout IAR of the target
AN386(ARM_MPS2_M4). Add "IAR" to supported_toolchain list.

Change-Id: I4f43617c870197b9d39a4d4c9c12456adcc6f96f
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan bcb1ddaed1 Add IAR support for the target AN500 of MPS2.
Add file MPS2.icf and startup_MPS2.S to suppout IAR of the target
AN500(ARM_MPS2_M7). Add "IAR" to supported_toolchain list.

Change-Id: I0b8f018fc937727382b27ea0669940ae6675c834
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00
Shawn Shan 58f93fafc7 Add GCC_ARM support for the target AN382 of MPS2.
Add files MPS2.ld and startup_MPS2.S to support GCC_ARM of the target
AN382(ARM_MPS2_M0). Add "GCC_ARM" to supported_toolchains list.

Change-Id: I7046b698834c82e94015e51eef9a0f5e1315ddaa
Signed-off-by: Shawn Shan <shawn.shan@arm.com>
2019-04-24 13:37:42 +01:00