Commit Graph

7268 Commits (14714a8055a68b699107fa0b2b51bc3d76c40b46)

Author SHA1 Message Date
George Beckstein 5b3eb52f09
Fix indentation within G031K8 definition 2020-08-25 09:20:03 -04:00
Anna Bridge 36764b98be
Merge pull request #13456 from ARMmbed/dev_usb_remove_mbedh
USBPhyHw: remove mbed.h inclusion
2020-08-25 11:50:59 +01:00
Martin Kojtal 0ef5eaddb2
Merge pull request #13467 from romanjoe/pr/cy-psoc6cm0p-1.2.1.676
Cypress: Update psoc6cm0p library to 1.2.1.676
2020-08-25 08:46:59 +01:00
Martin Kojtal 4bd8d8ca56
Merge pull request #13470 from MultiTechSystems/update-dragonfly-linkers
Update dragonfly linkers
2020-08-24 15:54:11 +01:00
George Beckstein 167241a9df Limit NUCLEO_G031K8 to bare-metal builds due to memory constraints 2020-08-24 08:52:40 -04:00
jeromecoutant 44b7c1165e STM32G0 UART: compilation warning 2020-08-24 13:55:10 +02:00
jeromecoutant 2f2a1ea3f2 STM32G0 stm32g0xx_ll_rtc.h compilation warning
Waiting for
https://github.com/STMicroelectronics/STM32CubeG0/issues/11
2020-08-24 13:55:03 +02:00
Martin Kojtal a34dfea24e kinetis: fix headers for usbphy 2020-08-21 15:03:27 +01:00
Martin Kojtal a775c7dd4c
Merge pull request #13425 from LDong-Arm/cypress_rtos_check
Fix bare metal support on Cypress targets
2020-08-21 13:46:47 +01:00
Martin Kojtal 7b211f0ba4
Merge pull request #13375 from RyoheiHagimoto/add_gr-mango
Add GR_MANGO as a new target
2020-08-21 13:37:48 +01:00
Martin Kojtal d44fb29723
Merge pull request #13397 from winneymj/enable_SPIM
Provide enablement of nrf52840 SPIM
2020-08-21 10:41:08 +01:00
Leon Lindenfelser 622b7cfc60 Add MBED_APP_START & MBED_APP_SIZE check/set to MTS_MDOT_F411RE arm linker 2020-08-20 10:21:12 -05:00
RyoheiHagimoto c854392344 Added public token for RZ_A2XX in target.json 2020-08-20 19:42:50 +09:00
Roman Okhrimenko a8a2a0ee03 Update cypress psoc6cm0p library to 1.2.1.676, compatible with psoc6pdl 1.6.1.4886 2020-08-20 13:02:28 +03:00
Leon Lindenfelser aa2c80fa52 Update MTS_DRAGONFLY_F411RE linker files for removed post_binary_hook 2020-08-19 16:09:44 -05:00
Martin Kojtal 78a3785423
USBPhyHw: remove mbed.h inclusion
Remove user facing header file, it should not be included within a library. The header itself does not need anything from Mbed.

It could possibly fail if targets which implement usb are not including what is required for their implementation.
2020-08-18 15:36:24 +01:00
RyoheiHagimoto e818c489d5 Modifed some source files for GR-MANGO.
Aligned with the astyle rule.
Deleted old ARM5 check.
2020-08-18 10:48:56 +09:00
RyoheiHagimoto db3cec4398 Added GR-MANGO to be a target.
Passed GreenTea CI.
Added RZ_A2XX and GR_MANGO to targets.json.
Added RZ_A2XX to mbedlib.json in lwipstack and netsocket/ppp.
Added TARGET_RZ_A2XX directory to targets/TARGET_RENESAS.
Added TARGET_RENESAS_EMAC directory to features/netsocket/emac-drivers.
Moved TARGET_RZ_A1_EMAC directory into the TARGET_RENESAS_EMAC directory below and renamed to TARGET_RZ_A1XX.
Added TARGET_RZ_A2XX directory to features/netsocket/emac-drivers/TARGET_RENESAS_EMAC.
2020-08-18 10:48:48 +09:00
Charley Chu ace81a8be7 psoc64: Update TF-M release image
Upgrade PDL to v1.6.1 to resolve #13440

Signed-off-by: Charley Chu <haoc@cypress.com>
2020-08-17 18:05:48 -07:00
winneymj e5f32ff3f9 Add SPIM description to README.md 2020-08-17 10:27:46 -05:00
winneymj b72adbe5c0 Fix defines 2020-08-16 12:42:18 -05:00
winneymj 21c928e6e5 Fix detection of enabled SPIM 2020-08-15 08:02:49 -05:00
winneymj 6dbeece347 Fix detection of enabled SPIM 2020-08-14 19:43:24 -05:00
George Beckstein 470ef492b3 Revert "Removed const from register declaration"
This reverts commit c569dcce79.
2020-08-14 12:03:25 -04:00
Martin Kojtal 3ff5a3b560
Merge pull request #13418 from CharleyChu/topic/master_cytfm
Update PSoC64 TFM release package.
2020-08-14 11:24:58 +01:00
George Beckstein c569dcce79 Removed const from register declaration 2020-08-13 16:50:03 -04:00
jeromecoutant 8165bca233 STM32G0 review and test 2020-08-13 15:49:50 -04:00
Pavel Slama ab6fd6e1eb add D13 pin 2020-08-13 15:49:50 -04:00
Pavel Slama 25ea7be2ff add NUCLEO_G031K8 target 2020-08-13 15:49:50 -04:00
Pavel Slama e3d26ed888 delete LED2-4 and buttons 2020-08-13 15:49:50 -04:00
George Beckstein 16ac412807 Add NUCLEO_G031K8 target configuration 2020-08-13 15:49:50 -04:00
Martin Kojtal 9df8d33f49
Merge pull request #13386 from avptin/psoc6pdl-1.6.1
PSoC6: update to psoc6pdl-1.6.1
2020-08-13 17:32:39 +01:00
Dustin Crossman 79c7c3d622 Add back sectors definition to CYSBSYSKIT_01 target. 2020-08-13 09:28:55 -07:00
Lingkai Dong 017b043473 TARGET_PSOC6: set CY_RTOS_AWARE based on RTOS availability 2020-08-13 12:12:46 +01:00
Martin Kojtal aff95c0d19
Merge pull request #13392 from heuisam/dev_bp6a
Adding Samsung Bioprocessor S1SBP6A target
2020-08-13 09:00:50 +01:00
Martin Kojtal 408461b9de
Merge pull request #13382 from OpenNuvoton/nuvoton_m252_iot
M252: Support custom board
2020-08-13 08:41:31 +01:00
Charley Chu 4749e176d7 psoc64: Update TF-M release image
- Fix key derivation issue
- Update PSoC64 BSP
- Replace IPC semaphore spin-lock with IPC lock

Signed-off-by: Charley Chu <haoc@cypress.com>
2020-08-12 16:46:52 -07:00
Volodymyr Medvid 563e216cc8 PSOC6: update BSP startup code to match psoc6pdl-1.6.1 2020-08-12 04:33:29 +01:00
Heuisam Kwag e3ba0100bb introduce S1SBP6A
Signed-off-by: Heuisam Kwag <heuisam@samsung.com>
2020-08-12 07:19:29 +09:00
Anna Bridge 88d931384f
Merge pull request #13358 from RaymondNgun/topic/cytfm_064b0s2_4343w
Add CYTFM_064B0S2 4343W Target
2020-08-11 10:52:39 +01:00
Heuisam Kwag 7bc9d54c76 move security_subsystem to TARGET_SIDK_S5JS100
The TARGET_Samsung had security_subsystem and SIDK_S5JS100.
If I add another target that does not use security_subsystem, I get
a build error.
This commit moves security_subsyste to TARGET_SIDK_S5JS100.

Signed-off-by: Heuisam Kwag <heuisam@samsung.com>
2020-08-11 16:26:48 +09:00
Dustin Crossman 522888886b Add bootloader info to CYSBSYSKIT_01 targets.json 2020-08-10 17:02:40 -07:00
Dustin Crossman 6ba8885ad3 Update COMPONENT_SCL. 2020-08-10 17:02:35 -07:00
Dustin Crossman 0944d0e9b0 Update CYSBSYSKIT_01 bsp. 2020-08-10 16:59:04 -07:00
Maarten de Klerk e6150ac722
Added error checking to can_filter() for Classic CAN
Previously the function always returned 1 even when the configuration was illegal. I added a small check to HAL_CAN_ConfigFilter(...).
2020-08-08 23:25:42 +02:00
Raymond Ngun 1be0b1f297 CYTFM_064B0S2_4343W: Inital creation of PSA target
Target is similar to CY8CKIT_064B0S2_4343W but with PSA
and TFM enabled.

Signed-off-by: Raymond Ngun <raymond.ngun@cypress.com>
2020-08-07 08:02:01 -07:00
Charley Chu badfa189d6 Move current TFM to TFM_V1_1
Named TFM V1.1 as TFM_V1_1 instead of TFM_V1.1 as TFM_V1.1 is invalid
as macro name

Signed-off-by: Charley Chu <haoc@cypress.com>
2020-08-07 08:02:00 -07:00
winneymj 5249a9ad31 Remove duplicate code 2020-08-05 19:46:54 -05:00
winneymj 541a2c8664 Remove DEBUG 2020-08-05 19:40:54 -05:00
winneymj 40831f7018 remove NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 2020-08-05 19:35:42 -05:00
winneymj 0b80e3c302 Disable SPIM & enable SPI 2020-08-05 19:33:47 -05:00
winneymj 32b5f2d3fb Revert "Initial commit"
This reverts commit dec6e3600f.
2020-08-05 19:30:16 -05:00
winneymj e4e7dcc1ff First stab at implement SPIM DCX 2020-08-03 20:10:07 -05:00
winneymj b6a1ec7716 Mix SPI with SPIM 2020-08-02 11:21:03 -05:00
winneymj f65cd0f461 Add Int handler for SPIM3_IRQHandler 2020-07-31 19:58:39 -05:00
winneymj 2d5776a757 Fix more SPIM 2020-07-31 16:29:49 -05:00
winneymj c6bc6513bd Enable nrfx_spim_1_irq_handler 2020-07-31 16:12:49 -05:00
Oleksiy Peutin e95c64f798 PSoC6: update to psoc6pdl-1.6.1 2020-07-31 16:12:15 +01:00
Chun-Chieh Li dde8f6f015 M252: Re-organize PinNames.h
This is to support M251 series based targets.
2020-07-31 17:05:36 +08:00
Chun-Chieh Li a76f5dcbdf M252: Support configurability of USB/STDIO UART pins
-   STDIO_UART and STDIO_UART_TX/STDIO_UART_RX
-   USB_UART and USBTX/USBRX
2020-07-31 17:05:35 +08:00
Chun-Chieh Li f7e4a75041 M252: Make memory specification configurable
This is to support all M251 series based targets.
2020-07-31 17:05:35 +08:00
Chun-Chieh Li 1f70a3caa2 M252: Change SERIAL_TX/SERIAL_RX pin names to other than USBTX/USBRX
USBTX/USBRX should be dedicated for USB VCOM and not for other uses.
2020-07-31 17:05:34 +08:00
Chun-Chieh Li 2e1627d31e M252: Introduce base target MCU_M251
This is to support all M251 series based targets.
2020-07-31 17:05:33 +08:00
Martin Kojtal 821631a7f9
Merge pull request #13351 from MultiTechSystems/fix-dragonfly-F413RH
Fix MTS_DRAGONFLY_F413RH drag and drop failure
2020-07-30 13:27:01 +01:00
winneymj bcacf2136d Fix include 2020-07-29 19:39:19 -05:00
winneymj db23d53d32 Enable SPIM and bring into code. 2020-07-29 19:27:19 -05:00
Rajkumar Kanagaraj 2add7064ec Update astyleignore and source code comment 2020-07-27 10:04:01 -07:00
Leon Lindenfelser 53a75c83cb Fix MTS_DRAGONFLY_F413RH drag and drop failure
When manually flashing an application binary to the MULTITECH drive, a FAIL.TXT
file is produced with the following info:
“The application file format is unknown and cannot be parsed and/or processed”.
2020-07-24 14:13:35 -05:00
Martin Kojtal f5358a7ff4
Merge pull request #13332 from OpenNuvoton/nvt_iot_m252_target
Nuvoton: Update M252 target name
2020-07-24 09:22:42 +01:00
Martin Kojtal f83d100fa6
Merge pull request #13261 from LDong-Arm/move_cellular
Refactor cellular directory structure
2020-07-23 14:06:23 +01:00
Martin Kojtal 1bd138b6fc
Merge pull request #13304 from jeromecoutant/PR_WB_CUBE17
STM32WB update drivers version to CUBE V1.7.0
2020-07-22 15:09:22 +01:00
cyliangtw 7da5afc054 Change M252 target name as NUMAKER_IOT_M252 2020-07-22 19:39:11 +08:00
Martin Kojtal efae4028d7
Merge pull request #13325 from OpenNuvoton/nvt_m263_button
Nuvoton: Revise the pin name of M263A button
2020-07-22 11:30:09 +01:00
Lingkai Dong 2b24a7a31e Update paths to cellular framework 2020-07-22 11:06:23 +01:00
cyliangtw dd48500cc3 Revise M263A button pin name 2020-07-21 20:50:19 +08:00
winneymj 65ed9d42fc Move SPI_PSELSSO = p41 2020-07-20 19:16:48 -05:00
Leon Lindenfelser c946c2a713 Remove MTS_DRAGONFLY_F411RE post binary hook that adds the bootloader
Bootloader to be added using mbed_app.json
2020-07-20 14:15:51 -05:00
winneymj 4c299fe96d Add USBConsole.h so that default printf can be sent to USBSerial 2020-07-19 15:23:52 -05:00
winneymj 8526148001 Add missing softdevice common 2020-07-17 16:33:12 -05:00
jeromecoutant 03296f03e7 STM32WB55xx creation in targets.json
Each custom boards can now easily inherit from MCU_STM32WB55xx
2020-07-17 12:54:38 +02:00
jeromecoutant 0b5a91c9a2 STM32WB FLASH activity shared with M0+ core
source:
- https://github.com/STMicroelectronics/STM32CubeWB/blob/master/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_RfWithFlash/Core/Src/flash_driver.c
- Figure 10 from AN5289
2020-07-17 12:06:40 +02:00
jeromecoutant ec1e659d3a STM32WB readme update 2020-07-17 12:06:40 +02:00
jeromecoutant 285d533075 STM32WB: ST CUBE drivers update V1.4.0 => V1.7.0 / BLE 2020-07-17 12:06:39 +02:00
jeromecoutant 643c7a44f3 STM32WB: ST CUBE drivers update V1.4.0 => V1.7.0 / HAL 2020-07-17 12:06:39 +02:00
Anna Bridge 640da338f9
Merge pull request #13229 from jeromecoutant/PR_TARGET2
STM32 custom target: create MCU_STM32xx for each family
2020-07-17 10:55:43 +01:00
winneymj 24624d25ab Fix missing pins 2020-07-15 20:48:43 -05:00
winneymj dec6e3600f Initial commit 2020-07-15 16:15:10 -05:00
Vikas Katariya 776ccce8d6 psa: Update TF-M for ARM_MUSCA_B1 2020-07-14 11:54:57 +01:00
Jaeden Amero 2f2e4a95a1 psa: Update TF-M for ARM_MUSCA_B1 2020-07-09 15:40:38 +01:00
jeromecoutant dda1dcf229 STM32 custom target: create MCU_STM32xx inherit
Each target based on STM32 MCU can now inherit
common configuration defined by its STM32 family.
2020-07-09 11:32:25 +02:00
Martin Kojtal fb3728f39f
Merge pull request #13223 from kyle-cypress/pr/psoc-greentea-sync
PSoC Targets: Increase greentea sync timeout
2020-07-07 20:45:06 +02:00
Martin Kojtal 3400ef66e7
Merge pull request #13222 from jeromecoutant/PR_PWM
STM32 PWM : avoid glitch after duty cycle change
2020-07-03 10:51:19 +02:00
Martin Kojtal 379bda2214
Merge pull request #13221 from jeromecoutant/PR_DAC_TICKLESS
STM32 ANALOGOUT and DEEPSLEEP
2020-07-03 10:50:59 +02:00
jeromecoutant e10a233c80 STM32 PWM : avoid glitch after duty cycle change 2020-07-02 14:54:09 +02:00
jeromecoutant a0b718fc04 STM32 ANALOGOUT and DEEPSLEEP
keep DAC on during wait period
2020-07-02 14:18:44 +02:00
jeromecoutant c8737c593d STM32WB RNG: enable use from both M4 and M0+ core 2020-07-02 10:17:08 +02:00
Kyle Kearney 1751983ca1 PSoC Targets: Increase greentea sync timeout 2020-07-01 09:37:52 -07:00
Martin Kojtal ffeb926a67
Merge pull request #13206 from vvkaggarwal12/usb-device-fix
Usb device init: wait_us fix
2020-07-01 14:08:47 +02:00
Martin Kojtal ab84dcde03
Merge pull request #13198 from kyle-cypress/pr/whd-1.91.2
Cypress: Update WHD to version 1.91.2
2020-07-01 12:01:51 +02:00
Martin Kojtal 0e225f9298
Merge pull request #13173 from jeromecoutant/PR_I2C_L4R
STM32L4: I2C init parameters for L4+ MCU
2020-07-01 11:30:38 +02:00
Martin Kojtal 22e9925ca9
Merge pull request #13172 from yarbcy/pr/dev-mbed-init-fix
Cypress: Fix internal JIRA. Add check if cybsp_init() is successful
2020-07-01 10:25:11 +02:00
vivek 8d1503b220 Fix: #13203: USB device: wait_us instead of ThisThread::sleep_for, delay given is 5us 2020-07-01 13:11:42 +05:30
Kyle Kearney 4c95356f58 PSoC: Update WHD to v1.91.2 2020-06-26 10:03:08 -07:00
Martin Kojtal 6c27da57d9
Merge pull request #13122 from romanjoe/pr/add_cy8ckit_064b0b2_4343w
Cypress: Add target CY8CKIT_064B0S2_4343W, update psoc6pdl, psoc6cm0p
2020-06-24 09:36:39 +02:00
jeromecoutant 0d277eefe4 STM32L4: I2C init parameters for L4+ MCU 2020-06-23 10:05:24 +02:00
Marcelo Salazar dbbdb3f5bd Remove Musca A1 target
The MUSCA_A1 target isn't supported in Mbed OS 6.
Removing as it was left in master by mistake.
However, it continues to be available in 5.15 branch.
2020-06-22 13:24:40 +01:00
YARB(Cypress) 383b8f98de Fix internal JIRA. Add check if cybsp_init() is successful 2020-06-22 12:45:09 +03:00
Roman Okhrimenko 00cbc2d54e Update GeneratedSource of 064B0S2 with repo-starging 15347 revision 2020-06-19 16:16:55 +03:00
Roman Okhrimenko dcc3559a82 Update GeneratedSources for 064B0S2 - disable ALT systick due to changes in psoc6pdl-1.6.0.4266 2020-06-19 16:16:55 +03:00
Roman Okhrimenko 1bd215ba1a Update GeneratedSource files for 064B0S2 using psoc6pdl-1.6.0.4266-rc3 2020-06-19 16:16:55 +03:00
Roman Okhrimenko 611c95614d Update psoc6cm0p to 1.2.0.237-rc2 2020-06-19 16:16:55 +03:00
Roman Okhrimenko 7a862d2059 Update psoc6pdl to 1.6.0.4266-rc3 2020-06-19 16:16:55 +03:00
Roman Okhrimenko bcc8c2cdae Rename 064B0S2 linker scripts names per common pattern 2020-06-19 16:16:54 +03:00
Roman Okhrimenko 2a313c3ed7 Update prebuild Secure CM0p hex file from multi image case with 064B0S2 to 1.2.0.210 2020-06-19 16:16:54 +03:00
Roman Okhrimenko 4043deee7e Update linker scripts with templates from psoc6pdl 1.6.0.4172 for IAR and ARM for 064B0S2, add cm4_dual versions 2020-06-19 16:16:54 +03:00
Roman Okhrimenko 66f6e2a199 Update asset psoc6cm0p build 1.2.0.210 RC1 2020-06-19 16:16:54 +03:00
Roman Okhrimenko f99a1c49b9 Update GeneratedSource and system files for B0S2 using psoc6pdl 1.6.0.4172 RC2 2020-06-19 16:16:54 +03:00
Roman Okhrimenko aa3c81e749 Update psoc6pdl to .1.6.0.4172 RC2 2020-06-19 16:16:54 +03:00
Roman Okhrimenko 797bf090b9 Delete policies and linker files for multi image for B0S2 2020-06-19 16:16:53 +03:00
Roman Okhrimenko edcda5192a Delete ES10 related sb-tools folder from TARGET_PSOC6, post build now use cysecuretools 2020-06-19 16:16:47 +03:00
Roman Okhrimenko b59a80d6ca Add 064B0S2 target to targets.json 2020-06-19 16:16:47 +03:00
Roman Okhrimenko 773a4becf1 Delete ES10 targets from targets.json 2020-06-19 16:16:47 +03:00
Roman Okhrimenko c97f140590 Delete ES10 target source CY8CKIT_064S2_4343W 2020-06-19 16:16:00 +03:00
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