Commit Graph

8481 Commits (add_led_button_target_config)

Author SHA1 Message Date
jeromecoutant 1c375e4d90 STM32F7: update device_name 2021-04-01 11:52:47 +02:00
jeromecoutant 762d5f40c8 STM32F4: update device_name 2021-04-01 11:52:47 +02:00
jeromecoutant 5fc3975c58 STM32F3: update device_name 2021-04-01 11:52:47 +02:00
jeromecoutant d1c78a296b STM32F2: update device_name 2021-04-01 11:52:47 +02:00
jeromecoutant e5c47f2484 STM32F0: update device_name 2021-04-01 11:45:25 +02:00
reme e523617360 UPDATE STM32CubeF1 with v1.8.3 2021-04-01 09:18:43 +02:00
harmut01 18d8499979 Refactor ER_IROM1 load region defintion 2021-03-31 16:27:28 +01:00
Anna Bridge 73896715e6
Merge pull request #14477 from jeromecoutant/PR_L5_PACK
STM32: Add STM32L5 in arm_pack_manager index file
2021-03-31 15:25:43 +01:00
harmut01 c77eba00dc Remove IAR from NXP targets without small c lib support
Toolchains should provide support for small c lib, remove IAR from the
NXP targets that don't currently do so.
2021-03-31 15:05:12 +01:00
Harrison Mutai 332bcf472f Remove 'c_lib' configuration from NXP targets 2021-03-31 15:04:42 +01:00
Harrison Mutai a6d2c5f1c5 Add bare metal support to NXP targets
Modify linker scripts to add heap to memory map, add list of supported c libs and "bare-metal" to supported_application_profiles.
2021-03-31 15:04:42 +01:00
Harrison Mutai d6b6da93ed Remove µARM toolchain dependencies from NXP targets 2021-03-31 15:04:41 +01:00
harmut01 3d66447302 Refactor RW_IRAM1 load region definition 2021-03-31 14:23:32 +01:00
jeromecoutant 80fed0b442
NUCLEO_G431RB: pin standard 2021-03-30 14:23:43 -05:00
Dan Rose 1c2986a72e
rename USBRX -> CONSOLE_RX 2021-03-29 13:50:49 -05:00
Dan Rose f7e628d191
switch to new target naming conventions 2021-03-29 13:50:49 -05:00
Dan Rose b00add547c
remove clock_source override 2021-03-29 13:50:49 -05:00
Dan Rose 3292d0501a
Support Nucleo G431RB 2021-03-29 13:50:49 -05:00
Anna Bridge 8075b2348c
Merge pull request #14472 from LDong-Arm/cmake_output_ext
CMake: support `OUTPUT_EXT` from `targets.json`
2021-03-29 14:41:17 +01:00
Anna Bridge 616f0b7387
Merge pull request #14445 from jeromecoutant/PR_WB_WATCHDOG
STM32WB/STM32WL: watchdog LSI frequency
2021-03-29 11:23:42 +01:00
Anna Bridge b91a705e74
Merge pull request #14444 from jeromecoutant/PR_GPIO_FREE
STM32: reset GPIO value is analog mode
2021-03-29 11:23:15 +01:00
Jost, Chris 7f5fe0b8a8 removed wrong usage of USBDEVICE 2021-03-29 11:00:31 +02:00
jeromecoutant 1a27351582 STM32L4: align all system_clock files 2021-03-29 09:32:26 +02:00
Jost, Chris 29943181bb enable USBDEVICE on STM32L1 series, except for XDOT_L151CC 2021-03-26 16:53:04 +01:00
Anna Bridge 7f6ff7e61b
Merge pull request #14434 from jeromecoutant/PR_WB_I2C
STM32 I2C : correct deinit
2021-03-26 15:25:48 +00:00
Anna Bridge 0742135fd1
Merge pull request #14457 from ARMmbed/uart-stdio-alias
Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides
2021-03-26 15:17:58 +00:00
jeromecoutant a60b985c8d STM32L1 : enable ADC after deepsleep 2021-03-26 14:03:49 +01:00
jeromecoutant ddfde71643 STM32L5: correct arm_pack_manager index file 2021-03-26 12:01:26 +01:00
harmut01 3d1051dbbe Maxim: Add bare metal support to targets
Add heap load region to scatter file and update `targets.json` to
provide baremetal support to the following targets: SDT32620B,
SDT32625B, MAX32620FTHR, MAX32625MBED, MAX32625PICO, and MAX32630FTHR.
2021-03-26 09:07:52 +00:00
George Psimenos 9cc2deb446 typo 2021-03-25 15:25:40 +00:00
Lingkai Dong 54a5fc5f15 Set OUTPUT_EXT for ARM_MUSCA_S1 and ARM_MUSCA_B1
By default, Mbed CLI 2 + CMake builds both .bin and .hex images,
unless a target specifies OUTPUT_EXT. The post binary hook for
ARM_MUSCA_S1 and ARM_MUSCA_B1 is run on .bin images only, so we need
to prevent .hex images from being generated and confusing users.
2021-03-25 12:29:17 +00:00
harmut01 ea83d07465 Refactor load region definitions for ArmC6 toolchain 2021-03-25 09:26:00 +00:00
harmut01 2e3bf05d23 GigaDevice: Add bare metal support to targets
Add bare metal settings to target configurations, and modify scatter
files to include heap load region.
2021-03-24 16:41:27 +00:00
harmut01 2cca7f248f GigaDevice: Remove dependencies for deprecated compilers 2021-03-24 16:41:18 +00:00
jeromecoutant d0ea0466ad STM32: remove critical sections in flash_program_page 2021-03-24 17:40:18 +01:00
George Psimenos 61cfaa15cd Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides 2021-03-23 11:17:17 +00:00
Martin Kojtal f00ce59769
Merge pull request #14243 from boraozgen/feature/stm32-rtc-hse
STM32: Add HSE support to RTC
2021-03-22 10:57:28 +01:00
Martin Kojtal 83adad9609
Merge pull request #14421 from jeromecoutant/PR_SDPUSB
SDP-K1: enable IAR compilation
2021-03-22 10:57:08 +01:00
Martin Kojtal b7f1acff44
Merge pull request #14428 from 0xc0170/cmake-fix-targets-labels
CMake targets: remove labels usage, not required anymore
2021-03-22 10:56:55 +01:00
Martin Kojtal 6a252875c7
Merge pull request #14429 from hugueskamba/hk_cmake_fix_st_build_error
CMake: Fix STM target build failures
2021-03-22 10:45:46 +01:00
George Psimenos d239ef98cd Rename USBTX/RX to CONSOLE_TX/RX 2021-03-18 17:01:54 +00:00
George Psimenos 3af96247a6 Update PinNames markers 2021-03-18 17:01:54 +00:00
George Psimenos 2322f1dd7a Remove unused NUCLEO_H743ZI target files 2021-03-18 17:01:54 +00:00
George Psimenos ec7e00a780 Add target markers to new PinNames.h files 2021-03-18 17:01:54 +00:00
George Psimenos 8cf2eccd47 Remove unused NUVOTON M2351 target files 2021-03-18 17:01:54 +00:00
jeromecoutant e602adb080 [STD-PIN] STM32H7: standardized pins 2021-03-18 17:01:54 +00:00
jeromecoutant eafaca379e [STD-PIN] STM32L5: standardized pins 2021-03-18 17:01:53 +00:00
jeromecoutant bb7d0391a4 [STD-PIN] STM32L4: standardized pins 2021-03-18 17:01:53 +00:00
George Psimenos 885cdef5f7 Add standard pin-names validation script & tests 2021-03-18 17:01:53 +00:00
jeromecoutant 5e50e3b19b [STD-PIN] enable "ARDUINO_UNO" for B_L4S5I_IOT01A 2021-03-18 17:01:50 +00:00
jeromecoutant a4350f72bd [STD-PIN] BUTTON and LED define
hal/tests/TESTS/mbed_hal/gpio/main.cpp is replaced by
hal/tests/TESTS/pin_names/generic/main.cpp now
2021-03-18 17:01:50 +00:00
jeromecoutant a6c213bb10 [STD-PIN] Replace STDIO_UART_TX by USBTX 2021-03-18 17:01:50 +00:00
jeromecoutant 3c2088a45f STM32WB/STM32WL: watchdog LSI frequency
Value from DataSheet
2021-03-18 15:45:47 +01:00
jeromecoutant 21dcebb58d STM32 OSPI/QSPI : correct GPIO free 2021-03-18 14:53:00 +01:00
jeromecoutant 7203125827 STM32 ANALOGOUT : correct GPIO free 2021-03-18 14:53:00 +01:00
jeromecoutant 73239b6a99 STM32 SPI : correct GPIO free 2021-03-18 14:52:59 +01:00
jeromecoutant 20e9235a26 STM32 SERIAL : correct GPIO free 2021-03-18 14:52:59 +01:00
jeromecoutant 10e0759372 STM32 PWM : correct GPIO free 2021-03-18 14:52:59 +01:00
Martin Kojtal a0ee432279 CMake Freescale: add freescale prefix to avoid conflict with NXP 2021-03-16 17:30:09 +00:00
jeromecoutant 34f02ff573 STM32 I2C : correct deinit
Set port mode back to Analog (reset value)
2021-03-16 15:05:37 +01:00
Hugues Kamba ff0756d338 CMake: Fix STM target build failures
Ensure the linker and startup files listed match
with the correct letter case as some host systems
are case sensitive.
2021-03-15 14:11:23 +00:00
Martin Kojtal ad8b9f651e CMake targets: remove labels usage, not required anymore 2021-03-15 11:46:15 +00:00
Martin Kojtal 68fb11e912
Merge pull request #14418 from hugueskamba/hk_cmake_fix_ep_atlas
EP_ATLAS: Fix mbedtools build errors
2021-03-15 10:06:59 +01:00
Martin Kojtal e3c8878d59 WIO_BG96: fix macro exclusion - use cellular
This depends on cellular drivers not netsockets (it works because both are present in
the system, not true when you use CMake).
2021-03-12 15:28:36 +00:00
Bora Özgen 257e466d6c Add RTC clock source selection to targets.json 2021-03-12 15:34:13 +01:00
Bora Özgen 25a0aee77e Support RTC from HSE only for STM32F2/3/4 2021-03-12 15:33:28 +01:00
Bora Özgen 4d1161b689 Add HSE support to STM32 RTC 2021-03-12 15:33:27 +01:00
Martin Kojtal a63bd12706
Merge pull request #14416 from hugueskamba/hk_cmake_fix_ff1705-l151cc
CMake: Fix FF1705_L151CC build
2021-03-12 13:26:41 +00:00
Hugues Kamba 811a72af88 EP_ATLAS: Remove requirement for USB library if not required
Move inclusion of USB header file within the existing
conditional pre-processor directive so the USB library
is not required if USB stdio console is disable
2021-03-12 12:19:17 +00:00
Hugues Kamba 2da1972012 CMake: Fix EP_ATLAS build
Enable Onboard TELIT ME310 driver only when cellular library is included.

This allows us to remove the cellular library as a requirement

to build applications that do not require it (i.e Blinky).
2021-03-12 12:19:17 +00:00
Marek Czerski f64e64dc9d STM32: AnalogOut: do not call HAL_DAC_Start in dac_write
dac_write (used by AnalogOut.write) calls HAL_DAC_Start
every time. It is required to call HAL_DAC_Start only once.
HAL_DAC_Start uses internally HAL_Delay(1) making AnalogOut
not suitable for use in high speed application.
This change removes call to HAL_DAC_Start in dac_write and
moves it to analogout_init.
2021-03-12 09:56:41 +01:00
Martin Kojtal eec320c991
Merge pull request #14339 from jeromecoutant/PR_F4_1260
STM32F4 update drivers version to CUBE V1.26.0
2021-03-11 17:14:28 +00:00
Martin Kojtal 306172570a
Merge pull request #14379 from OpenNuvoton/nvt_high_res_pwm
Nuvoton: Enlarge NuMaker PWM duty cycle range
2021-03-11 17:12:25 +00:00
Martin Kojtal dd7ca06176
Merge pull request #14346 from harmut01/baremetal_analog
Add bare metal support to Analog Device targets
2021-03-11 16:40:45 +00:00
jeromecoutant 2823fe0275 SDP-K1: enable IAR compilation 2021-03-11 15:53:28 +01:00
Hugues Kamba 9b11ed4144 CMake: Fix FF1705_L151CC build
Add the missing CMake target to build BSP for the
FF1705_L151CC Mbed board
2021-03-11 12:30:54 +00:00
Martin Kojtal ea4aed2d95
Merge pull request #14372 from harmut01/baremetal_samsung
S1SBP6A: Add bare metal support
2021-03-11 11:04:46 +00:00
Martin Kojtal 5326e30961
Merge pull request #14293 from jeromecoutant/PR_CMAKE_ALIGN
STM32L4 : align CMakeLists.txt with all STM32
2021-03-11 08:56:06 +00:00
Martin Kojtal 0ef41d3687
Merge pull request #14347 from harmut01/baremetal_ambiq
Add bare metal support to Ambiq targets
2021-03-11 08:55:43 +00:00
jeromecoutant c41ea5f723 STM32F4: STM32Cube_FW_F4_V1.26.0 - Subfamilies 2021-03-10 08:45:49 +01:00
jeromecoutant 021aa009b8 STM32F4: STM32Cube_FW_F4_V1.26.0 - STM32Cube_FW 2021-03-10 08:45:48 +01:00
jeromecoutant 338e37abee STM32F4: license header alignment 2021-03-10 08:45:47 +01:00
jeromecoutant de27e83302 STM32F4: move common files 2021-03-10 08:45:47 +01:00
jeromecoutant 6e90fd2cee STM32F4 : add subfamilies in targets.json 2021-03-10 08:45:46 +01:00
jeromecoutant 82a31782ec STM32F4: move TARGET_MTS_MDOT_F411RE info STM32F411xE 2021-03-10 08:45:46 +01:00
jeromecoutant bccef1a6eb STM32F4: move TARGET_MTS_DRAGONFLY_F411RE info STM32F411xE 2021-03-10 08:45:45 +01:00
jeromecoutant 3d1d3b76bb STM32F4: align CMakeLists.txt for all families 2021-03-10 08:45:45 +01:00
cyliangtw 5b693ff3b3 To keep proprietary BSP DutyCycle definition and rename HighDutyCycle in extend API 2021-03-10 11:53:55 +08:00
Martin Kojtal 0e89f9d6d9
Merge pull request #14337 from jeromecoutant/PR_STM32L1_1102
STM32L1 update drivers version to CUBE V1.10.2
2021-03-09 17:37:58 +00:00
Martin Kojtal 5f9fbfe9f6
Merge pull request #14301 from harmut01/baremetal_renesas
Add bare metal support to Renesas targets
2021-03-09 17:31:43 +00:00
Martin Kojtal 7a707de9d7
Merge pull request #14387 from mark-psl/master
Update serial_api.c - Issue #14353 - Setting BufferedSerial pin to NC throws runtime assertion
2021-03-09 17:29:45 +00:00
Martin Kojtal c8d4b90267
Merge pull request #14392 from jeromecoutant/PR_WB_QSPI
STM32WB: enable QSPI for custom boards
2021-03-09 17:29:34 +00:00
Martin Kojtal e1f3cc1761
Merge pull request #14391 from LDong-Arm/musca_s1_tfm_s
Update secure binaries with platform init fix for ARM_MUSCA_S1
2021-03-09 14:32:06 +00:00
jeromecoutant 1eb16d1f25 STM32 : gpio_reset_at_init disabled with MBED_DEBUG 2021-03-09 12:33:25 +01:00
jeromecoutant 898439930a STM32L1 : license header alignment 2021-03-09 12:33:25 +01:00
jeromecoutant 30c843ede7 STM32L1 : STM32Cube_FW 1.10.2 2021-03-09 12:33:16 +01:00
jeromecoutant 6b57fd48a8 STM32L1 : targets restructuration
- alignment with other STM32 families
2021-03-09 12:32:42 +01:00
jeromecoutant 95ebb3d7b6 STM32L1 : directory restructuring 2021-03-09 12:32:42 +01:00
Martin Kojtal 682a5eab83
Merge pull request #14390 from UbiJCC/patch-1
Add extern "C" around am_hal_secure_ota.h functions
2021-03-09 10:57:50 +00:00
Lingkai Dong 31cc82dabb "Updated secure binaries for [(ARM_MUSCA_S1, ARMCLANG)]"
This brings in the platform init fix:

    https://github.com/ARMmbed/trusted-firmware-m/pull/15
2021-03-09 10:22:58 +00:00
jeromecoutant 806417853d STM32WB: enable QSPI for custom boards 2021-03-08 16:51:53 +01:00
Martin Kojtal 98143e48cf
Merge pull request #14323 from artokin/update_from_feature_wisun
Bring in MIMXRT1050_EVK changes from feature-wisun branch
2021-03-08 15:39:40 +00:00
Martin Kojtal d7aded63c9
Merge pull request #14373 from harmut01/baremetal_nuvoton
Add bare metal support to Nuvoton targets
2021-03-08 13:48:31 +00:00
Martin Kojtal 31a60a9b47
Merge pull request #14374 from rwalton-arm/dev/rwalton-arm/cm3ds-mps2-target-config
targets: Remove target. prefix from ARM-CM3DS-MPS2 override
2021-03-08 13:48:06 +00:00
Martin Kojtal 278ff00496
Merge pull request #14361 from LDong-Arm/musca_post_binary_hooks
CMake: support signing TF-M targets with post binary hooks
2021-03-08 13:12:55 +00:00
Martin Kojtal e37f7a67f2
Merge pull request #14351 from ladislas/ladislas/stm32f7/use_callbacks
STM32 - Add if !defined check for USE_HAL_XXX_REGISTER_CALLBACKS
2021-03-08 11:08:45 +00:00
UbiJCC 9074be5821
Add extern "C" around am_hal_secure_ota.h functions 2021-03-06 13:50:20 -05:00
mark-psl 2dc73149ec Update serial_api.c 2021-03-05 11:57:00 -05:00
harmut01 4afd24cf65 Freescale: Remove IAR from list of supported toolchains
Having IAR with the supported_c_libs parameter missing a setting for a
IAR causes build failures during CI. Since IAR is no longer supported by
Mbed remove IAR as a supported toolchain to remove this inconsistency.
2021-03-05 16:20:22 +00:00
Lingkai Dong 3e19778597 CMake: Enable post binary hook for ARM_MUSCA_B1 2021-03-05 16:16:26 +00:00
Lingkai Dong 816f81d018 CMake: Enable post binary hook for ARM_MUSCA_S1 2021-03-05 16:16:26 +00:00
Lingkai Dong 4e45b0a4eb Copy signing keys into each Musca target's path
The signing keys were previously imported from trusted-firmware-m
and located in mbed-os/tools/targets/musca_* (path for Mbed CLI 1).
This PR copie them into each target's directory as per the
convention of the new tools. Keys in the old path remain untouched
for backward compatibility, but they will be eventually removed
once we stop supporting Mbed CLI 1.
2021-03-05 16:16:26 +00:00
Martin Kojtal ae432b24a2
Merge pull request #14378 from LDong-Arm/post_build_rework
CMake: Pass application/test name to post build operation
2021-03-05 15:49:53 +00:00
Harrison Mutai 7eb2122f63 Add bare metal support to Nuvoton targets
Modify `targets.json` to configure bare metal for the following targets:
NUMAKER_IOT_M252, NUMAKER_IOT_M263A, NUMAKER_IOT_M487, NUMAKER_PFM_M487,
NUMAKER_PFM_NUC472. Add target link interface between nuvoton library
and mbed-cmsis-cortex-m.
2021-03-05 14:50:20 +00:00
Harrison Mutai 46fb822d02 Remove uARM dependencies from Nuvoton targets 2021-03-05 14:48:17 +00:00
Martin Kojtal 3fb5ed718c
Merge pull request #14376 from OpenNuvoton/nvt_cmake
CMake: Add mbed-cmsis-cortex-m into Nuvoton target
2021-03-05 14:04:05 +00:00
Harrison Mutai 2e9745899e Rename Samsung ARM toolchain from ARMC6 to ARM 2021-03-05 09:45:28 +00:00
Harrison Mutai da73b4bf8d CMake: Refactor target MCU_STM32F103xE library name 2021-03-04 15:37:47 +00:00
cyliangtw 045f443bb2 Support M251/M261/M453/NANO130/NUC472 PWM duty cycle range as 0 ~ 10000 2021-03-04 19:58:03 +08:00
Lingkai Dong 848341112e NXP: Query precise application names in post build
This removes the need to use "glob" a file extension, and uses
precise application names.
2021-03-04 10:28:22 +00:00
Lingkai Dong 5353b62873 Cypress: Query exact application names in post build
This removes the need to use "glob" a file extension, and uses
precise application names.
2021-03-04 10:28:22 +00:00
cyliangtw abdcc7b831 Support M480 PWM duty cycle range as 0 ~ 10000 2021-03-04 17:10:04 +08:00
Harrison Mutai d09c4b1383 Add baremetal support to S1SBP6A 2021-03-04 09:06:57 +00:00
cyliangtw a3c09d0a3f Add mbed-cmsis-cortex-m into Nuvoton CMakeList 2021-03-04 11:35:14 +08:00
Arto Kinnunen ad3bb0dc72 Change file permissions from 755->644 2021-03-03 13:45:58 +02:00
Robert Walton 905fc253b6 targets: Remove target. prefix from ARM-CM3DS-MPS2 override
This is the only target in targets.json that uses the `target.` prefix
when defining a configuration override. This looks like an error, and
causes issues with mbed-tools, so this commit removes the prefix.
2021-03-03 11:31:50 +00:00
Martin Kojtal 76b2902f48
Merge pull request #14354 from ARMmbed/feature-tf-m-1.2-integration
Update TF-M support to v1.2
2021-03-03 11:08:24 +00:00
Martin Kojtal 87cededeee
Merge pull request #14348 from harmut01/baremetal_arm_fm
Add bare metal support to ARM FM targets
2021-03-03 08:54:42 +00:00
Martin Kojtal 876032b818
Merge pull request #14338 from jeromecoutant/PR_README_CLOCK
STM32: update readme with clock information
2021-03-03 08:54:26 +00:00
Martin Kojtal 53f87aada1
Merge pull request #14363 from harmut01/baremetal_si
Add bare metal support to Silicon Labs targets
2021-03-03 08:53:10 +00:00
Martin Kojtal a9766519cf
Merge pull request #14345 from harmut01/baremetal_toshiba
Add bare metal support to Toshiba targets
2021-03-02 16:44:29 +00:00
Martin Kojtal 1e3834325f
Merge pull request #14303 from ycsin/master
Add STM32F103xE SOC support
2021-03-02 16:43:38 +00:00
Harrison Mutai ee5946c990 Add bare metal support to EFM32 targets
Modify scatter files to add heap load region, and remove hard coded
values. Add supported c libs and bare metal profile to `targets.json`
configurations. Affects the following targets: EFM32GG_STK3700,
TB_SENSE_12, and EFM32GG11_STK3701.
2021-03-02 10:29:47 +00:00
Harrison Mutai 5b1c704622 Remove uARM dependencies for EFM32FF targets 2021-03-02 10:25:41 +00:00
Martin Kojtal 5614af0f1b
Merge pull request #14349 from harmut01/baremetal_nordic
Add bare metal support to Nordic targets
2021-03-02 09:41:41 +00:00
Martin Kojtal f78c24135c
Merge pull request #14325 from AGlass0fMilk/ep-atlas-reg-init
EP Atlas Target Updates
2021-03-02 09:41:28 +00:00
Martin Kojtal 44e9e3ca80
Merge pull request #14324 from hugueskamba/hk_fix_psoc6_post_build_script
PSOC6: Catch possible error in post build script
2021-03-02 09:40:57 +00:00
Martin Kojtal e2a5f8f8ba
Merge pull request #14291 from harmut01/baremetal_freescale
Add bare metal support to freescale targets
2021-03-02 09:40:17 +00:00
Harrison Mutai 191bd023eb Remove erroneous object file reference in IRAM1 definition 2021-03-01 16:27:24 +00:00
Harrison Mutai c55210fdc4 Correct vector table and ram size definitions 2021-03-01 15:30:31 +00:00
Martin Kojtal c5bfa7e471
Merge pull request #14340 from chrJost/master
STM32L5: enable USBDEVICE
2021-03-01 15:28:44 +00:00
Martin Kojtal 1f28e6e7dd
Merge pull request #14334 from hugueskamba/hk_cmake_remove_app_target_post_build_calls
CMake: Remove references of APP_TARGET
2021-03-01 14:59:02 +00:00
Arto Kinnunen 7498683b4f Change file permissions from 755->644 2021-03-01 10:20:54 +02:00
George Beckstein d00699c70f Add subtarget_init files to cmake 2021-02-25 10:34:42 -05:00
Ladislas de Toldi b12481b3c3
STM32WB - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:20:11 +01:00
Ladislas de Toldi c68c210a47
STM32L5 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:19:17 +01:00
Ladislas de Toldi 40120e6036
STM32L4 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:18:24 +01:00
Ladislas de Toldi 2c1d37e4a5
STM32L0 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:17:14 +01:00
Ladislas de Toldi 8361fda30f
STM32H7 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:16:37 +01:00
Ladislas de Toldi 1d4742e8c3
STM32G4 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:15:47 +01:00
Ladislas de Toldi 09457e2cf8
STM32G0 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:14:50 +01:00
Ladislas de Toldi 758d4c4245
STM32F3 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:13:52 +01:00
Ladislas de Toldi ea9eb73cc8
STM32F2 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:12:43 +01:00
Ladislas de Toldi aa30a254a9
STM32F1 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:10:21 +01:00
Ladislas de Toldi 1732c136da
STM32F0 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:08:59 +01:00
Ladislas de Toldi 143176b8c4
STM32F4 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:06:48 +01:00
Martin Kojtal 1de9e3973d
Merge pull request #14344 from hugueskamba/hk_cmake_fix_psoc6_post_build
CMake: Fix PSOC6 post build script
2021-02-25 15:06:48 +00:00
Ladislas de Toldi e1aa00ee76
STM32F7 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:06:41 +01:00
Harrison Mutai 3c57f384b1 Remove IAR from list of supported toolchains 2021-02-25 14:23:19 +00:00
Harrison Mutai 23c4d6f4e2 Remove IAR from list of supported toolchains 2021-02-25 14:20:19 +00:00
Harrison Mutai f985169f04 Remove IAR from list of supported toolchains 2021-02-25 14:17:58 +00:00
Harrison Mutai de162d4087 Remove IAR from list of supported toolchains 2021-02-25 14:15:16 +00:00
Harrison Mutai 15e851194c Remove IAR from list of supported toolchains 2021-02-25 14:11:46 +00:00
Lingkai Dong 6ab4b1c1d4 "Updated secure binaries for [('ARM_MUSCA_S1', 'ARMCLANG')]" 2021-02-25 14:02:57 +00:00
Lingkai Dong 29f7f9f5d2 "Updated secure binaries for [('ARM_MUSCA_B1', 'ARMCLANG')]" 2021-02-25 14:02:57 +00:00
Lingkai Dong 63523bd0aa Remove _NS aliases for Musca B1/S1
In targets.json, ARM_MUSCA_B1 and ARM_MUSCA_S1 have alias target
names suffixed with `_NS`. They are identical to targets without
`_NS` and exist purely for compatibility with the old naming
convention we had. The CI builds them as separate targets and uses
extra resources.

As we are upgrading Musca targets to TF-M v1.2, it's time to clean
up the aliases.
2021-02-25 14:02:57 +00:00
Lingkai Dong 88a38c2750 Musca S1: include missing `cmsis_nvic.h`
The vector table needs to be copied from ROM to RAM, in order for us
to set IRQ handlers at run time. The address in RAM is defined by
`NVIC_RAM_VECTOR_ADDRESS` in `cmsis_nvic.h`, but its inclusion
was missing from Musca S1's `cmsis.h` and consequently the vector
table was not copied.

On most targets this results in a memory access error when we set
vectors. But Musca S1's ROM is in its MRAM (which can be accessed
like any RAMs), and this causes the ROM image to be modified
with no error/warning. On the next boot, MCUboot fails the image
integrity check.

This commit adds the missing include, in the same spirit as
01dd997d55.
2021-02-25 14:02:57 +00:00
Lingkai Dong ac4533a5bd Exclude Musca signing layouts from compilation
Files containing signing layouts are parsed by the post build
hook for signing purpose only.
2021-02-25 14:02:57 +00:00
Vikas Katariya 39e226bf6a Update target `ARM_MUSCA_S1` TF-M V1.2 binaries
* Remove the old `mcuboot.bin`
* Add `bl2.bin`
* Update TF-M secure binaries

GCC_ARM toolchain used.
2021-02-25 14:02:56 +00:00
Vikas Katariya c0721a95ca Update partition files for `ARM_MUSCA_S1`
* Partition files are synced with TF-M v1.2
* To have uniformity with TF-M v1.2, rename the following:
 ** image_macros_preprocessed_ns.c to `signing_layout_ns.c`
 ** image_macros_preprocessed_s.c to `signing_layout_s.c`
* `MCUBOOT_IMAGE_NUMBER` is set to 2 by default for TF-M v1.2,
therefore it is necessary that Mbed OS compiles the right macros
for when linking and using the partition files.
2021-02-25 14:02:56 +00:00
Vikas Katariya 65e2d45d99 Update target `ARM_MUSCA_B1` TF-M V1.2 binaries
* Remove the old `mcuboot.bin`
* Add `bl2.bin`
* Update TF-M secure binaries

GCC_ARM toolchain used.
2021-02-25 14:02:56 +00:00
Vikas Katariya 0ccf4db143 Update partition files for `ARM_MUSCA_B1`
* Partition files are synced with TF-M v1.2
* To have uniformity with TF-M v1.2, rename the following:
 ** image_macros_preprocessed_ns.c to `signing_layout_ns.c`
 ** image_macros_preprocessed_s.c to `signing_layout_s.c`
* `MCUBOOT_IMAGE_NUMBER` is set to 2 by default for TF-M v1.2,
therefore it is necessary that Mbed OS compiles the right macros
for when linking and using the partition files

** Workaround **
The `region_defs.h` has an explicit definition of `BL2`, even
though it is already defined in target.json for `ARM_MUSCA_B1`.
This is because of Mbed CLI 1, as it can't seem to use the right
macro when linking the files for Mbed OS application when using
the ARMCLANG toolchain.
2021-02-25 14:02:56 +00:00
Vikas Katariya b0da9d0cdf Switch to using `TARGET_TFM_LATEST`
Rather than maintaining a specific `TARGET_TFM_V1_x`, its better to use
more generic name `TARGET_TFM_LATEST` to avoid confusion on the latest
TFM version supported by Mbed OS

* Rename the folder from `TARGET_TFM_V1_1` to `TARGET_TFM_LATEST`
* Update the CmakeLists.txt
* Change the name of the MUSCA targets to maintain uniformity
with TF-M v1.2
* Update target.json for PSA_V8_M to use `TFM_LATEST`
2021-02-25 14:02:55 +00:00
Lingkai Dong c1d115e25b Fix conflicts in IAR configuration
In `targets.json`, the base target ARM_MPS2_Target does not have `iar`
in `supported_c_libs`. But its inherited targets have `IAR` in
`supported_toolchains`, causing configuration check to fail.
2021-02-25 12:03:26 +00:00
Harrison Mutai da4c528659 Add bare metal support to ARM FM targets
Modify scatter files to specify heap load region and add small libraries
to list of supported libraries in target.json.
2021-02-25 09:59:41 +00:00
Harrison Mutai fc00035c0f Add bare metal support to Toshiba targets
Modify scatter files to specify heap load region and add small libraries
to list of supported libraries in target.json.# Please enter the commit message for your changes. Lines starting
2021-02-25 09:29:28 +00:00
Harrison Mutai 6238f2ecad Add bare metal support to Analog Device targets 2021-02-25 09:28:48 +00:00
Harrison Mutai 6b89c469a8 Add bare metal support to Ambiq targets 2021-02-25 09:28:07 +00:00
Harrison Mutai accc081c6e Add bare metal support to Nordic targets 2021-02-25 09:25:52 +00:00
Hugues Kamba 131e0fa2bf CMake: Fix PSOC6 post build script
Ensure the signing image ids are of type int.
2021-02-24 22:30:40 +00:00
Jost, Chris 96c31e15da fixed copy paste errors 2021-02-24 14:41:04 +01:00
jeromecoutant 8987aed3e8 STM32L4: align CMakeLists.txt for all families 2021-02-24 12:20:58 +01:00
jeromecoutant 0c7b4d7801 STM32: update readme with clock information 2021-02-24 11:15:17 +01:00
Jost, Chris cb032d2365 enable USBDEVICE for STM32L5 2021-02-24 10:21:54 +01:00
George Beckstein 0212fde7fb Fix astyle issues 2021-02-23 15:44:09 -05:00
Hugues Kamba 03914d1875 CMake: Remove references of APP_TARGET
This needs to be removed as there should not be a
name requirement for application CMake variable name.
Furthermore, in certain uses cases it prevents
successful builds for some Mbed targets. For instance
when building Greentea test applications for Mbed
targets that require post build operations as they do
not define APP_TARGET.
2021-02-23 17:24:31 +00:00
George Beckstein ec9d647c31 Add default app start and size limitations
This commit introduces a default application start address (`0x1000`) and size limitation (`0xDF000`) to accomodate the Nordic USB bootloader.

The bootloader consists of a master boot record in flash from address `0x0` to `0x1000` and the actual bootloader application starting at `0xE0000` to the end of flash (`0x100000`). The bootloader enables firmware updates over USB using nRF Connect for Desktop.

More documentation regarding the open bootloader can be found here: https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_open_bootloader.html
2021-02-23 10:03:26 -05:00
George Beckstein 95415ebd47 Add option to use USBSerial for stdio console
This commit introduces an option, `ep-atlas.enable-usb-stdio-console`, that will retarget the Mbed stdio console handle to a USBSerial instance if enabled.

Please note that if your application uses USB, it will conflict with this option. You should disable this option and implement a composite USB device in your application if you require stdio over USB.

This option is disabled by default so it will not cause issues with existing user code.
2021-02-23 10:03:26 -05:00
George Beckstein 392d0f8f72 Configure internal regulators at startup
This commit introduces an implementation of the `subtarget_sdk_init` startup hook (called during `mbed_sdk_init`) that configures the internal regulators of the nRF52840.

The configuration sets up the internal regulator to output 3.3V. If this is not done, the default system voltage may be too low for the on-board indicator LEDs to conduct (ie: system voltage is lower than LED forward voltage).
2021-02-23 10:03:26 -05:00
George Beckstein 9e4d46262d Introduce `subtarget_sdk_init` startup hook.
The `mbed_sdk_init` startup hook is implemented at the NRF52-series level and so is unavailable for override. This commit adds an additional startup hook for NRF52 subtargets to perform any other startup initialization required.
2021-02-23 10:03:26 -05:00
Martin Kojtal 57a6fe3a8e
Merge pull request #14314 from hugueskamba/hk_cmake_fix_musca_ns
CMake: Fix ARM MUSCA NS targets build
2021-02-23 11:04:38 +00:00
Martin Kojtal 88a242f749
Merge pull request #14306 from hugueskamba/hk_cmake_create_cmsis_cortex_libs
CMake: Create CMSIS library targets to remove dependency on MBED_TARGET_LABELS
2021-02-23 08:36:49 +00:00
Martin Kojtal da51cb2185
Merge pull request #14318 from harmut01/example_build_errors
CMake: Fix path to STM32F0 GCC linker scripts
2021-02-23 08:36:27 +00:00
Martin Kojtal 7b6c7cc2ad
Merge pull request #14295 from 0xc0170/cmake-remove-iar
CMake remove IAR references in the tree
2021-02-22 20:10:40 +00:00
Martin Kojtal 7369b63769
Merge pull request #14300 from harmut01/baremetal_arm_ssg
Add bare metal support to ARM_MPS2_Target family of targets
2021-02-22 20:10:25 +00:00
Martin Kojtal 120b25f138
Merge pull request #14315 from hugueskamba/hk_cmake_fix_nuvonton_m261
NUVOTON: Remove CMake listing of M261 include directory that do not exist
2021-02-22 20:10:02 +00:00
Martin Kojtal 778f833108
Merge pull request #14316 from hugueskamba/hk_cmake_fix_max32625
MAX32625: Fix CMake build
2021-02-22 20:09:33 +00:00
Hugues Kamba a8b9d49cfa PSOC6: Fix post build script
Raise an exception in case of a failure to find an image to use
for the binary signature. This prevents the method from assuming
the image is always successfully retrieved and crash when
attempting to print a message
2021-02-22 17:14:35 +00:00
Gavin Liu 59ad3ca7dc targets:evkbimxrt1050: Adjust the SEMC re-order rules
Update the BMCR0, BMCR1 registers to adjust the SEMC
re-order rules. This can improve the SDRAM stability
under multiple AXI masters system.

Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2021-02-22 18:31:59 +02:00
Tim Wang 1ee4239253 targets:RT1050: Fix the flash erase and program issue for qspi nor flash.
Update the LUT to fix the winbond qspi flash erase issue.
Update the page program interface to fix the qspi flash program issue.

Signed-off-by: Tim Wang <tim.wang@nxp.com>
2021-02-22 18:31:59 +02:00
Tim Wang 9c3c3d2dcc targets:RT1050: Fix the low speed switch issue
Fix the low speed switch issue when using QSPI flash

Signed-off-by: Tim Wang <tim.wang@nxp.com>
2021-02-22 18:31:59 +02:00
timwang b14ddf69b7 targets:clock: Update the coreclock value
Update the coreclock value which will be used in middleware

Signed-off-by: timwang <tim.wang@nxp.com>
2021-02-22 18:31:59 +02:00
timwang 8aca242b70 targets: clock: change default core clock to 528M
change the clock config of the RT1050 to set the default core clock to
528M

Signed-off-by: timwang <tim.wang@nxp.com>
2021-02-22 18:31:58 +02:00
timwang 4bc62d9a13 targets:uart: Add uart_3 support
Add uart_3 support, which using GPIO_AD_B1_06 as TX pin, GPIO_AD_B1_07
as RX pin

Signed-off-by: timwang <tim.wang@nxp.com>
2021-02-22 18:31:58 +02:00
TimWang 1ec914c5db targets:lpspi: Update the lpspi driver and api
Change the lpspi default transfer delays to fix the data corruption
issue.

Add the loop and judgement to retry transfer when spi bus is busy.

Add the judgement statement to fix the hang issue.

Signed-off-by: TimWang <tim.wang@nxp.com>
2021-02-22 18:31:58 +02:00
Gavin Liu 436f5ca8e7 targets:MIMXRT1050: Add LPSPI4 support
Add LPSPI4 PIN configurations.

Signed-off-by: fred.li <fred.li@arm.com>
Signed-off-by: Gavin Liu <gang.liu@nxp.com>
2021-02-22 18:31:58 +02:00
Martin Kojtal dbbdd0f077
Merge pull request #14309 from hugueskamba/hk_cmake_fix_stm32f091xc_gcc_arm
CMake: Fix STM32F091XC Mbed targets GCC_ARM build
2021-02-22 15:56:05 +00:00
Martin Kojtal 3bb8de6ea3
Merge pull request #14308 from hugueskamba/hk_cmake_create_flash_cmsis_algo
Create FLASH CMSIS ALGO target to remove dependency on MBED_TARGET_LABELS
2021-02-22 14:36:44 +00:00
Harrison Mutai 5899dd0bc7 Fix path to GCC linker scripts
The linux filesystem is case sensitive, this was causing our nightly build to
fail when attempting to find the script with its lower case name. The
name of the file has been kept the same as this seems to be STMs
convention.
2021-02-22 14:07:52 +00:00
Hugues Kamba 80c679cc27 MAX32625: Fix CMake build
* Correct board CMake target name to match board name
* Make MAX32625 depend on MAXIM CMake target to inherit its include dirs
* Correct path to linker files
2021-02-22 13:38:32 +00:00
Hugues Kamba 3eb5296996 NUVOTON: Remove CMake listing of M261 include directory that do not exist
Remove listing of include directory that do not exist
2021-02-22 12:53:17 +00:00
Hugues Kamba 0ce36ac5e2 CMake: Fix ARM MUSCA NS targets build
Add the missing CMake targets for NS Mbed boards.
2021-02-22 12:17:41 +00:00
Yong Cong Sin be05753a9b
Moved MCU_STM32F103xE below NUCLEO_F103RB 2021-02-20 18:30:09 +08:00
Yong Cong Sin d458f24680
Remove custom board from CMakeLists.txt 2021-02-20 18:27:38 +08:00
Hugues Kamba 11a445be95 CMake: Fix STM32F091XC Mbed targets GCC_ARM build
The linker file for the GCC_ARM toolchain was not
correctly listed.
2021-02-19 20:28:25 +00:00
Hugues Kamba 7d49d4bce1 Create FLASH CMSIS ALGO target to remove dependency on MBED_TARGET_LABELS
This goes towards eventually removing reliance on targets.json to specify
the requirements of Mbed targets.
2021-02-19 16:56:37 +00:00
Hugues Kamba a3a36ccb92 CMake: Fix some NUVOTON build
Correct source file listings for M251, M261.
Also remove unused input source files.
2021-02-19 16:48:32 +00:00
Hugues Kamba 2c3481297c CMake: Create CMSIS library targets to remove dependency on MBED_TARGET_LABELS
This goes towards eventually removing reliance on targets.json to specify
the requirements of Mbed targets.
2021-02-19 13:39:32 +00:00
Harrison Mutai 0000b37124 Fix indentation in RW_IRAM1 load region description 2021-02-19 10:09:25 +00:00
Yong Cong Sin d81f520073 Divide HSE by 2 if the external XTAL used is 16 MHz 2021-02-19 15:35:47 +08:00
Yong Cong Sin a36d006b7c Add STM32F103xE SOC support 2021-02-19 10:57:34 +08:00
Harrison Mutai 9f5f3ea855 Fix indentation in ER_IROM1 load region description 2021-02-18 14:47:36 +00:00
Harrison Mutai b31ce7a9c7 Refactor ARM MSP2 target scatter files for bare metal support 2021-02-18 14:44:46 +00:00
Harrison Mutai 15a263f453 Add bare metal support to Renesas targets
Modify RZ_A1XX and RZ_A2XX target configurations to include
bare metal as a supported profile,and add list of supported standard libraries.
Changes affect the following targets: RZ_A1H, GR_LYCHEE, GR_MANGO.
2021-02-18 10:28:45 +00:00
Harrison Mutai 0f233735af Add bare metal support to ARM_MPS2_Target family of targets 2021-02-18 09:34:16 +00:00
Harrison Mutai b265ae854e uARM: Remove dependencies from Freescale targets 2021-02-17 12:00:23 +00:00
Harrison Mutai 73883b55b4 Add bare metal support to freescale targets 2021-02-17 11:23:20 +00:00
Martin Kojtal 85c2d7a25c CMake: remove IAR references as they are not supported 2021-02-17 09:19:03 +00:00
Martin Kojtal 3894d73680
Merge pull request #14289 from hugueskamba/hk_cmake_refactor_cypress
CMake: Refactor Cypress targets
2021-02-16 13:43:35 +00:00
Hugues Kamba 68b6e6ff96 Fix post build mechanism with unique CMake custom targets
The CMake custom target must be unique to avoid more than one
Mbed target adding the same. Only the CMake custom command added for the
Mbed target being built is run as the custom CMake target now includes
the Mbed target name.
2021-02-15 17:39:27 +00:00
Hugues Kamba ea6955bd1c CMake: Refactor Cypress targets
Refactor all Cypress targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using target_link_libraries its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-15 17:20:23 +00:00
Martin Kojtal 8ba88427cd
Merge pull request #14284 from 0xc0170/cmake-refactor-arm-ssg
CMake Arm SSG: refactor CMake targets
2021-02-15 15:27:07 +00:00
Martin Kojtal 1dd411268b
Merge pull request #14030 from arduino/i2c_stm32_wrong_clock
STM32H7: Compute I2C timing according current I2C clock source
2021-02-15 14:38:11 +00:00
Robert Walton fd63d33521 CMake: Fix STM32G0 target 2021-02-15 11:16:49 +00:00
Robert Walton 91db89143e Fix FF1705_L151CC target 2021-02-15 11:06:43 +00:00
Robert Walton ed4027edf0 Fix STM32F103xB target 2021-02-15 11:06:43 +00:00
Robert Walton c82c897e2b Fix STM32F072xB target 2021-02-15 11:06:43 +00:00
Robert Walton f2f927ebac Fix NUCLEO_H743ZI2 target 2021-02-15 11:05:07 +00:00
Robert Walton f6302dc108 Fix NUCLEO_L496ZG_P target 2021-02-15 11:05:07 +00:00
Robert Walton 956a8790c1 Fix DISCO_L4R9I target 2021-02-15 11:05:07 +00:00
Martin Kojtal 4c581120c5
Merge pull request #14270 from 0xc0170/cmake-refactor-maxim
CMake Maxim: fix targets naming
2021-02-15 11:04:18 +00:00
Martin Kojtal fa62e80958
Merge pull request #14249 from jeromecoutant/PR_STM32WL_LORA
STM32WL : add LoRa support
2021-02-15 11:04:00 +00:00
Martin Kojtal 24c9d2458b
Merge pull request #14246 from 0xc0170/cmake-refactor-arm-fm
ARM FM: refactor CMake targets
2021-02-15 11:02:11 +00:00
Martin Kojtal 7647a2c623
Merge pull request #14244 from 0xc0170/cmake-refactor-analog-devices
Analog Devices: refactor CMake targets
2021-02-15 11:00:09 +00:00
Martin Kojtal 0adb917dab CMake Arm SSG: refactor CMake targets
Create CMake target per each Mbed OS target.
2021-02-15 10:39:30 +00:00
Martin Kojtal 34627b7d53
Merge pull request #14280 from hugueskamba/hk_cmake_refactor_wiced
CMake: Refactor WIO_EMW3166 support
2021-02-15 10:28:12 +00:00
Martin Kojtal 1516c57bf8 ARM FM CMake: fix CMakeLists names 2021-02-15 09:23:54 +00:00
Martin Kojtal a922ed18a5 Analog Devices: fix CMakeLists names 2021-02-15 09:17:50 +00:00
Martin Kojtal 94f3c7b89b Maxim CMake: fix sources for max32630fthr 2021-02-15 08:58:39 +00:00
Martin Kojtal c153880941
Merge pull request #14281 from harmut01/refactor-gigadevice
CMake: refactor GigaDevice targets
2021-02-15 08:48:12 +00:00
Martin Kojtal 5e094fe040
Merge pull request #14245 from jeromecoutant/PR_WL
STM32WL: I2C and ADC full support
2021-02-15 08:46:13 +00:00
Martin Kojtal 98659cfb78
Merge pull request #14282 from hugueskamba/hk_cmake_refactor_nuvoton
CMake: Refactor Nuvoton targets
2021-02-15 08:44:35 +00:00
Martin Kojtal 64d4a7a58a CMake Analog devices: fix linking to the main family target 2021-02-14 19:48:16 +00:00
Martin Kojtal 950baa2fe6
CMake fvp mps2: fix linking to arm-fm 2021-02-14 19:44:28 +00:00
Martin Kojtal 26d7b4d9d5
CMake Arm FM: fix linking libraries with arm-fm
Co-authored-by: Hugues Kamba-Mpiana <41612201+hugueskamba@users.noreply.github.com>
2021-02-14 19:43:39 +00:00
Martin Kojtal e6bd22d68d
Update targets/TARGET_GigaDevice/TARGET_GD32F4XX/CMakeLists.txt
Co-authored-by: Hugues Kamba-Mpiana <41612201+hugueskamba@users.noreply.github.com>
2021-02-14 19:30:02 +00:00
Martin Kojtal b446238441
CMake GigaDevice: fix exclude all for targets
Co-authored-by: Hugues Kamba-Mpiana <41612201+hugueskamba@users.noreply.github.com>
2021-02-14 19:28:06 +00:00
Martin Kojtal ff307188b7
Merge pull request #14277 from hugueskamba/hk_fix_apollo3_heap_stack_location
Apollo3: Fix run time error due to memory mapping
2021-02-14 19:24:43 +00:00
Martin Kojtal 3ef03538f2
Merge pull request #14276 from harmut01/refactor_samsung
CMake: refactor Samsung targets
2021-02-14 19:24:25 +00:00
Martin Kojtal 8321943ec8
Merge pull request #14235 from hugueskamba/hk_post_build_op
CMake: Add post build operation support
2021-02-14 19:23:19 +00:00
Martin Kojtal cbc6af518f
Apply suggestions from code review
Co-authored-by: Hugues Kamba-Mpiana <41612201+hugueskamba@users.noreply.github.com>
2021-02-14 19:21:14 +00:00
Hugues Kamba 2a6a840903 CMake: Refactor Nuvoton targets
Refactor all Nuvoton targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-12 19:09:11 +00:00
Harrison Mutai 33c35f791b CMake: refactor GigaDevice targets
Refactor all GigaDevice targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-12 16:55:42 +00:00
Hugues Kamba 01875ebb09 WICED: Move directory to WiFi driver
WICED is something is build to Cypress WiFi on multiple devices, it's a binary form. It is owned
by Seeed studio
2021-02-12 16:40:22 +00:00
Hugues Kamba d7a7d44b4b CMake: Refactor WIO_EMW3166 support
Ensure WICED is included for Mbed targets that require it.

This also removes the need for checking MBED_TARGET_LABELS repeatedly and
allows us to be more flexible in the way we include MBED_TARGET
source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-12 16:11:31 +00:00
Hugues Kamba d960d8fb49 CMake: Refactor Silicon Laboratories targets
Refactor all Silicon Laboratories targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-12 15:39:18 +00:00
Harrison Mutai 1282242691 CMake: refactor Samsung targets
Refactor all Samsung targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-12 13:48:49 +00:00
Hugues Kamba cac9d7930c Apollo3: Fix run time error due to memory mapping
The Appollo3 targets require dummy sections in stack and heap regions.
The stack dummy section does not contain any symbols. It is only used
for the linker to calculate the size of the stack sections and assign
values to stack symbols later.
The heap dummy region is used to identify the beginning of available dynamic memory.
2021-02-12 12:09:14 +00:00
Martin Kojtal d041654fa2
Merge pull request #14242 from 0xc0170/cmake-refactor-ambiq-micro
Ambiq Micro: refactor CMake targets
2021-02-12 09:16:30 +00:00
Martin Kojtal 0311d81314 CMake MAX32630: fix linker script
Forgotten to set it for the target
2021-02-11 17:42:53 +00:00
Martin Kojtal 2e320bcfe9 CMake MAX32630: fix target name 2021-02-11 17:40:07 +00:00
Martin Kojtal 9c9d83343c CMake Maxim: fix some errors with renames 2021-02-11 17:34:48 +00:00
Martin Kojtal 351d6749cb CMake Maxim: fix targets naming
Add boot no-boot targets for max32625. This should be cleaned up better once we get
the folder structure enforced by the old tools fixed.
2021-02-11 17:24:19 +00:00
Hugues Kamba deeaa7970f CMake: Add post build operation support
A CMake custom target, mbed-post-build, is added as a dependency of the
application CMake target if a Mbed target adds a CMake custom target
named mbed-post-build-bin. mbed-post-build-bin is added as a dependency
of mbed-post-build. mbed-post-build-bin depends on the application binary.
This is done so a CMake custom command that executes post-build can be added.

The Python scripts that implement the operations have been modified to add
CLI entry points so they can be called from CMake. Dependency on the old
tool has been removed on those scripts by passing them exactly what they
require instead of passing old tool Python objects. A consequence of that
was to slightly amend how the old tool calls some of those Python modules.

Support has only been added for Mbed targets that currently have a requirement
for post build operations. This includes: LPC1114, LPC1768, ARCH_PRO, LPC54114,
LPC546XX, FF_LPC546XX, CY8CKIT064B0S2_4343W, CYTFM_064B0S2_4343W, CYSBSYSKIT_01

The following targets are not supported as TFM support is not yet included:
ARM_MUSCA_B1, ARM_MUSCA_B1_NS, ARM_MUSCA_S1, ARM_MUSCA_S1_NS.
2021-02-11 17:04:41 +00:00
Martin Kojtal 0460a85ddd
Merge pull request #14269 from harmut01/refactor_toshiba
CMake: Refactor Toshiba targets
2021-02-11 15:29:06 +00:00
Martin Kojtal bfb36b68a6 CMake ARM FM: fix targets naming 2021-02-11 14:48:55 +00:00
Martin Kojtal 302c86041f ARM FM: refactor CMake targets 2021-02-11 14:44:35 +00:00
Martin Kojtal de8086b528
Merge pull request #14267 from harmut01/refactor_nordic
CMake: Refactor Nordic targets to be CMake buildsystem targets
2021-02-11 14:33:32 +00:00
Martin Kojtal 1ceb3facd9 CMake Ambiq Micro: fix CMakeLists names 2021-02-11 14:32:01 +00:00
Martin Kojtal 4dd9895817 CMake Ambiq Micro: fix years 2021-02-11 14:20:13 +00:00
Martin Kojtal f203a6796a
Merge pull request #14252 from hugueskamba/hk_cmake_refactor_freescale
CMake: Refactor Freescale targets
2021-02-11 14:10:33 +00:00
Martin Kojtal b4f0be19e6 CMake Ambiq Micro: fix naming 2021-02-11 14:09:19 +00:00
Martin Kojtal efbf0bb571 Ambiq Micro: refactor CMake targets
Follow what we did for ST, to create separate CMake targets for each Mbed target.
2021-02-11 13:57:59 +00:00
Martin Kojtal ab7067df3f CMake Analog Devices: fix names after refactor 2021-02-11 13:54:12 +00:00
Martin Kojtal 8f1840e978 Analog Devices: refactor CMake targets 2021-02-11 13:51:37 +00:00
Martin Kojtal 0f000a0502
Merge pull request #14253 from harmut01/refactor_renesas
CMake: refactor Renesas targets
2021-02-11 13:18:26 +00:00
Martin Kojtal c4bcd432cf
Fix copyright in TARGET_KW41Z/CMakeLists.txt
Co-authored-by: Harrison Mutai <70651665+harmut01@users.noreply.github.com>
2021-02-11 13:17:22 +00:00
Martin Kojtal 2f7728eed5
Merge pull request #14266 from rwalton-arm/dev/rwalton-arm/fix-st-targets
Fix up some ST CMake targets
2021-02-11 13:15:32 +00:00
Harrison Mutai 0ec92a07d5 CMake: clean up code comments after refactor 2021-02-11 12:04:24 +00:00
Harrison Mutai 176e451c20 CMake: Refactor Toshiba targets
Refactor all Toshiba targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-11 11:51:20 +00:00
Martin Kojtal 64892c95ce
Merge pull request #14268 from hugueskamba/hk_cmake_refactor_nxp
CMake: Refactor NXP targets
2021-02-11 11:48:53 +00:00
Hugues Kamba ac44f1c3c5 CMake: Refactor Freescale targets
Refactor all Freescale targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-11 11:02:18 +00:00
Harrison Mutai b49aa0457a CMake: Refactor all Nordic targets to be CMake buildsystem targets
This removes the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using target_link_libraries its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-11 10:59:41 +00:00
Robert Walton ab7a530506 Fix NUCLEO_L4R5ZI_xx targets 2021-02-11 09:33:21 +00:00
Robert Walton f73e154a12 Fix NUCLEO_L073RZ target 2021-02-11 09:33:21 +00:00
Robert Walton e8227f5be7 Fix PORTENTA_H7_xx targets 2021-02-11 09:33:21 +00:00
Robert Walton 6a737ac58d Fix DISCO_H747I_xx targets 2021-02-11 09:33:21 +00:00
Robert Walton a297a6145e Add library for NUCLEO_G431KB 2021-02-11 09:33:21 +00:00
Martin Kojtal b512947d7f
Merge pull request #14248 from MaximIntegrated/max32625mbed-sleep-greentea-tests
MAX32625MBED: Gate ticker (timer0) clock on deepsleep
2021-02-11 08:04:54 +00:00
Hugues Kamba f6837ce82d CMake: Refactor NXP targets
Refactor all NXP targets to be CMake build system targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using target_link_libraries its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-10 21:36:39 +00:00
Harrison Mutai 9033d9b632 CMake: refactor Renesas targets
Refactor all Renesas targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-10 15:41:40 +00:00
Martin Kojtal fdef59fc10 CMake STM32H7: fix disco m4/m7 targets 2021-02-10 15:32:49 +00:00
Martin Kojtal 2d3bf3fd34 CMake STM32: fixing prefixes in the targets 2021-02-10 15:23:22 +00:00
Martin Kojtal 6bf459e3ce CMake STM32: fix mbed-stm linking libs names 2021-02-10 12:24:10 +00:00
Martin Kojtal ef98060d94 CMake STM32: fix missed targets with prefix 2021-02-10 12:14:49 +00:00
Martin Kojtal 00e83ce6e2 CMake STM32: fix missing mbed for some nucleo targets 2021-02-10 10:56:04 +00:00
Martin Kojtal b3181a102c CMake STM32: fix search and replace errors 2021-02-10 09:32:55 +00:00
Martin Kojtal 544e5b94c3 CMake STM32: fix targets naming
Follow the naming for other CMake targets, using prefix mbed-, lower case with dashes
2021-02-09 17:07:44 +00:00
jeromecoutant 699edff47e STM32WL LORA : add readme 2021-02-09 11:57:04 +01:00
jeromecoutant cc26ebc21e STM32WL LORA : cmakelist 2021-02-09 10:01:17 +01:00
Ahmet Alincak a84827e0f1 Gate ticker (timer0) clock on deepsleep 2021-02-08 21:01:29 +03:00
jeromecoutant 4550f92565 STM32WL : I2C full support 2021-02-08 17:19:05 +01:00
jeromecoutant 96e6d8bb7b STM32WL : ANALOGOUT full support 2021-02-08 17:19:05 +01:00
jeromecoutant c80ac26f7a STM32WL : ANALOGIN full support 2021-02-08 17:19:05 +01:00
Martin Kojtal ce6ff0ac5f
Merge pull request #14207 from JeanMarcR/STM32WL_JMR
Adding NUCLEO_WL55JC support
2021-02-08 15:56:46 +00:00
reme 2fa8ccf869 STM32WL : ADDING TARGET SUPPORT
Add STM32WL information in targets.json file
2021-02-08 09:42:50 +00:00
reme 470e98ed1f STM32WL : ADDING NUCLEO STM32WL55JC SUPPORT
Add code concerning all STM32WL55JC platforms
- system clock, pin and peripheral definition
  mbedtools make file

Modify CmakeList to adapt to mbedtools evolution
2021-02-08 09:42:50 +00:00
reme 4c35eb33ed STM32WL : ADDING STM32WL55xC SUPPORT
Add code concerning all STM32WL55xC platforms
- Scatter loader and start-up files for
  ARM, GCC and IAR compilers.
- cmsis file
- Update CMakeLists.txt due to mbtools evolution
2021-02-08 08:27:24 +00:00
reme 91e7676cc4 STM32WL : ADDING STM32WL SUPPORT
Add code concerning all STM32WL platforms
- STM32 Cube Firmware

Update CMakeLists.txt due to mbedtools evolution
2021-02-08 08:22:19 +00:00
Martin Kojtal d3eaca5e27
Merge pull request #14230 from arduino/nrf52_pwm_deinit
nRF52: clean pwm structures on deinit
2021-02-05 10:11:49 +00:00
Martin Kojtal bff8b8e152
Merge pull request #14232 from hugueskamba/hk_fix_cypress_mcu_psoc6_m4
CMake: Fix Cypress MCU_PSOC6_M4 build
2021-02-05 10:11:30 +00:00
pennam dc2d8607a3 Fixed __HAL_RCC_GET_I2C4_SOURCE() if RCC_VER_2_0 is used 2021-02-05 09:10:42 +01:00
reme 5a2835c18c STM32WL : ADDING STM32 SUPPORT
Add code concerning all STM32 platforms
2021-02-05 08:04:31 +00:00
Robert Walton d9e184b6c6 cmake: Refactor ST targets
Refactor all ST targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-04 15:26:36 +00:00
pennam d059feefe0 Added i2c_device.c to CMakeLists.txt 2021-02-03 15:18:33 +01:00
Martin Kojtal 7135c6545a
Merge pull request #14215 from flippy84/master
STM: Fix Hal_GetTick wrap around errors
2021-02-03 14:17:59 +00:00
Martin Kojtal 78bbe274f1
Merge pull request #14203 from kylejansen/sdpk1-usb
Adding USB HS Support to the SDP-K1
2021-02-03 14:17:43 +00:00
Hugues Kamba 59bb225f40 CMake: Fix Cypress MCU_PSOC6_M4 build
Ensure the RTOS source file are included
if the full profile is used. The macro CY_RTOS_AWARE
is added whenever the full profile is used
2021-02-03 14:15:07 +00:00
pennam 6db7342cf6 manage I2C_IP_VERSION_V1 boards builds 2021-02-03 15:14:42 +01:00
pennam d968b17e76 code style fix 2021-02-03 14:18:07 +01:00
Martin Kojtal f7ed864e8d
Merge pull request #13979 from taunomagnusson/master
Support for ST STM32 NUCLEO-G431KB Development Board
2021-02-03 09:37:14 +00:00
Andreas Carlsson 38b9e8ee5f STM: prevent task switch errors in HAL_GetTick 2021-02-03 09:42:15 +01:00
Martino Facchin 56c508b974 nRF52: properly clean pwm structures on deinit() 2021-02-03 09:36:27 +01:00
rogeryou 0db8da1152 modify for the RWW function of Macronix Flash 2021-02-01 17:55:45 +08:00
pennam 506390bcf8 Increase FLAG_TIMEOUT to avoid misleading triggers 2021-02-01 09:13:33 +01:00
pennam 7544f7ef24 Use the proper clock source for any I2C instance 2021-02-01 09:13:21 +01:00
pennam 28a3475c5c STM32: Compute I2C timing according current I2C clock source and required I2C clock 2021-01-31 14:02:01 +01:00
kylejansen c401b61c09 Adding USB HS Support to the SDP-K1 2021-01-27 16:50:37 +00:00
Tauno Magnusson dc969ba1d9 After checking other parts of the code (trng_api.c and a few other board platforms (NUCLEO_F413ZH, ...)) it appears that even though the reset value defaults correctly it may be good practice to keep the HAL_RCCEx_PeriphCLKConfig statement that selects the HSI48CLK as source for USB/RNG. 2021-01-26 03:51:49 +01:00
Tauno Magnusson 21176e903a Removed the HAL_RCCEx_PeriphCLKConfig statement that was selecting the HSI48 CLK for USB. Assumption is that the STM32G4 reset value (defaults to HSI48 selected for USB) is preserved throughout Mbed initialization. 2021-01-26 03:27:37 +01:00
Tauno Magnusson 80f0a378fb Updated to enable HSI48 Clock also for USBDEVICE define in targets.json. Also added so that the CK48 Clock Mux selects HSI48 for both RNG and USB. Without these the RNG/USB will be clocked at PLLQ (170 MHz) and not work. 2021-01-26 02:51:03 +01:00
Tauno Magnusson 99d21b6a92 Fixed whitespaces (a tab that should be spaces) 2021-01-26 01:21:46 +01:00
Martin Kojtal 343b19f9b2
Merge pull request #14180 from hugueskamba/hk_cmake_cypress_missing_file
Cypress: Fix CYTFM_064B0S2_4343W CMake build
2021-01-25 14:43:36 +00:00
Tauno Magnusson fa0474239b Autogenerated file using 'python targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py -t M40_Nucleo_NUCLEO-G431KB'. Had to do some modifications since the autogenerated files contained errors. 2021-01-24 04:25:42 +01:00
Tauno Magnusson f871eff405 Reverted to a pure copy of 474RE system_clock.c since it was updated with RNG clock fixes. Removing USB Clock enablement (USB will not work out-of-the box but will require users to modify system_clock.c to enable its clock) - this inline with changes to targets.json where I removed the USBDEVICE define 2021-01-24 03:18:06 +01:00
Tauno Magnusson bfd1f09c26 USBDEVICE removed from G431KB as per ARMmbed policy (only boards with physical USBDEVICE should define it in targets.json) 2021-01-24 02:48:59 +01:00
Tauno Magnusson 173cc1fe29 Cleaning out workaround patches for G431KB now that Flash Bank Switching has been fixed on G4xxx level (ARMmbed/mbed-os patch #14149) 2021-01-24 02:44:09 +01:00
Tauno Magnusson e4fb7402c3 Fixed a typo (incorrectly referring to G474RE instead of G431KB) 2021-01-24 02:41:18 +01:00
Tauno Magnusson 3ff04fa81e Cleaned up and verified file 2021-01-24 02:15:22 +01:00
Tauno Magnusson d61e4f0e95 Updated G431KB inline with review comments 2021-01-24 02:15:21 +01:00
Tauno Magnusson 1389b1ac9d Adding CMakeLists.txt files for NUCLEO_G431KB 2021-01-24 02:15:21 +01:00
Tauno Magnusson 0368cab27b Add: Added STM32G4 series to LP USB list 2021-01-24 02:15:21 +01:00
Tauno Magnusson d720792191 G431 only has 1 Flash Bank. Code is written with the assumption all G4 devices has 2 Flash Banks. Fix: Commented out SYSCFG_MEMRMP_FB_MODE since stm32g431KB only has 1 Flash Bank. flash_api.c checks for this #define and if it's set understands it as if the chip has 2 flash banks. STM32G4xx_HAL_Driver/stm32g4xx_hal.c also needs to check for this #define since it has flash bank swapping commands that are called in the startup sequence. Fix: Check for SYSCFG_MEMRMP_FB_MODE in Enable/Disable Flash bank swapping. 2021-01-24 02:15:21 +01:00
Tauno Magnusson 98e48828b1 Fix: Added ALIGN(8) for __etext section. This existed in mbed-6.3.0 version. I have not verified if it is truly needed, but it is better to err on the safe side. 2021-01-24 02:15:21 +01:00
Tauno Magnusson 5bd272aabc Adding support for NUCLEO_G431KB. Created this file based on G474RE file. Added support for USB - connected the HSI48 clock to USB (and RNG). Warning: I'm assuming Flash latency is the same as for G474RE. 2021-01-24 02:15:21 +01:00
Tauno Magnusson 70bd5b916d Adding support for NUCLEO_G431KB. Created this file based on G474RE. I have done a decent effort to port it / check it. However - Warning - Not everything is verified the the G431 Spec Sheets. 2021-01-24 02:15:21 +01:00
Tauno Magnusson 936467ebab Adding support for NUCLEO_G431KB. Created this file based on G474RE. Fully verified with Spec Sheets 2021-01-24 02:15:21 +01:00
Tauno Magnusson 9dc882e7d2 Added entry for STM32 NUCLEO_G431KB Board 2021-01-24 02:15:20 +01:00
Hugues Kamba dd6c5b3ab0 NXP: Remove LPC55S69 CMake listing
Support for LPC55S69 had been removed without removing references in CMake.
2021-01-22 11:13:02 +00:00
Hugues Kamba 425b9a7311 NXP: Use armclang shebang in scatter files
The armclang shebang is required in the scatter file in order to build with CMake.
2021-01-22 11:11:42 +00:00
Martin Kojtal 5f541b22d0
Merge pull request #14142 from hugueskamba/hk_heap_size_fix_stm32l4
STM32L4: Correct heap size formula
2021-01-20 14:58:45 +00:00
Hugues Kamba 21840a4e92 Cypress: Fix CYTFM_064B0S2_4343W CMake build
List missing CAT1A files.
2021-01-20 14:13:50 +00:00
Martin Kojtal 96aa1bb067
Merge pull request #14132 from hugueskamba/hk_heap_size_fix_apollo3
Apollo3: Fix heap size formula and stack start address in scatter file
2021-01-20 08:37:22 +00:00
Martin Kojtal f7d1f18a80
Merge pull request #14144 from sstaub/STM32-Arduino-Pinnames
Update for Arduino Pinnames
2021-01-20 08:34:56 +00:00
Martin Kojtal 6969140110
Merge pull request #14023 from kylejansen/sdpk1-qspi
Adding QSPI support to SDP-K1 board support package.
2021-01-20 08:34:38 +00:00
Martin Kojtal 8effecdf29
Merge pull request #14063 from dustin-crossman/pr/wifi_reserved_region
Support arbitrary storage alongside WiFi firmware in external storage on Cypress targets
2021-01-20 08:34:23 +00:00
Martin Kojtal 080ea9f903
Merge pull request #14080 from MaximIntegrated/max32630fthr-bare-metal-support
Add bare-metal support for MAXIM targets
2021-01-20 08:05:16 +00:00
Martin Kojtal d841c77921
Merge pull request #13968 from hugueskamba/hk_cmake_arm_ssg_support
CMake: Add support for all ARM SSG Mbed targets
2021-01-20 08:03:03 +00:00
Martin Kojtal 4cf0365582
Merge pull request #14075 from MaximIntegrated/maxim-usb-stack-dev
Maxim targets; Add USB stack implementation
2021-01-19 09:27:01 +00:00
Martin Kojtal 8dc27fd84e
Merge pull request #14154 from jeromecoutant/PR_STM32_CMAKE
STM32: correct cmake compilation issues
2021-01-19 09:22:49 +00:00
Martin Kojtal 1e7dce5bdc
Merge pull request #14166 from arduino/pin_arduino_nano33ble
ARDUINO_NANO33BLE: don't define Arduino pins if compiling in Arduino core
2021-01-19 09:21:27 +00:00
Martin Kojtal c4c28773aa
Merge pull request #14149 from jeromecoutant/PR_G4
STM32G4: enable TRNG and correct dual bank flash detection
2021-01-19 09:19:37 +00:00
Hugues Kamba 1d6214df0b CMake: Add support Arm Musca S1 target
Add CMakeLists.txt file for the target
2021-01-18 17:39:13 +00:00
Hugues Kamba 8123cdbe2f CMake: Add support for ARM's MUSCA B1 target
Add CMakeLists.txt input source file for the target
2021-01-18 17:39:13 +00:00
Martino Facchin ee2e5ad794 Arduino_NANO33BLE: don't define Arduino pins if compiling in Arduino core 2021-01-18 15:43:11 +01:00
Martin Kojtal 95a524ae25
Merge pull request #14145 from arduino/config_sd_transceiver
STM32H7: disable uSD transceiver
2021-01-18 08:49:02 +00:00
Hugues Kamba 0ac503312a CMake: Add support for Arm's MPS2 targets 2021-01-15 16:32:43 +00:00
Hugues Kamba 470cc1a1a6 CMake: Add support for Arm's CM3DS_MPS2 target 2021-01-15 16:32:43 +00:00
Martin Kojtal eff0d4c8b9
Merge pull request #14032 from jeromecoutant/PR_RESET_GPIO
STM32: RESET GPIO during init is configurable
2021-01-15 15:49:11 +00:00
jeromecoutant 1bbceb48f0 STM32 / CMAKE / targets : correct CMakeLists.txt files 2021-01-15 15:11:16 +01:00
Martin Kojtal aef93ca7c9
Merge pull request #14020 from pea-pod/stm-spi-more-bits
Add SPI bitwidths to ST targets where supported
2021-01-15 10:01:28 +00:00
Dustin Crossman ef6284cad5 Added process to reinitialize qspi if qspi_init is called twice without free. 2021-01-14 12:59:01 -08:00
Dustin Crossman 95a5d60b65 Implement qspi_frequency for Cypress Mbed HAL. 2021-01-14 12:58:50 -08:00
Martin Kojtal 2e905a0060
Merge pull request #14104 from hugueskamba/hk_cmake_fix_STM32F413xH_sysclock_listing
CMake: Fix the listing of system_clock.c for STM32F413xH
2021-01-14 17:16:34 +00:00
jeromecoutant 61d00d858f STM32G4: dual bank FLASH detection 2021-01-13 16:45:03 +01:00
jeromecoutant eb627788ca STM32G4: TRNG enabled
+ some cleanup/optimisation in SetSysClock
2021-01-13 16:44:57 +01:00
Hugues Kamba 24132695e3 These targets have a different memory layout,
they have two RAMs at two distinct locations:

RAM1 (address: MBED_RAM_START, size: MBED_RAM_SIZE):
* stack
* heap
* some part of static memory

RAM2 (address: MBED_IRAM2_START, size: MBED_IRAM2_SIZE):
* remaining part of static memory starting at MBED_IRAM2_START
* crash report
* vector
2021-01-13 12:46:35 +00:00
pennam df4e397004 STM32H7: disable uSD transceiver 2021-01-13 11:13:15 +01:00
Stefan Staub c3dca94b78 Update for Arduino Pinnames 2021-01-12 22:43:42 +01:00
Hugues Kamba f00aeea70f Apollo3: Fix heap size formula and stack start address in scatter file
The heapsize was incorrectly calculated.
This fixes it by subtracting the Stack size, any memory chunks allocated
before the start of the application (for vectors and/or crash report), and
finally the size of the application from the total RAM size.

The stack start address should be the top of the RAM which is also fixed.
2021-01-12 11:31:50 +00:00
jeromecoutant e0217ad9f7 DISCO_L072CZ_LRWAN1: enable LORAWAN by default 2021-01-12 11:42:07 +01:00
Martin Kojtal 74ac9b9b28
Merge pull request #14120 from jeromecoutant/DEV_CMAKE_F4
STM32F439 : correct cmake compilation
2021-01-12 08:28:10 +00:00
Martin Kojtal 36a2a808a8
Merge pull request #14130 from hugueskamba/hk_heap_size_fix_nrf52840
NRF52840: Fix heap size formula in scatter files
2021-01-12 08:22:31 +00:00
Ahmet Alincak 2ca990eb53 Use MBED_ALIGN and remove mbed.h from header 2021-01-11 22:53:36 +03:00
jeromecoutant 61059d45e4 STM32F439 : correct cmake compilation 2021-01-11 18:07:58 +01:00
Hugues Kamba 1a90deb608 CMake: Fix the listing of system_clock.c for STM32F413xH
Each variant now has its own system_clock.c file.
Therefore ensure the correct one is added for each variant.
Also reduce the number of CMakeLists.txt file as each
variant does not have significant number of files.
2021-01-11 16:17:46 +00:00
pea-pod e1c754b179 Add SPI bitwidths to ST targets where supported 2021-01-11 07:53:07 -06:00
Martin Kojtal 4e34abbbf1
Merge pull request #14062 from dustin-crossman/pr/dec_asset_update
Cypress Asset Update
2021-01-11 13:40:26 +00:00
Martin Kojtal 549f887ce0
Merge pull request #14131 from hugueskamba/hk_heap_size_fix_arm_ssg
MUSCA_B1: Fix heap size formula in scatter files
2021-01-11 13:39:11 +00:00
Martin Kojtal 331cebe5eb
Merge pull request #14133 from hugueskamba/hk_heap_size_fix_stm
STM: Fix heap size formula in scatter files
2021-01-11 13:38:37 +00:00
Ahmet Alincak 1fd7de0eee Update header file to include SPDX identifier 2021-01-11 15:04:55 +03:00
Ahmet Alincak c63a9b7ff8 Maxim targets; Add USB stack implementation 2021-01-11 15:04:48 +03:00
Martin Kojtal c79ccf1fb7
Merge pull request #14134 from hugueskamba/hk_heap_size_fix_gigadevice
GigaDevice: Fix heap size formula in scatter files
2021-01-11 11:47:58 +00:00
Martin Kojtal 4ea4058e18
Merge pull request #14083 from MaximIntegrated/max32630fthr-add-sleep-feature
Add SLEEP/DEEPSLEEP support for MAX32630FTHR
2021-01-11 11:46:47 +00:00
Martin Kojtal d3d02eb7e6
Merge pull request #14129 from hugueskamba/hk_heap_size_fix_silabs
EFM32GG: Fix heap size formula in scatter files
2021-01-11 11:46:22 +00:00
Martin Kojtal 4c25b88287
Merge pull request #14135 from hugueskamba/hk_heap_size_fix_nxp
NXP: Fix heap size formula in scatter files
2021-01-11 11:42:45 +00:00
Martin Kojtal b7c639580f
Merge pull request #14066 from jeromecoutant/DEV_F2
STM32F2 update drivers version to CUBE V1.9.2
2021-01-11 11:27:09 +00:00
Hugues Kamba 96dbb42024 MUSCA_B1: Fix heap size formula in scatter files
The heap size was incorrectly calculated.
This fixes it by subtracting the Stack size, any memory chunks allocated
before the start of the application (for vectors and/or crash report), and
finally the size of the application from the total RAM size.
2021-01-08 18:35:33 +00:00
Hugues Kamba ad68c17096 EFM32GG: Fix heap size formula in scatter files
The heap size was incorrectly calculated.
This fixes it by subtracting the Stack size, any memory chunks allocated
before the start of the application (for vectors and/or crash report), and
finally the size of the application from the total RAM size.
2021-01-08 18:34:28 +00:00
Hugues Kamba 4780dd55e5 NRF52840: Fix heap size formula in scatter files
The heap size was incorrectly calculated.
This fixes it by subtracting the Stack size, any memory chunks allocated
before the start of the application (for vectors and/or crash report), and
finally the size of the application from the total RAM size.
2021-01-08 18:32:46 +00:00
Hugues Kamba 0cef209182 GigaDevice: Fix heap size formula in scatter files
The heap size was incorrectly calculated.
This fixes it by subtracting the Stack size, any memory chunks allocated
before the start of the application (for vectors and/or crash report), and
finally the size of the application from the total RAM size.
2021-01-08 18:30:44 +00:00
Hugues Kamba 1ca4b1a34f NXP: Fix heap size formula in scatter files
The heap size was incorrectly calculated.
This fixes it by subtracting the Stack size, any memory chunks allocated
before the start of the application (for vectors and/or crash report), and
finally the size of the application from the total RAM size.
2021-01-08 18:29:03 +00:00
Hugues Kamba a3fccf7d21 STM: Fix heap size formula in scatter files
The heap size was incorrectly calculated.
This fixes it by subtracting the Stack size, any memory chunks allocated
before the start of the application (for vectors and/or crash report), and
finally the size of the application from the total RAM size.
2021-01-08 18:18:40 +00:00
Ahmet Alincak 819d3fc9e0 Add bare-metal support for MAXIM targets 2021-01-07 09:13:14 +03:00
Ahmet Alincak 0a036b3c2a Add SLEEP/DEEPSLEEP support for MAX32630FTHR 2021-01-07 09:03:12 +03:00
Dustin Crossman 82c98618cd Ran astyle for mbed code format. 2021-01-05 13:51:52 -08:00
Dustin Crossman 782b23d626 Addressing review feedback. 2021-01-05 13:50:30 -08:00
Dustin Crossman b0b07477fd Add missing includes. 2021-01-05 12:54:56 -08:00
Dustin Crossman f3caf6a805 Add back nvram image for CYTFM board.
Add label so nvram image is found for 064B0S2 board.
2021-01-05 10:43:57 -08:00
Martin Kojtal d0cd5fa5f1
Merge pull request #13826 from arduino/portenta-mainline
Add Arduino Portenta H7 as target
2021-01-05 15:49:44 +00:00
Martin Kojtal 6e81af259c
Merge pull request #14068 from rvasquez6089/master
Enabled USBDevice in targets.json for H743ZI2
2021-01-05 14:51:03 +00:00
Martino Facchin 62b6cc9a05 cmake: STM32H7: enable PORTENTA* target 2021-01-05 14:49:37 +01:00
jeromecoutant d689e90917 STM32: RESET GPIO during init is configurable
Default value is disabled
2021-01-05 13:56:07 +01:00
Harrison Mutai f8805df55b CMake: add cmake support for Toshiba targets 2021-01-05 09:20:41 +00:00
Martino Facchin 26f758d83c cmake: STM32H7: fix stm32h747 targets
This needs to be defined for "final" targets not contained in their processor subdirectory
2021-01-04 18:04:03 +01:00
Martin Kojtal d6d4fefe29
Merge pull request #14045 from harmut01/port_nordic_targets
CMake: add support for Nordic targets
2021-01-04 09:26:40 +01:00
Martin Kojtal 9e5e245abc
Merge pull request #14036 from ahmetalincak/maxim-max32630fthr-SD-configuration
Add SD component and Update SD card SPI interface for Maxim's MAX32630FTHR
2020-12-18 15:11:09 +00:00
Harrison Mutai 7cb2407446 CMake: add support for Nordic targets 2020-12-18 10:53:57 +00:00
Martin Kojtal 643233ed16
Merge pull request #14029 from arduino/can_h7_wrong_frequency
STM32H7: FDCAN: use PLL1Q frequency for calculations
2020-12-18 09:21:38 +00:00
Ryan Vasquez b7284c94af Enabled USBDEVICE in targets.json for H743ZI2 2020-12-17 11:29:11 -06:00
Dustin Crossman 7a0e0d05d6 Fix mode of changed files. 2020-12-17 09:07:43 -08:00
Ryan Vasquez 795362dde2 Enabled USBDevice in targets.json for H743ZI2 2020-12-17 11:03:04 -06:00
Martin Kojtal d2bf235d41
Merge pull request #14035 from harmut01/remove_rz_targets
Remove unsupported Renesas target include files
2020-12-17 15:37:35 +00:00
Martin Kojtal 24501dffd3
Merge pull request #14042 from hugueskamba/hk_cmake_ambiq_micro_support
CMake: Add support for all Ambiq Micro Mbed targets
2020-12-17 15:07:43 +00:00
Martin Kojtal 89bd565582
Merge pull request #13976 from LDong-Arm/cypress_sleep_debug_rework
PSoC 6: rework sleep overrides by Cypress's debug macro
2020-12-17 14:22:44 +00:00
Martin Kojtal 8196045f20
Merge pull request #14047 from harmut01/clean_nordic_targets
Remove unsupported Nordic SoftDevice build support
2020-12-17 12:59:47 +00:00
Martin Kojtal f5ef511c31
Merge pull request #14050 from evva-sfw/fix_qspif_erase
fix QSPI-API for NRF52
2020-12-17 12:52:32 +00:00
Wenn0101 2e144e83e2 update startup gcc to add back weak definitions and have HciDrvRadioBoot call NVIC_SetVector 2020-12-17 11:21:22 +00:00
Hugues Kamba 94f74b40db Ambiq_Micro: Workaround config passing bug
Workaround a bug where the boot stack size configuration option is not
passed on to armlink, the Arm Compiler's linker. Prefer
MBED_CONF_TARGET_BOOT_STACK_SIZE if present, as this is what the
configuration system should provide. Fall back to MBED_BOOT_STACK_SIZE
if MBED_CONF_TARGET_BOOT_STACK_SIZE is not defined, as in the case of
buggy tools. If both MBED_CONF_TARGET_BOOT_STACK_SIZE and
MBED_BOOT_STACK_SIZE are not defined, then we fall back to a hard-coded
value provided by the linkerscript. See
#13474 for more information.
2020-12-17 11:13:42 +00:00
Hugues Kamba fc4e43557d CMake: Add support Ambiq targets 2020-12-17 11:13:42 +00:00
Martin Kojtal 94cc37b380
Merge pull request #14027 from hugueskamba/hk_cmake_fix_analog_devices_support
CMake: Fix Analog Devices targets support
2020-12-17 10:28:42 +00:00
Matthew Macovsky 8c60ce3e32 Create non-public target for Cypress boards with externally-stored WiFi firmware
Targets that inherit from this target will have the defines necessary to
place the WiFi firmware in external storage and enable use of the
external WiFi firmware reserved region block device.
Currently, the only target inheriting from this new target is
CY8CPROTO-062S3-4343W.
2020-12-16 15:31:05 -08:00
Matthew Macovsky fc702737ce Create canonical CyReservedRegionBlockDevice for working with/around Cypress WiFi firmware in external memory
This change allows external memory to be used for other purposes while
the WiFi firmware is stored in it by interacting with it via the
reserved region block device.
2020-12-16 15:31:00 -08:00
Matthew Macovsky 95a85a52e8 Create block device for working around a reserved region
Given an underlying block device and the size of the reserved region, a
CyReservedRegionBlockDevice will act as the underlying block device but
operating only outside of the reserved region. It also allows reading
from the reserved region. The reserved region is assumed to start at
address 0 in the underlying block device.
2020-12-16 15:30:55 -08:00
Matthew Macovsky 71d6f8446c Change Cypress linker script region name from .cy_xip to cy_xip
In some toolchains, in order to use linker symbols referring to the
start and end of a region, the region name must not contain a '.'
character. These changes allow those symbols to be used for the cy_xip
region by renaming it. They also create explicit start and end symbols
for GCC.
2020-12-16 15:30:50 -08:00
Dustin Crossman 202a979a61 Update Cypress udb-sdio-whd to 1.1.1 2020-12-16 15:14:10 -08:00
Dustin Crossman d3e940d64f Fixup ticker api due to cyhal_timer_t changes. 2020-12-16 15:14:10 -08:00
Dustin Crossman 6c764eb149 Add component defines for psoc6 boards. 2020-12-16 15:14:10 -08:00
Dustin Crossman 482a7f1234 Update Cypress abstraction-resource asset to 1.0.0.17634 2020-12-16 15:14:10 -08:00
Dustin Crossman 19e1b7e199 Update Cypress abstraction-rtos asset to 1.3.0.17634 2020-12-16 15:14:10 -08:00