Commit Graph

4894 Commits (mbed-os-5.12)

Author SHA1 Message Date
Kevin Bracey 815a00d097 Permit non-TrustZone ARMv8 build
Change the heuristic for selection of CMSE in the tools python, so that
a non-TrustZone ARMv8 build can happen.

Ideally we would have more direct flagging in the targets, but this
refines the heuristic so the necessary behaviour can be easily
achieved.

* DOMAIN_NS=1 is based purely on the `-NS` suffix on the core name.

* Enabling CMSE in the compiler and outputting a secure import library
  is now enabled when the core doesn't have an `-NS` suffix by either
  the target label `TFM` being present or the flag `trustzone` being set.

This covers the existing ARMv8-M behaviour - TF-M builds have the TFM
label, as per its documentation; M2351 secure builds have no explicit
flagging, so we ensure that the M2351_NS target has the trustzone flag
set, and the out-of-tree secure target inherits that.
2019-05-17 15:38:41 +01:00
Volodymyr Medvid 6030b1411e PSOC6: simplify the mbed_sdk_init sequence 2019-05-17 15:38:41 +01:00
Volodymyr Medvid 27d3b1e766 PSOC6: move mbed_sdk_init to mbed_overrides.c
Purposes:
* Remove MbedOS-specific code from system_psoc6_{cm4,cm0plus}.c
  to simplify updates to new PDL version (startup code is part of PDL).
* Unify mbed_sdk_init initialization sequence for both CPU cores.
  This change is non-functional, sequence itself is not changed for any
  of the PSoC 6 M4/M0 PSA/non-PSA targets.
2019-05-17 15:38:41 +01:00
panyz0725@thundersoft.com 2d2823d56b Modify PinName file to keep correspondence with spec 2019-05-17 15:38:41 +01:00
jeromecoutant 78b0d9b11f STM32 astyle updates 2019-05-17 15:38:41 +01:00
ccli8 e6e86b07e8 Fix optimization error with NVIC_SetVector/NVIC_GetVector on ARMC6
On ARMC6 with optimization level "-Os", the two functions NVIC_SetVector/NVIC_GetVector
will be translated to illegal instruction for trapping due to NVIC_FLASH_VECTOR_ADDRESS
defined as direct 0. Fixed by defining NVIC_FLASH_VECTOR_ADDRESS as a symbol instead to
avoid such optimization error.
2019-05-17 15:38:41 +01:00
Guillermo Alonso ed5ae0e943 error in tabulation fixed 2019-05-17 15:38:41 +01:00
Guillermo Alonso e6fcada930 added QSPI support to target RHOMBIO_L476DMW1K 2019-05-17 15:38:41 +01:00
M. Rahimi 9ad5fd34cc Enabled crash reporting for DISCO_F407VG on all other toolchains 2019-05-17 15:35:27 +01:00
M. Rahimi 01e35e009e Enabled crash reporting for DISCO_F407VG target 2019-05-17 15:35:27 +01:00
Laurent Meunier b262080045 Typo fix for MBED_APP_SIZE 2019-05-17 15:35:27 +01:00
Laurent Meunier f73e6cd55d Update FLASH_SIZE backup value
By default, FLASH_SIZE should be read from HW.
In case this is not the case, we define it here, as the size of FLASH
that is available to the application running on M4.
2019-05-17 15:35:27 +01:00
Laurent Meunier a677e43939 STM32WB: Update Flash size
the flash is shared and split between cortex-M4 that
runs (mbed-os) application and the cortex-M0+ that
runs the BLE firmware.

The 512K allocated to the application was a
conservative that can now be updated.

With recent up-to-date BLE firmware flashed @ 0x080CB000,
there should be 812K available to application.

But there are boards out there that don't have an up-to-date
firmware, so we're keeping an intermediate, safer,
application size of 768K.
2019-05-17 15:35:27 +01:00
ccli8 80b3399936 Nuvoton: Add COMPONENT_FLASHIAP support
Some Nuvoton targets support DEVICE_FLASH but their corresponding COMPONENT_FLASHIAP
supports are not enabled. Enable them:

NUMAKER_PFM_M453
NUMAKER_PFM_M2351
2019-05-17 15:35:27 +01:00
Lin Gao 2b33d06276 Add option to keep post_binary_hook and make it default. It can be disabled by setting it to null 2019-05-17 15:35:27 +01:00
Lin Gao ef21cf108b Fix handoff issue from the bootloader to the application on MTS_DRAGONFLY_F411RE 2019-05-17 15:35:27 +01:00
mudassar-ublox 7bf5657219 cellular target name change for ublox cellular instance 2019-05-17 15:35:27 +01:00
Wajahat Abbas 6065e39b69 C027 Fix for modemOn flag 2019-05-17 15:35:27 +01:00
petroborys 86f7984d45 Add can_api.c for efm32:review build-IAR 2019-05-17 15:35:27 +01:00
petroborys 1188209169 Add can_api.c for efm32: wrap in presence of the base peripheral 2019-05-17 15:35:27 +01:00
petroborys 63b7f0410d Add can_api.c for efm32 2019-05-17 15:35:27 +01:00
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