Commit Graph

7318 Commits (d1d6bf51b387ef39f97320b2febd5d79231682ba)

Author SHA1 Message Date
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
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
George Beckstein 28e221da18 Update NUCLEO_G474RE target definition to inherit from renamed MCU_STM32 2020-05-20 07:30:18 -04:00
George Beckstein 658d89be8c Apply linker fix as in #12690 to new NUCLEO_G474RE target 2020-05-20 06:39:17 -04:00
George Beckstein 6e2fa616c7 Added spi_api.c implementation 2020-05-20 06:39:17 -04:00
George Beckstein eb8d128a24 Updated system clock settings to run at 170MHz (max for this target). Affects both HSI and HSE modes. 2020-05-20 06:39:17 -04:00
George Beckstein f391718a6d Updated detect code for NUCLEO_G474RE 2020-05-20 06:39:17 -04:00
George Beckstein 44ca862af3 Changed us_ticker configuration to use TIM5 instead of TIM2 to be consistent with the allowed PWM peripheral pins. 2020-05-20 06:39:17 -04:00
George Beckstein 2297e1b91e Updated clock configuration settings for NUCLEO_G474RE 2020-05-20 06:39:17 -04:00
George Beckstein c687ae312f Added missing analogin_device.c file and configured for STM32G4xx series 2020-05-20 06:39:17 -04:00
George Beckstein 613af0f604 Added support for ANALOGOUT 2020-05-20 06:39:17 -04:00
George Beckstein 934d60e63d Added support for FLASH API 2020-05-20 06:39:17 -04:00
George Beckstein 7f19c8ac6e Added support for SPI API 2020-05-20 06:39:17 -04:00
George Beckstein 06d74aa37a Added support for PWMOUT 2020-05-20 06:39:17 -04:00
George Beckstein e38dfc78b6 Added support for PORT APIs 2020-05-20 06:39:17 -04:00
George Beckstein f59ec66710 Added support for INTERRUPTIN 2020-05-20 06:39:17 -04:00
George Beckstein 4f41d2d66c Added support for I2CSLAVE and I2C_ASYNCH 2020-05-20 06:39:17 -04:00
George Beckstein 5e25e004df Added support for I2C 2020-05-20 06:39:17 -04:00
George Beckstein cc86ec99d0 Added ANALOGIN support 2020-05-20 06:39:17 -04:00
George Beckstein b11d160195 Added RTC support 2020-05-20 06:39:17 -04:00
George Beckstein d68ec74852 Added USTICKER support 2020-05-20 06:39:17 -04:00
George Beckstein 118919b820 Added RESET_REASON support (untested). 2020-05-20 06:39:17 -04:00
George Beckstein 80c5d96420 Added support for WDT (untested). Checked datasheet for maximum LSI frequency 2020-05-20 06:39:17 -04:00
George Beckstein 143a54922d Add support for SLEEP (untested) 2020-05-20 06:39:17 -04:00
George Beckstein 46ecb489b9 Add support for STDIO_MESSAGES 2020-05-20 06:39:17 -04:00
George Beckstein 740a73fa5b Add support for SERIAL_FC (untested) 2020-05-20 06:39:17 -04:00
George Beckstein 3432960aa1 Implemented support for basic serial communication 2020-05-20 06:39:17 -04:00
George Beckstein ec2544023d Added basic support for NUCLEO_G747RE. Basic GPIO support and system initialization. 2020-05-20 06:39:17 -04:00
jeromecoutant 13ba114d12 STM32G4 DISCO_G474RE introduction
- Only script result
- Can't compile
2020-05-20 06:39:17 -04:00
jeromecoutant 2631bf8070 STM32G4 NUCLEO_G474RE introduction
- Only script result
- Can't compile
2020-05-20 06:39:17 -04:00
jeromecoutant fd2bac73c9 STM32G4 NUCLEO_G431RB introduction
- Only script result
- Can't compile
2020-05-20 06:39:17 -04:00
jeromecoutant 85e8a59e84 STM32G4 NUCLEO_G431KB introduction
- Only script result
- Can't compile
2020-05-20 06:39:17 -04:00
jeromecoutant 35e3ce9034 STM32G4 automatic adaptation for MBED 2020-05-20 06:39:17 -04:00
jeromecoutant b387ed6bc1 STM32G4 introduction
Import from STM32Cube_FW_G4_V1.1.0
2020-05-20 06:39:17 -04:00
Pavel Slama 9d7e55b3f3 move system_clock.c to the root 2020-05-19 13:33:55 +02:00
Pavel Slama 1fc9561af7 STM32F412 bypass PLL configuration when already done by bootloader 2020-05-19 11:48:56 +02:00
Martin Kojtal 3847373660 targets: add baremetal to some known tested targets 2020-05-19 10:45:43 +01:00
Martin Kojtal ada878122c targets: fix indent 2020-05-19 10:37:13 +01:00
Martin Kojtal 6ca3c42942 targets: profiles remove/add not functional, replace it
It might be a bug as it should work.
2020-05-19 10:34:21 +01:00
Martin Kojtal dd6ed6c968 Revert "targets: enable baremetal by default"
This reverts commit 9b4cddd16a.

Not all targets can be enabled, will need more work.
2020-05-19 10:26:48 +01:00
Qinghao Shi f478a21de2
Merge pull request #12982 from 0xc0170/fix_release_version
build api: fix release version
2020-05-18 22:40:44 +01:00
Martin Kojtal 9b4cddd16a targets: enable baremetal by default
For only baremetal targets, just drop in replace. Don't need to add/remove.
2020-05-18 19:47:38 +01:00
Martin Kojtal d6fbda35d7 targets: add rtos profile by default
Every target is assumed to supported Mbed OS. If its not the case, it supports
only baremetal. Thus removing rtos, and adding bare-metal to the app profile.
2020-05-18 19:39:40 +01:00
jeromecoutant b57b12cc9f STM32L0 baremetal support 2020-05-18 17:27:42 +02:00
jeromecoutant 9b819c7f8b STM32H7 baremetal support 2020-05-18 17:27:32 +02:00
jeromecoutant 739b2048d4 STM32F3 baremetal support 2020-05-18 17:26:50 +02:00
jeromecoutant 96016aea17 STM32F1 baremetal support 2020-05-18 15:27:30 +02:00
jeromecoutant 794e0aa0cf STM32F0 baremetal support 2020-05-18 15:27:29 +02:00
Leon Lindenfelser b8554a3f26 Update power on and power off functionality
Implement soft_power_on/off() and hard_power_on/off() to perform as described in mbed-os CellularDevice API.
2020-05-18 08:11:40 -05:00
Martin Kojtal e345542b70
Merge pull request #12978 from vmedcy/pr-dev/pdl-1.5.2
Update psoc6pdl to v1.5.2
2020-05-18 13:10:21 +02:00
Martin Kojtal 5df3c91e1d RZ_A1XX: public set to false as its base target 2020-05-18 11:17:29 +01:00
jeromecoutant 2c0d96c57c FPGA test : remove test specific macro from targets.json 2020-05-18 11:48:12 +02:00
Dustin Crossman 96052c3347 Update CYSBSYSKIT_01 board init 2020-05-15 15:52:44 -07:00
Dustin Crossman a4c64481ea Update COMPONENT_SCL to version 1.0.0 2020-05-15 15:52:09 -07:00
MarceloSalazar 40080a8389 Remove MAX32620HSP as unsupported 2020-05-15 20:29:35 +01:00
MarceloSalazar 3ba07baad7 Remove 2 as release_version 2020-05-15 20:27:03 +01:00
Lingkai Dong 0ac17eaea8 Define MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE properly in rtos mbed_lib.json 2020-05-15 15:16:44 +01:00
Martin Kojtal 77d5583649
Merge pull request #12977 from jeromecoutant/PR_CLEAN_ARM_MICRO
STM32: remove uARM toolchain
2020-05-15 14:16:05 +02:00
Martin Kojtal 6cbe22dc59
Merge pull request #12623 from toyowata/baremetal_lpc1114
LPC1114: baremetal profile support
2020-05-15 13:17:52 +02:00
Kyle Kearney 0fa5e32c95 Update psoc6pdl to v1.5.2 2020-05-15 11:50:18 +01:00
jeromecoutant c96eb2cd0e STM32 rename TOOLCHAIN_ARM_STD into TOOLCHAIN_ARM 2020-05-15 10:41:28 +02:00
jeromecoutant 303752ad84 STM32 remove all TOOLCHAIN_ARM_MICRO 2020-05-15 09:37:40 +02:00
Martin Kojtal b1071487a3
Merge pull request #12951 from MarceloSalazar/S2LP_cleanup
Clean-up S2LP driver configuration
2020-05-15 08:08:47 +02:00
Martin Kojtal 37ee008b90
Merge pull request #12961 from MarceloSalazar/remove_nrf51
Remove nRF51 targets
2020-05-15 08:08:26 +02:00
Marcelo Salazar 149656447d Remove target dep. on S2LP driver 2020-05-14 17:17:27 +01:00
jeromecoutant 71e82ec3de STM32WB MBED6 supported targets
NUCLEO_WB55RG => MCU_STM32
2020-05-14 13:55:33 +02:00
jeromecoutant d0bf04fbba STM32L5 MBED6 supported targets
NUCLEO_L552ZE_Q => MCU_STM32
DISCO_L562QE    => MCU_STM32
2020-05-14 13:55:33 +02:00
jeromecoutant 1a80cde2da STM32L4 MBED6 supported targets
NUCLEO_L432KC        => MCU_STM32_BAREMETAL
NUCLEO_L433RC_P      => MCU_STM32
NUCLEO_L452RE_P      => MCU_STM32
DISCO_L475VG_IOT01A  => MCU_STM32
NUCLEO_L476RG        => MCU_STM32
DISCO_L476VG         => MCU_STM32
NUCLEO_L486RG        => MCU_STM32
DISCO_L496AG         => MCU_STM32
NUCLEO_L496ZG        => MCU_STM32
NUCLEO_L496ZG_P      => MCU_STM32
NUCLEO_L4R5ZI        => MCU_STM32
NUCLEO_L4R5ZI_P      => MCU_STM32
DISCO_L4R9I          => MCU_STM32
2020-05-14 13:55:33 +02:00
jeromecoutant e0b096b0e4 STM32L1 MBED6 supported targets
NUCLEO_L152RE => MCU_STM32
2020-05-14 13:55:32 +02:00
jeromecoutant cda2538bd2 STM32L0 code cleaning 2020-05-14 13:55:32 +02:00
jeromecoutant b1be927bdc STM32L0 MBED6 supported targets
NUCLEO_L011K4       => removed
NUCLEO_L031K6       => removed
DISCO_L053C8        => removed
NUCLEO_L053R8       => removed
DISCO_L072CZ_LRWAN1 => MCU_STM32
NUCLEO_L073RZ       => MCU_STM32_BAREMETAL
2020-05-14 13:55:32 +02:00
jeromecoutant 2a9d00fbfd STM32H7 MBED6 supported targets
NUCLEO_H743ZI     => removed
NUCLEO_H743ZI2    => MCU_STM32
GENERIC_H745I_CM4 => MCU_STM32
GENERIC_H745I_CM7 => MCU_STM32
DISCO_H747I       => MCU_STM32
DISCO_H747I_CM7   => MCU_STM32
DISCO_H747I_CM4   => MCU_STM32
2020-05-14 13:55:32 +02:00
jeromecoutant 0d0b2c1eeb STM32G0 MBED6 supported targets
NUCLEO_G071RB => MCU_STM32_BAREMETAL
2020-05-14 13:55:32 +02:00
jeromecoutant 00f58b4b79 STM32F7 MBED6 supported targets
DISCO_F746NG  => MCU_STM32
NUCLEO_F746ZG => MCU_STM32
NUCLEO_F756ZG => MCU_STM32
NUCLEO_F767ZI => MCU_STM32
DISCO_F769NI  => MCU_STM32
2020-05-14 13:55:32 +02:00
jeromecoutant dd46dfccb2 STM32F4 code cleaning 2020-05-14 13:55:22 +02:00
jeromecoutant f864179bd6 STM32F4 MBED6 supported targets
NUCLEO_F401RE        => MCU_STM32
DISCO_F401VC         => removed
STEVAL_3DP001V1      => removed
DISCO_F407VG         => removed
NUCLEO_F410RB        => removed
NUCLEO_F411RE        => MCU_STM32
NUCLEO_F412ZG        => MCU_STM32
DISCO_F413ZH         => MCU_STM32
NUCLEO_F413ZH        => MCU_STM32
NUCLEO_F429ZI        => MCU_STM32
DISCO_F429ZI         => MCU_STM32
NUCLEO_F439ZI        => MCU_STM32
NUCLEO_F446RE        => MCU_STM32
B96B_F446VE          => removed
NUCLEO_F446ZE        => MCU_STM32
DISCO_F469NI         => MCU_STM32
2020-05-14 13:55:22 +02:00
jeromecoutant f116fe0daa STM32F3 code cleaning 2020-05-14 13:55:21 +02:00
jeromecoutant 1b2e784aa9 STM32F3 MBED6 supported targets
NUCLEO_F302R8 => removed
NUCLEO_F303K8 => MCU_STM32_BAREMETAL
NUCLEO_F303RE => MCU_STM32_BAREMETAL
DISCO_F303VC  => removed
NUCLEO_F303ZE => MCU_STM32
DISCO_F334C8  => removed
NUCLEO_F334R8 => removed
2020-05-14 13:55:21 +02:00
jeromecoutant af7090d96c STM32F2 MBED6 supported targets
NUCLEO_F207ZG => MCU_STM32
2020-05-14 13:55:21 +02:00