Commit Graph

7095 Commits (5ea51596ac434a9de51942bc3a5ff45bd44fcdb9)

Author SHA1 Message Date
Roman Okhrimenko 07bf595dce Delete ES10 target source CYESKIT_064B0S2_4343W 2020-06-19 16:15:45 +03:00
Roman Okhrimenko 64a3d26493 Delete ES10 target source CY8CPROTO_064_SB 2020-06-19 16:15:34 +03:00
Roman Okhrimenko 571e097d9f Add secure cm0 psoc6cm0p hex prebuild 1.2.0.174 file to 064B0S2 BSP 2020-06-19 16:13:59 +03:00
Roman Okhrimenko bdac29e93e Add 064B0S2 target BSP files using psoc6pdl 1.6.0.3875 2020-06-19 16:13:59 +03:00
Roman Okhrimenko 683e3631da Update psoc6cm0p to 1.2.0.174 2020-06-19 16:13:59 +03:00
Roman Okhrimenko 4700a726f8 Update psoc6pdl to 1.6.0.3875 2020-06-19 16:13:59 +03:00
Martin Kojtal 3d031cebe4
Merge pull request #13158 from toyowata/fix_wio_emw3166
[WIFI] Add NSAPI_PRESENT macro in the WicedInterface
2020-06-19 12:52:42 +02:00
Martin Kojtal 6646e8e79e
Merge pull request #13128 from farrenv/add-EP-ATLAS
Add support for Embedded Planet target Atlas
2020-06-19 09:09:35 +02:00
toyowata 7ad0174815 [WIFI: WicedInterface] Add NSAPI_PRESENT macro 2020-06-19 14:28:45 +09:00
Martin Kojtal 920133e8ed
Merge pull request #13118 from evedon/ed-full-profile
Replaced rtos profile with full profile
2020-06-18 22:19:59 +02:00
Vance Farren 70b0acaa33 clean up dead code 2020-06-18 08:56:40 -04:00
Jaeden Amero 4961d4a52d psa: Configure Mbed TLS to use PSA as needed
Configure Mbed TLS to automatically enable PSA as needed. When Mbed OS
is configured to use PSA, configure Mbed TLS to use PSA. This prevents
leaking of the "how to make Mbed TLS use PSA" knowledge up into
targets.json, and thus makes porting simpler. There is now one place
where "how to make TLS use PSA" exists rather than repeated throughout
targets.json for each target that can't inherit from PSA_Target.
2020-06-18 12:18:12 +01:00
Devaraj Ranganna 76e911c5ef psa: Replace Mbed PSA with TF-M
Add TF-M to Mbed OS, replacing the previous PSA implementation for
TF-M-capable targets. This commit adds files imported from TF-M, without
modification. The version of TF-M imported can be found in
`features/FEATURE_PSA/TARGET_TFM/VERSION.txt`.

These changes switch to TF-M as the sole PSA implementation for v8-M and
dual core targets, with TF-M running on the secure side and Mbed OS
running on the non-secure side. Single core v7-M targets will continue
to have PSA implemented via PSA emulation, implemented by Mbed OS.

Move or remove many PSA-implementing files, as PSA will be provided by
TF-M on non-single-v7-M targets. Delete any files that are not relevant
for PSA emulation mode.
 - Remove imported TF-M SPM
 - Remove Mbed SPM and tests
 - Remove Mbed-implemented PSA services and tests
 - Remove PSA_SRV_IMPL, PSA_SRV_IPC, PSA_SRV_EMUL and NSPE.
 - Replace PSA_SRV_EMUL and PSA_SRV_IMPL with MBED_PSA_SRV
 - Remove any files autogenerated by
   "tools/psa/generate_partition_code.py", which no longer exists.

Add new feature `PSA` to support PSA in Mbed OS.

Move the Mbed OS implementation of PSA services for v7-M targets (which
employ PSA emulation, and don't yet use TF-M) to
features/FEATURE_PSA/TARGET_MBED_PSA_SRV. Update the `requires`
attribute in TESTS/configs/baremetal.json to avoid breaking baremetal
testing builds.

Update .astyleignore to match new directory structure

Update Mbed TLS importer to place files into FEATURE_PSA

Create the following generic PSA targets:

* `PSA_Target` (Root level PSA generic target)
* `PSA_V7_M` (Single v7-M PSA generic target)
* `PSA_DUAL_CORE` (Dual-core PSA generic target)
* `PSA_V8_M` (v8-M PSA generic target)

Flatten MUSCA_NS and private MUSCA targets into public MUSCA targets.

Move mcuboot.bin to flat location (removing prebuilt folder)

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-06-18 12:16:20 +01:00
Devaraj Ranganna 01dd997d55 target: Include missing `cmsis_nvic.h`
The header `cmsis_nvic.h` defines vector start address in RAM
`NVIC_RAM_VECTOR_ADDRESS` which is used in
`mbed_boot.c:mbed_cpy_nvic()`. But `mbed_boot.c` only includes
`cmsis.h`. Due to this `mbed_cpy_nvic` becomes an empty function and the
vectors don't get relocated to RAM. This causes BusFault error when Mbed
OS tries to update any of the IRQ handlers.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-06-18 12:16:19 +01:00
Devaraj Ranganna db67302850 target: Add BL2 macro to MUSCA B target config
BL2 macro is used in `region_defs.h` to define the `BL2_HEADER_SIZE`.
Without BL2 macro, `BL2_HEADER_SIZE` is set to 0. This leads to
incorrect start address (Reset_Handler of Mbed OS) derived by TF-M based
on `region_defs.h` and BL2 macro.

BL2 macro is set for MUSCA B in TF-M.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-06-18 12:16:17 +01:00
Devaraj Ranganna e2af612a99 tools: Musca B1 signing strategy
Currently, the final binary (TF-M + Mbed OS) is signed after
concatenating TF-M and Mbed OS binaries. But TF-M signs the images
separately and then concatenates them. Update the Musca B1 signing
strategy to match TF-M.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-06-18 12:16:16 +01:00
Jaeden Amero dc22d89c7f musca_b1: Remove device-specific virtual NVIC
Use instead the general TF-M v8-M virtual NVIC which will be added in
the commit that replaces Mbed PSA with TF-M PSA:
features/FEATURE_PSA/TARGET_TFM/TARGET_TFM_V8M/src/cmsis_nvic_virtual.c
2020-06-18 12:16:14 +01:00
Jaeden Amero d314a6cc57 cypress: psoc64: Add TF-M compatibility (again)
Partially revert f38e21fa6c ("Update PSoC 6 BSPs to verion 1.2") to
restore TF-M compatibility.

Make the CY8CKIT_064S2_4343W target TF-M compatible by addding flash and
region definitions from TF-M (at c4f37c18c4a0) and by updating the
CY8CKIT_064S2_4343W linker script to create a flash image compatible
with TF-M.

Fixes: f38e21fa6c ("Update PSoC 6 BSPs to verion 1.2")

Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-06-18 12:16:10 +01:00
Martin Kojtal e9b1df671e
Merge pull request #13143 from jeromecoutant/PR_H7_BARE
STM32H7: correct Ethernet issue in baremetal
2020-06-18 10:25:51 +02:00
Martin Kojtal eebd773d3a
Merge pull request #13148 from OpenNuvoton/nuvoton_remove_m2351_npsa_from_6.0
M2351: Remove from master
2020-06-18 10:24:41 +02:00
Martin Kojtal 29aa6d8ea5
Merge pull request #13115 from NXPmicro/MXRT1050_USB
MIMXRT1050_EVK: Add USB support
2020-06-18 09:56:47 +02:00
Martin Kojtal 66343b0d25
Merge pull request #12937 from macronix/macronix_qspi
Modify the operation of setting qspi frequency when calling Octo controller
2020-06-18 09:43:45 +02:00
Martin Kojtal aafae5d644
Merge pull request #12751 from jeromecoutant/PR_WB_USB
STM32WB: enable USB Device
2020-06-18 09:42:42 +02:00
Chun-Chieh Li 95635f9c54 M2351: Remove from master
Since Mbed OS 6.0, secure build is not supported yet. Remove it from master temporarily.

For non-TF-M support (NU_PFM_M2351_NPSA_S/NS), go to mbed-os-5.15 branch and Mbed OS 5.15 release.

For TF-M support (NU_PFM_M2351_S/NS), this needs M2351 integrated into TF-M repo first.
Expect M2351 TF-M support can come back into master after integration with TF-M is finished.
2020-06-18 09:42:29 +08:00
Martin Kojtal 86dad5cda9
Merge pull request #12471 from AGlass0fMilk/adc-voltage-api
Extend AnalogIn API: read_voltage
2020-06-17 19:57:28 +02:00
jeromecoutant b4d31ae863 STM32H7: correct Ethernet issue in baremetal 2020-06-17 18:39:34 +02:00
Vance Farren 1f20df9c7d missing comma in targets.json 2020-06-17 12:10:19 -04:00
Vance Farren 1d8da69586 updates for mbed os 6 2020-06-17 12:10:19 -04:00
Vance Farren b8687ab524 add EP_ATLAS as mbed target 2020-06-17 12:10:19 -04:00
Mahesh Mahadevan 9e8998a91c KW41Z: Avoid using TARGET_NXP macro
Having Freescale and NXP macro causes compile from both
TARGET_Freescale and TARGET_NXP HAL folders.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2020-06-17 11:04:35 -05:00
Mahesh Mahadevan 469ada5a11 MIMXRT1050_EVK: Fix to linker script for non-cached region
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2020-06-17 11:04:35 -05:00
Mahesh Mahadevan 81a1193012 MIMXRT1050_EVK: Add USB support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2020-06-17 11:04:35 -05:00
Kyle Kearney 6a2d93ee94 Add optional post-bsp-init hook
This allows the application to inject its own resource reservations
immmediately after the BSP (and therefore HAL) is initialized,
ensuring that they can claim require resources before mbed tries
to use them for more flexible purposes. For example, the application
might want to claim a particular timer to make sure that it doesn't
get picked for us_ticker (which can use any arbitrary timer instance).
2020-06-16 11:07:34 -07:00
Kyle Kearney ab5eb07e3c Stop the us_ticker timer before deepsleep
A running timer will block DeepSleep, which would normally be
good because we don't want the timer to accidentally lose counts.
We don't care about that for us_ticker (If we're requesting deepsleep
the upper layers already determined that they are okay with that),
so explicitly stop the us_ticker timer before we go to sleep and
start it back up afterwards.
2020-06-16 11:07:34 -07:00
Martin Kojtal 3333f4185e
Merge pull request #12747 from jeromecoutant/PR_MBEDTLS
STM32 MBEDTLS support with HW crypto
2020-06-16 13:55:50 +02:00
Martin Kojtal 7b5a8d37b5
Merge pull request #12966 from MultiTechSystems/update-df413-onoff
DRAGONFLY_F413RH: Update power on and power off functionality
2020-06-16 13:54:01 +02:00
Martin Kojtal 0614e92c5b
Merge pull request #13083 from jeromecoutant/PR_H7_CUBE170
STM32H7 update drivers version to CUBE V1.7.0
2020-06-16 13:45:42 +02:00
Martin Kojtal 0b0ab6bf87
Merge pull request #13086 from jeromecoutant/PR_F1
STM32F1 update drivers version to CUBE V1.8.0
2020-06-16 13:45:25 +02:00
Martin Kojtal e901ea9845
Merge pull request #13100 from vmedcy/pr/fix-13058
Fix BOOT_HEADER_SIZE allocation in ARM scatter files (#13058)
2020-06-16 13:45:06 +02:00
Evelyne Donnaes 4d3c6b3a64 Replaced rtos profile with full profile 2020-06-15 13:42:24 +01:00
jeromecoutant dcf2490b5a STM32F1 STM32Cube FW V1.8.0: update for MBED 2020-06-15 13:49:47 +02:00
jeromecoutant c99c8b5036 STM32F1 STM32Cube FW V1.6.1 => V1.8.0: target part
- SetSysClock update
2020-06-15 13:49:47 +02:00
jeromecoutant ce3fc30cf0 STM32F1 STM32Cube FW V1.6.1 => V1.8.0 2020-06-15 13:49:46 +02:00
jeromecoutant f13b06a7bc STM32F1 STM32Cube FW V1.6.1 => V1.8.0: Driver part 2020-06-15 13:49:46 +02:00
jeromecoutant 97bf6fa386 STM32F1 STM32Cube FW V1.6.1 => V1.8.0: CMSIS part 2020-06-15 13:49:46 +02:00
jeromecoutant 1152c651d9 STM32F1: targets inherit from non public default MCU configuration 2020-06-15 13:49:39 +02:00
jeromecoutant 533fe21750 STM32F1: directory restructuration 2020-06-15 13:48:04 +02:00
Martin Kojtal 8b70dfe593
Merge pull request #13095 from jeromecoutant/PR_FULLBARE
STM32: MCU_STM32 supports rtos and bare-metal profiles
2020-06-15 11:30:50 +02:00
Anna Bridge a870fcface
Merge pull request #13001 from jeromecoutant/PR_BAREMETAL_SUPPORT_STEP2
STM32 baremetal support step2 (L1/L4/WB)
2020-06-12 14:44:14 +01:00
Anna Bridge 58975d1df4
Merge pull request #13091 from jeromecoutant/PR_BAREMETAL_SUPPORT
STM32 baremetal support step3/3 (F2/F4)
2020-06-12 14:42:35 +01:00
Anna Bridge 727cf54873
Merge pull request #13073 from jeromecoutant/PR_H7_FPGA
STM32H7: FPGA tests support
2020-06-11 14:39:31 +01:00
jeromecoutant 46ccded9b1 STM32: MCU_STM32 supports rtos and bare-metal profiles 2020-06-10 14:25:24 +02:00
Martin Kojtal 698fc09b4c
Merge pull request #12615 from jeromecoutant/PR_FPGA_UART
FPGA UART test cases addition with 7 and 9 bits data length
2020-06-10 13:51:18 +02:00
Martin Kojtal 878875c884
Merge pull request #13090 from jeromecoutant/PR_DEVICE_H
STM: move us_ticker_defines.h include
2020-06-10 11:53:57 +02:00
Martin Kojtal 0f2a28d52f
Merge pull request #13053 from jeromecoutant/PR_README
STM32 more information in README file
2020-06-10 11:43:24 +02:00
Volodymyr Medvid dc937ab53b Fix BOOT_HEADER_SIZE allocation in ARM scatter files (#13058)
PSoC 64 secure BSP post-build hook (cysecuretools image signing)
expects the HEX file with start address 0x10000400 (first KB of
internal FLASH is reserved for MCUboot headers area).
In order to get the correct HEX file produced by ARM fromELF tool,
the ELF file should allocate LR_IROM1 starting from address
0x10000400, not 0x10000000. Otherwise the generated HEX file
allocates rows at addresses 0x10000000 ~ 010000400 and the
final application image is not signed correctly.

Fixes https://github.com/ARMmbed/mbed-os/issues/13058.
2020-06-10 10:25:41 +03:00
jeromecoutant 47407759a4 STM: move us_ticker_defines.h include 2020-06-09 11:04:23 +02:00
jeromecoutant 713618abe0 STM32F4 baremetal support 2020-06-09 10:25:41 +02:00
jeromecoutant adbd936cbc STM32F2 baremetal support 2020-06-09 10:24:36 +02:00
jeromecoutant 048f454a5a STM32H7: remove GENERIC_H745I 2020-06-08 15:33:42 +02:00
jeromecoutant c815471526 STM33H7: DISCO_H747I inherit from MCU_STM32H747xI 2020-06-08 15:33:22 +02:00
jeromecoutant 561f8d48bf STM32H7 STM32Cube FW V1.5.0 => V1.7.0 2020-06-08 14:33:10 +02:00
jeromecoutant 9936a53bd1 STM32H7 STM32Cube FW V1.5.0 => V1.7.0: HAL Driver part 2020-06-08 14:33:09 +02:00
jeromecoutant 21f262b5c3 STM32H7 STM32Cube FW V1.5.0 => V1.7.0: CMSIS part 2020-06-08 14:33:09 +02:00
jeromecoutant 7d181c1bf7 STM32H7: directory restructuration
- only files move
- sometimes files rename
+ targets.json update
2020-06-08 14:33:08 +02:00
jeromecoutant 59d2dd5e1f DISCO_L562QE: enable MBEDTLS_CONFIG_HW_SUPPORT 2020-06-08 13:57:57 +02:00
jeromecoutant bfadc650f6 NUCLEO_WB55RG: enable MBEDTLS_CONFIG_HW_SUPPORT 2020-06-08 13:56:31 +02:00
jeromecoutant 551f8b4231 NUCLEO_WB55RG: enable USBDEVICE 2020-06-08 13:17:23 +02:00
jeromecoutant 26223e6652 NUCLEO_F439ZI: align USB config from NUCLEO_F429ZI 2020-06-08 13:14:00 +02:00
Martin Kojtal 8d26d77690
Merge pull request #12482 from AGlass0fMilk/add-nucleo-g474re
NUCLEO_G474RE: Add new platform
2020-06-08 12:38:40 +02:00
jeromecoutant 28f8307afa STM32WB baremetal support
move BLE files to FEATURE_BLE
2020-06-08 12:06:01 +02:00
jeromecoutant 0a447ac798 STM32L4 baremetal support 2020-06-08 12:05:54 +02:00
jeromecoutant ba7deb4660 STM32L1 baremetal support 2020-06-08 11:46:56 +02:00
jeromecoutant 1292053bf9 STM32 more information in README file 2020-06-08 10:02:33 +02:00
jeromecoutant c9e0c4f6f7 STM32WB ReadMe quick update
See #12975
2020-06-08 10:02:33 +02:00
jeromecoutant 10a5b97396 STM32H7: NUCLEO_H743ZI2 pins update 2020-06-05 16:26:33 +02:00
jeromecoutant 1484ac0859 STM32H7: DISCO_H747I pins update 2020-06-05 16:26:23 +02:00
jeromecoutant b289d5a08f STM32H7: enable dual analogic pad 2020-06-05 16:26:22 +02:00
jeromecoutant 538552adea STM32H7 ADC issue correction 2020-06-05 16:26:22 +02:00
Martin Kojtal 59df4efaac
Merge pull request #13022 from jeromecoutant/PR_BSP
STM32: add weak TargetBSP_Init function
2020-06-05 16:01:25 +02:00
Martin Kojtal 49c1d947fa
Merge pull request #13044 from hugueskamba/hk_nrf_implicit_declaration
NRF: fix implicit declarations
2020-06-05 14:44:31 +02:00
Martin Kojtal 95a704ed92
Merge pull request #13045 from kyle-cypress/pr/pin-header-cyeskit
CYESKIT_064B0S2_4343W: Remove parentheses from arduino pins
2020-06-05 13:10:41 +02:00
Martin Kojtal 3ef2b1642e
Merge pull request #12996 from pilotak/master
STM32F412 bypass PLL configuration when already done by bootloader
2020-06-05 10:48:41 +02:00
Martin Kojtal 65cbf9759d
Merge pull request #13047 from hugueskamba/hk_nrf_arm_compiler
NRF: Migrate ARM Compiler 5 feature re-locate zero initialized variables
2020-06-05 10:48:06 +02:00
Martin Kojtal 819b9f98e0
Merge pull request #13043 from hugueskamba/hk_nrf_serial_warning
NRF serial: Use nrf_uarte_event_t enum to avoid implicit conversion
2020-06-05 10:47:49 +02:00
Martin Kojtal 8911f96c1b
Merge pull request #13014 from jeromecoutant/PR_H7CM4
DISCO_H747I_CM4 is supporting now hex format
2020-06-04 15:23:26 +02:00
Martin Kojtal ed0cadfa9e
Merge pull request #12992 from jeromecoutant/PR_BAREMETAL_SUPPORT_STEP1
STM32 baremetal support step1 (F0/F1/F3/H7/L0)
2020-06-04 15:22:06 +02:00
Martin Kojtal 0988e5d0f9
Merge pull request #13064 from 0xc0170/fix_nxp_vector
nxp: fix vector redefinition from CMSIS
2020-06-04 15:10:40 +02:00
Martin Kojtal ab439624ed
Merge pull request #12979 from LDong-Arm/stack_size_expectation_from_config
stack_size_unification test: set expected stack sizes from config
2020-06-04 14:39:08 +02:00
Martin Kojtal e0c7f25c5d
Merge pull request #12985 from dustin-crossman/pr/update_cysbsyskit_01
Update CYSBSYSKIT_01
2020-06-04 14:35:31 +02:00
Martin Kojtal 41995a7427 nxp: fix vector redefinition from CMSIS
Since 5.7 CMSIS update to Mbed OS, __VECTOR_TABLE is defined in cmsis_gcc header
file. Many MCU in NXP uses this symbol as linker definition, therefore we should
check if already defined and undefined it.

Fixes #13062
2020-06-04 09:10:08 +01:00
Hugues Kamba 488f06b7e1 NRF: Migrate ARM Compiler 5 feature re-locate zero initialized variables
ARM Compiler 6 does not support placing a zero-initialized variable in a
zero-initialized section with a given name.
The migration path for this feature is what is as done in this commit.
The name of the section is what comes after `.bss.` (`nvictable` in this
case).
Also simplify pre-processor directive to test for Arm compiler.
2020-06-01 10:35:13 +01:00
Hugues Kamba 992133be50 NRF: fix implicit declarations
As a result removes warnings
2020-06-01 10:26:51 +01:00
Kyle Kearney 7ad94db586 CYESKIT_064B0S2_4343W: Remove parentheses from arduino pins
Avoid build failures when arduino pin names collide with C++ template
argument names.
Addresses issue #13027
2020-05-29 17:17:05 -07:00
Hugues Kamba f6d6d44346 NRF serial: Use nrf_uarte_event_t enum to avoid implicit conversion 2020-05-29 20:20:12 +01:00
Jaeden Amero aa7a02f0a9 musca: Mark Musca targets as experimental
TF-M and PSA have experimental APIs. Musca targets must initialize the
tfm_ns_lock, via the experimental API tfm_ns_lock_init(), as part of
their ordinary initialization procedure. Therefore, Musca targets must
have experimental APIs present in order to function. Add the
experimental API feature to Musca targets by default to ease usability
of the Musca targets, rather than requiring all users and CI to manually
enable experimental APIs when using these targets.
2020-05-29 13:19:11 +01:00
Jaeden Amero 295ff531a4 psa: Pick up code from MBED_PSA_SRV
Make single Armv7-M PSA targets pick up files under TARGET_MBED_PSA_SRV.
We'll be moving the Mbed implementation of PSA to TARGET_MBED_PSA_SRV
folders soon.

Targets (dual-core and Armv8-M) that expect to use TF-M for their PSA
implementation also have MBED_PSA_SRV labels added to them so that they
continue working with the Mbed PSA implementation for the time being.
2020-05-29 13:19:11 +01:00
jeromecoutant 76135d0820 STM32: add weak TargetBSP_Init function 2020-05-27 16:49:54 +02:00
jeromecoutant 876125ad49 DISCO_H747I_CM4 is supporting now hex format
- minimum STLink version: V3J7M2
2020-05-25 11:34:40 +02:00
rogeryou de9b283abe modify the div value when calling octo controller.
For ST OSPI controller driver(stm32l4xx_hal_ospi.c), the frequency it has be subtracted 1, so "div = div - 1;" should be removed.
2020-05-25 12:07:24 +08:00