Commit Graph

8764 Commits (master)

Author SHA1 Message Date
Affrin Pinhero d8cbd68dc2 driver/i2c: STM32: Solves I2C driver performanc issue.
This commit solves issue related to i2c driver performance.
With this commit delay in read write when using i2c timing
algorithm is solved. Used flag mechanism which will check
tim reg value and hz passed.

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-07-02 10:54:16 +05:30
anish-k 91d0a6dec0 InterruptIn : STM32: Implemented error catching for multiple gpio irq line
The multiple InterruptIn object with same pin_index sharing same IRQ line.
So the second object will overwrite the first one. To catch this as error,
implemented an error catching functionality.
2021-07-01 21:32:39 +05:30
Kather Rafi Ibrahim a9e9564ced Eth: STM32: Upating documentation on mbed_otp_mac_address()
This commit updates the documentation on how to use
mbed_otp_mac_address() to modify the default MAC address to custom
Mac address.

Signed-off-by: Kather Rafi Ibrahim <katherrafi.i@hcl.com>
2021-07-01 17:07:01 +05:30
Martin Kojtal 43116a2822
Merge pull request #14807 from noonfom/m2354-psa-v8-m-devices
M2354: inherit PSA_V8_M devices
2021-07-01 10:52:53 +02:00
Jaeden Amero 043d1735a1
Merge pull request #14837 from LDong-Arm/K64F_pin_names
K64F: Fix pin names and migrate to Arduino Uno form factor
2021-06-30 09:15:54 +01:00
Mohammed Mubeen 5d861f895d
Merge branch 'master' into CAN_rxinterrupt_fix 2021-06-29 18:32:48 +05:30
pennam 4f80d23607 Provide missing stubs for ARMClang build 2021-06-29 14:41:08 +02:00
Martin Kojtal 8188f5f5ab
Merge pull request #14776 from affrinpinhero-2356/i2c_longTime_Mem_Solve
driver/i2c: STM32: I2C memory usage and time delay in read-write solved.
2021-06-29 11:30:02 +02:00
Mohammed Mubeen 1a2d624828 Added Raw CAN (unlocked can read api) and updated the code for the
rxInterrupt to work for all CAN instances
2021-06-29 12:46:21 +05:30
Lingkai Dong 61989e106a K64F: Fix pin names and migrate to Arduino Uno form factor
Fix pin names of K64F with the following from the latest guidelines:
* LEDs and buttons are defined as macros, digital and analog pins as
enums.
* No duplicated pin names with the same value.
* The Arduino form factor is deprecated in favour of Arduino Uno.

Note: The pins `SPI_xxx` are for SD card only, but the names are kept
for backward compatibility (i.e. no breaking change until the next
Mbed OS major version). The general purpose Arduino Uno SPI pins
(`ARDUINO_UNO_SPI_xxx`) are different and also available.
2021-06-28 17:47:25 +01:00
Affrin Pinhero 8f24f09df7 driver/i2c: STM32: Solves excess memory usage issue.
This commit solves excess usage of RAM. User can now enable/disable
I2C timing algorithm. Disabling of I2C timing algorithm would
reduce RAM usage.

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-06-28 18:13:02 +05:30
Martin Kojtal de7e326bc1
Merge pull request #14677 from MubeenHCLite/corrections_in_STM_canapi
Changes required in STM CAN read API
2021-06-25 10:49:20 +02:00
Martin Kojtal a2281a7e49
Merge pull request #14822 from jeromecoutant/PR_H7_M4
STM32H7: correction for FLASH API for CM4
2021-06-25 10:02:31 +02:00
Mohammed Mubeen 6f436dbac3 Adjusted spcae alignment 2021-06-25 12:06:44 +05:30
Martin Kojtal 829164acdb
Merge pull request #14778 from MubeenHCLite/Can_TxIrq_callback_resolution
CAN TxIRq callback never called -STM32G474
2021-06-24 15:44:52 +02:00
Dustin Crossman 444a2bdce0 Astyle run. 2021-06-23 15:40:09 -07:00
jeromecoutant a4b2695d15 STM32H7 CM4: enable ART 2021-06-23 16:58:16 +02:00
jeromecoutant ec945ba990 STM32H7 CM4: correct FLASH_SIZE
FLASH_SIZE_DATA_REGISTER is not accessible by M4,
acces makes a hard fault
2021-06-23 16:53:38 +02:00
Mohammed Mubeen 9732cdcce6 Updated comments appropriately 2021-06-22 14:22:16 +05:30
Abbas Bracken Ziad bfdf6f09ec M2354: inherit PSA_V8_M devices
For `MCU_M2354`, the use of `device_has` in `targets.json` overrides the devices
present in the base target: `PSA_V8_M`. In particular, `DEVICE_TRNG` is missing
in `NU_M2354` builds as `TRNG` is a member of the `PSA_V8_M` `device_has` list.
As suggested by @ccli8, to ensure that `PSA_V8_M` devices are inherited by
derived targets, such as `MCU_M2354`, the correct syntax to use is
`device_has_add`.
2021-06-21 12:40:30 +01:00
Mohammed Mubeen 2cc08cf5a6 Rebaseing to current master 2021-06-21 14:34:48 +05:30
Mohammed Mubeen 5049b518fb Added working functionality to the can_filter api to accept IDs for filtering in both bxCAN and FDCAN 2021-06-21 14:17:41 +05:30
Mohammed Mubeen 064f94d0a6 Added to return failure if filter if unsupported format 2021-06-21 14:17:31 +05:30
Mohammed Mubeen 274d8aa40c The default FIFO for can by hardware is FIFO0 as set by the CAN STM API in configuration. Hence the read api is modified to access FIFO0 only 2021-06-21 14:17:14 +05:30
pennam 3854de3daf Portenta Add cyhal_system.h placeholder to build with new cypress assets 2021-06-18 12:58:27 +02:00
pennam 7909a1d571 Portenta Fix ARMClang build 2021-06-18 12:58:19 +02:00
Mohammed Mubeen 1fc141905e Added code to set TBTIE, to enable the tx complete/abort interrupts, for
all supported FDCAN platforms
2021-06-15 20:17:50 +05:30
Affrin Pinhero ef5ac45192 driver/i2c: STM32: I2C Read Write Take long time
Modified i2c_device.h file. This will solve I2C read
write long time issue. Updated default I2C peripheral clock
value to 160MHz.

fix:
ARMmbed/mbed-os#14732

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-06-15 15:08:24 +05:30
Martin Kojtal 3c622f60b5
Merge pull request #14743 from OpenNuvoton/nuvoton_m251_m261_wdt
Nuvoton: Support watchdog on M251/M261 series
2021-06-11 16:10:53 +02:00
Martin Kojtal aeaac0e70c
Merge pull request #14746 from jeromecoutant/PR_WB15CC
STM32WB: introduce STM32WB15CC NUCLEO
2021-06-10 14:16:10 +02:00
Martin Kojtal b74f62c974
Merge pull request #14659 from arduino/i2c_slave_patch
STM32: make i2c_salve_read return the number of bytes read
2021-06-10 14:10:31 +02:00
jeromecoutant 1a370ed02a STM32WB: README update with NUCLEO_WB15CC 2021-06-08 15:04:00 +02:00
Martin Kojtal 7c17693c06
Merge pull request #14729 from affrinpinhero-2356/adc_bank_script_update
tools/STM32 Modified Python script generates Peripheral Pins
2021-06-08 12:21:32 +02:00
Chun-Chieh Li de00a5a4e8 Nuvoton: Support watchdog on M251/M261 series
Support watchdog on below targets:
-   NUMAKER_IOT_M263A
-   NUMAKER_IOT_M252
2021-06-08 11:03:55 +08:00
Martin Kojtal 8b1b302744
Merge pull request #14733 from jeromecoutant/PR_DUALPAD
STM32H7 ADC : dual pad feature update
2021-06-07 20:50:16 +02:00
Martin Kojtal 1fe0650907
Merge pull request #14721 from OpenNuvoton/nuvoton_no-hxt-lxt
Nuvoton: Enable no HXT/LXT configurability
2021-06-07 20:50:10 +02:00
jeromecoutant 4c7d9d190b STM32 NUCLEO_WB15CC support 2021-06-07 18:03:49 +02:00
jeromecoutant 9f0ee46475 STM32WB15xC MCU support 2021-06-07 16:05:41 +02:00
Martin Kojtal 587eb413d6
Merge pull request #14736 from jeromecoutant/ISSUE_USB_F1
STM32 USB: update init
2021-06-07 13:32:01 +02:00
Martin Kojtal a83ec1960b
Merge pull request #14739 from OpenNuvoton/nuvoton_m2354_tfm_no_hxt
M2354: Substitute HIRC for HXT to clock PLL
2021-06-07 12:52:57 +02:00
Martin Kojtal 0675d30be8
Merge pull request #14670 from jeromecoutant/PR_README_SLEEP
STM32: add information in README for SLEEP feature
2021-06-07 12:32:01 +02:00
Martin Kojtal fef89d93ce
Merge pull request #14738 from MaximIntegrated/master
Gate ticker (timer0) clock on deepsleep for MAX32620FTHR
2021-06-07 12:31:48 +02:00
Martin Kojtal 9fbb89e2d1
Merge pull request #14692 from jeromecoutant/PR_WB_HCI
STM32WB: improve FLASH size
2021-06-07 11:18:26 +02:00
Ahmet Alincak 43d9c0fbb4 Gate ticker (timer0) clock on deepsleep 2021-06-07 00:41:09 +03:00
Dustin Crossman ecaadd2597 Fix file modes. 2021-06-04 13:44:44 -07:00
Dustin Crossman 82ad4351db Add back deleted defines. 2021-06-04 12:46:49 -07:00
Dustin Crossman 7d0f3c7ec1 Fixup CMakeLists after reorg. 2021-06-04 12:46:13 -07:00
jeromecoutant 94794f9228 STM32 USB: update init
Add explicit calt to __HAL_PCD_ENABLE()
2021-06-04 17:01:14 +02:00
Anna Bridge 5047bd3c27
Merge pull request #14608 from JeanMarcR/STM32H7_NEW_CUBE
STM32H7 update drivers version to CUBE V1.9.0
2021-06-04 11:51:05 +01:00
Anna Bridge 986add717e
Merge pull request #14722 from jeromecoutant/PR_RNG
STM32 TRNG: update init to match all configs
2021-06-04 11:40:07 +01:00
Chun-Chieh Li 0b6fdf46f0 M2354: Default to HXT not present
1.  Build TF-M v1.3 with GNUARM and HXT not present.
2.  Support configurability of HXT presence (targets.json).
3.  Default HXT to not present (targets.json). This must align with built TF-M secure code above.
2021-06-04 10:32:59 +08:00
Chun-Chieh Li 79cf5a01d5 M2354: Synchronize platform extra secure files from TF-M
These files are refactored on TF-M and make no logic change on Mbed.
2021-06-04 10:32:59 +08:00
Chun-Chieh Li 71c32de1d7 M2354: Refine TF-M import readme
Add bug report of GNU Arm Embedded Toolchain 10-2020-q4-major in CMSE support
2021-06-04 10:32:59 +08:00
Dustin Crossman c57b3536bc Add accidentally deleted files back to CYSBSYSKIT_01 2021-06-03 14:26:27 -07:00
jeromecoutant fb8be8259c STM32H7 ADC : dual pad feature update 2021-06-03 10:42:35 +02:00
pennam cd35063694 Add missing changes in objects.h file for others STM32 components 2021-06-03 10:12:04 +02:00
Dustin Crossman 0d4e447cca Add workaround for changes to cyhal_lptimer_irq_trigger. 2021-06-02 17:11:11 -07:00
Dustin Crossman 0cf1589cdb Reorganize assets. 2021-06-02 17:11:02 -07:00
Dustin Crossman c47f286d1a Remove old files. 2021-06-02 17:09:53 -07:00
Dustin Crossman e97809483c Reorg and rename core-lib. 2021-06-02 17:09:52 -07:00
Dustin Crossman 98cf713e2a Reorg and rename abstraction-rtos. 2021-06-02 17:09:50 -07:00
Dustin Crossman b51527390f Rename and reorganize 2021-06-02 17:09:49 -07:00
Dustin Crossman 2e8de3cd91 Rename to better align with actual asset name. 2021-06-02 17:09:45 -07:00
Dustin Crossman ed14fe3795 Delete unused asset. 2021-06-02 17:09:18 -07:00
Dustin Crossman e2a4a7303e Add missing defines for psoc6 boards. 2021-06-02 17:09:16 -07:00
Dustin Crossman c40bc8b279 Update psoc6hal to 1.5.0.20805 2021-06-02 17:09:15 -07:00
Dustin Crossman 7a7f206344 Update abstraction-resource to 1.0.0.22384 2021-06-02 17:08:20 -07:00
Dustin Crossman c3714868a3 Update abstraction-rtos to 1.4.0.22384 2021-06-02 17:08:19 -07:00
Dustin Crossman 4ca2f281c0 Update core_lib to 1.2.0.22384 2021-06-02 17:08:18 -07:00
Dustin Crossman 9b946a4f0d Update psoc6cm0p to 2.1.2.789 2021-06-02 17:08:16 -07:00
Dustin Crossman 623e799d63 Update serial-flash to 1.1.0.20805 2021-06-02 17:08:15 -07:00
Dustin Crossman f489d579b0 Update psoc6pdl to 2.2.0.7891 2021-06-02 17:08:14 -07:00
Dustin Crossman 85c0e45313 Update TARGET_CYW9P62S1_43438EVB_01 to 2.1.0.21729 2021-06-02 17:07:05 -07:00
Dustin Crossman d1c8bad661 Update TARGET_CYW9P62S1_43012EVB_01 to 2.1.0.21729 2021-06-02 17:07:04 -07:00
Dustin Crossman 783071037c Update TARGET_CYSBSYSKIT_01 to 2.1.0.21729 2021-06-02 17:07:03 -07:00
Dustin Crossman 55c0dd9065 Update TARGET_CY8CPROTO_062_4343W to 2.1.0.21729 2021-06-02 17:07:02 -07:00
Dustin Crossman 1ebbd2b749 Update TARGET_CY8CPROTO_062S3_4343W to 2.1.0.21729 2021-06-02 17:07:01 -07:00
Dustin Crossman 640b5ab094 Update TARGET_CY8CKIT_062_WIFI_BT to 2.1.0.21729 2021-06-02 17:07:00 -07:00
Dustin Crossman 65c1635909 Update TARGET_CY8CKIT_062_BLE to 2.1.0.21729 2021-06-02 17:06:59 -07:00
Dustin Crossman 5d832dd5e9 Update TARGET_CY8CKIT_062S2_43012 to 2.1.0.21729 2021-06-02 17:06:57 -07:00
Affrin Pinhero f7a3ad9008 tools/STM32 Modified Python script generates Peripheral Pins
Modified print_adc function to update adc pin_map.
This patch will update python script that generate
'peripheralPin.c'. Which will give functionality to
gernerate ADC pin definition for BANK_B.
This script update is related to
https://github.com/ARMmbed/mbed-os/pull/14669

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-06-02 21:23:46 +05:30
Martin Kojtal 5fe4dafc34
Merge pull request #14221 from macronix/macronix_rww
Enable the RWW function of Macronix Flash MX25LW51245G in OSPI block device driver
2021-06-02 16:53:59 +02:00
jeromecoutant a4ae9f13a7 STM32 TRNG : update init to match all config 2021-06-02 16:37:38 +02:00
jeromecoutant 20e4a351f1 Revert "STM32L5 RNG : update for deprecated MCU version"
This reverts commit f599a5463c.
2021-06-02 16:37:38 +02:00
Martin Kojtal 045c48db3e
Merge pull request #14669 from affrinpinhero-2356/adcBank
STM32L152: Added ADC Bank_B functionality
2021-06-02 16:33:03 +02:00
Martin Kojtal 5aaf3a3390
Merge pull request #14720 from chrJost/STM32L5x2_pwr_register
STM32L5: corrected voltage scaling when using MSI
2021-06-02 15:50:02 +02:00
Martin Kojtal 0711e488a1
Merge pull request #14686 from jeromecoutant/PR_CPP
STM32: correct __cplusplus brackets
2021-06-02 13:59:26 +02:00
jeromecoutant cadc328947 STM32G0: correct voltage scaling control 2021-06-02 09:37:19 +02:00
Chun-Chieh Li f08a841a8c Nuvoton: Configure HXT to not present by default
This is to spare one HXT component in case the substitute HIRC can pass Greentea test with accuracy.
2021-06-02 09:02:06 +08:00
Chun-Chieh Li 77ed6778d8 Nuvoton: Explicitly disable HXT/LXT on configured to not present
This is to guard from BSP driver which cannot see this configuration and still uses HXT/LXT.
2021-06-02 09:02:05 +08:00
Chun-Chieh Li a0c53896e0 Nuvoton: Enable no HXT/LXT configurabiliy
LXT/HXT are external crystl oscillator and can be absent on custom board.
This enables configuring LXT/HXT presence:
1.  By default, LXT/HXT are configured to be present, except M252 which has no HXT.
2.  When LXT is configured to not present, lp_ticker/watchdog will clock by LIRC instead.
3.  Limitations:
    (1) On all targets, LIRC-clocked lp_ticker gets inaccurate and fails to pass tests.
    (2) On NUC472/M453, HIRC-clocked PLL doesn't output 1MHz-aligned frequency. us_ticker gets slight inaccurate.
    (3) On all targets, LIRC-clocked RTC is not supported due to no H/W path/RTC clock source reset to LXT on reset/RTC not trimmed for other clock rates.
4.  On M263, TRNG's clock source defaults to LXT and needs special handling without LXT.
5.  On M252, replace target.hxt-enable with target.hxt-present for consistency.
2021-06-02 09:02:05 +08:00
Jost, Chris 3bfa124f80 enable the power settings register prior to setting them 2021-06-01 16:40:15 +02:00
Martin Kojtal 543bcb5192
Merge pull request #14441 from OpenNuvoton/nuvoton_m2354_tfm
M2354: Support Nuvoton's new target
2021-06-01 11:25:59 +02:00
Martin Kojtal da13755a9f
Merge pull request #14699 from jeromecoutant/PR_ASTYLE
STM32 astyle format
2021-06-01 10:02:34 +02:00
pennam 70c09cdb7a Portenta cycfg.h add missing license header 2021-05-31 16:38:37 +02:00
Martino Facchin f05eb06439 Portenta enable WiFi 2021-05-31 16:38:37 +02:00
pennam c1e7c54964 Portenta CMake fix COMPONENT_WHD 2021-05-31 16:38:37 +02:00
pennam fc83ee15d8 Portenta add missing includes to resources.h 2021-05-31 16:38:37 +02:00
pennam 5edf34289c Portenta add resource_fs_handle declaration 2021-05-31 16:38:36 +02:00
pennam 64c9e1fdb3 Portenta split wiced_filesystem.h to avoid cpp BlockDevice inclusion from Cypress layer 2021-05-31 16:38:36 +02:00
pennam b34a436d25 Portenta removed resource_imp folder 2021-05-31 16:38:36 +02:00
pennam 2852fe41ae Portenta renamed 4343W to 4343W_FS 2021-05-31 16:38:36 +02:00
pennam d31e002bae Portenta SDIO patch to support non NULL response arguments 2021-05-31 16:38:36 +02:00
pennam 774821ca3b Portenta add cycfg.h 2021-05-31 16:38:35 +02:00
Martino Facchin 94ceb8379d Portenta add SDIO GPIO and filesystem implementation 2021-05-31 16:38:35 +02:00
Martino Facchin 4200d752b2 Portenta add interface to cypress hal 2021-05-31 16:38:35 +02:00
pennam ef7ce6ba68 Portenta Add COMPONENT_WHD/resources to TARGET_PORTENTA_H7 2021-05-31 16:38:35 +02:00
Martin Kojtal 8a0c3c7915
Merge pull request #14698 from affrinpinhero-2356/HAL_I2C_ErrorCallback-#14696
STM32: Fixed I2C Bug
2021-05-31 16:11:38 +02:00
Martin Kojtal bfedc39f7c
Merge pull request #14471 from arduino/whd_patch
COMPONENT_WHD: make reusable code available for other targets
2021-05-31 15:49:25 +02:00
Martin Kojtal 15728abc85
Merge pull request #14702 from jrobeson/silence-warnings-in-3rd-party-nordic-code
Silence expansion-to-defined for nrfx
2021-05-31 15:33:58 +02:00
Jaeden Amero 9135966efe
Merge pull request #14687 from JeanMarcR/STM32L5_NEW_CUBE
STM32L5 update drivers version to CUBE V1.4.0
2021-05-27 14:55:32 +01:00
Affrin Pinhero 4a8b2301a5 STM32: Fixed I2C Bug reported.
Modified HAL_I2C_ErrorCallback function to solve bug reported in I2C Driver.
This commit solves compilation error occured when DEVICE_I2CSLAVE is not defined.

fix #14696

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-05-27 15:02:39 +05:30
Johnny Robeson 65533a9d81 Silence expansion-to-defined in nrfx 2021-05-26 01:06:01 -04:00
Chun-Chieh Li 3fc81fb883 M2354: Comply with standard pin naming rule 2021-05-26 09:35:05 +08:00
Chun-Chieh Li e2491509f5 M2354: Update to TF-M 1.3 2021-05-26 09:35:05 +08:00
Chun-Chieh Li 98f5a99219 M2354: Refine TF-M/Mbed integration readme 2021-05-26 09:35:04 +08:00
Chun-Chieh Li 9fee7d9b18 M2354: Use TF-M exported region_defs.h to replace target.mbed_rom_start and friends 2021-05-26 09:35:04 +08:00
Chun-Chieh Li 7db441401b M2354: Support TRNG as entropy source on TF-M
1.  Update TF-M Secure bin enabling TRNG as entropy source
2.  Replaced with above, remove TRNG HAL stuff on Mbed, including platform extra secure functions, cmake, etc.
2021-05-26 09:35:04 +08:00
Chun-Chieh Li 2c3fb3d727 M2354: Reduce output image size
1.  Enable mcuboot no padding option
2.  Support output image format Intel Hex
2021-05-26 09:35:03 +08:00
Chun-Chieh Li 356c8fdeb3 M2354: Add serial_tx_empty(...)
Enable serial sync with the below PR:
https://github.com/ARMmbed/mbed-os/pull/14600
2021-05-26 09:35:03 +08:00
Chun-Chieh Li fd8ac31537 M2354: Support TF-M
1.  Configure non-secure target name to NU_M2354 (targets/targets.json). No NU_M2354_NS alias
2.  Following template target, enable image signing and concatenating in post-build process
    (1) Add post-build script (tools/targets).
    (2) Enable TF-M custom build by centralize relevant stuff imported from TF-M (COMPONENT_TFM_S_FW).
3.  Add M2354Code.merge_secure into whitelist of uvision6 (tools/export/uvision/__init__.py).
4.  Add M2354 CMSIS pack database (tools/arm_pack_manager/index.json).
5.  Configure stdio baudrate to 115200 to match TF-M port (platform/mbed_lib.json).
6.  Define CMSIS_NVIC_VIRTUAL to override NVIC_SystemReset with TF-M version (cmsis_nvic_virtual.h).
7.  Override tfm_ns_interface_xxx(...) to enable NS secure call:
    (1) At pre-rtos stage
    (2) In SVC context
8. Implement secure function call with tfm_platform_ioctl(...).
9. Combine stddriver_secure.h/c and hal_secure.h/c into platform_extra_secure.h/c.
10. Fix peripheral base to non-secure (PeripheralNames.h) (TrustZone-unaware since Mbed OS 6.0).
11. Fix NU_PORT_BASE/NU_GET_GPIO_PIN_DATA/NU_SET_GPIO_PIN_DATA to non-secure (PinNamesCommon.h) (TrustZone-unaware since Mbed OS 6.0).
12. NSC convention for StdDriver sys/clk (both TF-M and Mbed must follow)
    (1) SYS_ResetModule
        Usage: Replaced with SYS_ResetModule_S on Mbed OS
        Action: Make it inaccessible from Mbed (neither source nor NSC). Provide SYS_ResetModule_S on Mbed via platform ioctl instead.
    (2) CLK_GetXxx
        Usage: Called in bpwm/i2s/qspi/sc/sdh and system_M2354 on Mbed OS
        Action: Make them inaccessible from Mbed (neither source nor NSC). Re-provide them on Mbed via platform ioctl instead.
13. Remove DISABLE/ENABLE macro definitions in BSP to avoid name conflict with other modules
14. Change to TMR4/5 from TMR2/3 for implementing us_ticker/lp_ticker because TMR2 is used for TF-M NSPE test
15. Support cmake

NOTE: Export(uvision6) doesn't support TF-M target. To enable it for partial compile on Keil, force below function to return true.
      is_target_supported(tools/export/uvision/__init__.py)
2021-05-26 09:35:02 +08:00
Anna Bridge cb4dd19ad0
Merge pull request #14689 from MubeenHCLite/HighSpeed_Async_SPI_limitation
Information on Asynchronous SPI limitation on High Speeds
2021-05-25 14:05:41 +01:00
jeromecoutant c69654f82c STM32WL astyle 2021-05-25 14:46:00 +02:00
jeromecoutant 4181aad209 STM32WB astyle 2021-05-25 14:46:00 +02:00
jeromecoutant 49f8ddd456 STM32L5 astyle 2021-05-25 14:46:00 +02:00
jeromecoutant 1694acd7ac STM32L4 astyle 2021-05-25 14:46:00 +02:00
jeromecoutant 8b0f3582a8 STM32L1 astyle 2021-05-25 14:46:00 +02:00
jeromecoutant b363359d68 STM32L0 astyle 2021-05-25 14:46:00 +02:00
jeromecoutant cfd86882d3 STM32H7 astyle 2021-05-25 14:45:52 +02:00
jeromecoutant 9cadad3dcf STM32G4 astyle 2021-05-25 14:45:51 +02:00
jeromecoutant 4b75eb8d26 STM32G0 astyle 2021-05-25 14:45:51 +02:00
jeromecoutant 798057d07b STM32F4 astyle 2021-05-25 14:45:51 +02:00
jeromecoutant f4d8c8a746 STM32F3 astyle 2021-05-25 14:45:51 +02:00
jeromecoutant cedb1043f1 STM32F0 astyle 2021-05-25 14:45:51 +02:00
jeromecoutant c02cb71b35 STM32 common filess astyle 2021-05-25 14:45:30 +02:00
reme 00d6093ed6 STM32H7 update drivers version to CUBE V1.9.0 2021-05-25 13:38:23 +01:00
reme 884b35af79 README update STM32H7 to CUBE V1.9.0 2021-05-25 13:38:20 +01:00
pennam d317dfccbb make i2c_salve_read return the number of bytes read to let mbed-os read API return an error if less bytes are readed 2021-05-25 08:46:02 +02:00
Affrin Pinhero 72138269d3 Merge branch 'ARMmbed:master' into adcBank 2021-05-24 23:50:22 +05:30
Affrin Pinhero 0c9523a2a6 STM32L152: Added ADC Bank_B functionality.
Modified analogin_init function to take correct value for ChannelsBank depends on ADC pin.
This commit adds ADC Bank_B usablity to STm32L152RE. With this commit PB_2 can also woak as ADC_IN.
2021-05-24 23:44:02 +05:30
jeromecoutant 81dc8f8605 STM32: correct __cplusplus brackets in ci2c_device.h 2021-05-24 14:47:05 +02:00
jeromecoutant 073c82e568 STM32: correct __cplusplus brackets in can_device.h 2021-05-24 14:39:32 +02:00
Anna Bridge 10a2da9b5e
Merge pull request #14668 from ikmdani/fix_i2c_read_13967
Driver: I2C: STM32F2/STM32F4/STM32L1: Fix alternate i2c read.
2021-05-24 13:14:36 +01:00
Anna Bridge 95dadc67b1
Merge pull request #14664 from LDong-Arm/nrf52832_flashiap
Enable FlashIAP for MCU_NRF52832
2021-05-24 13:12:06 +01:00
Anna Bridge 72f08db8f6
Merge pull request #14593 from JeanMarcR/STM32F7_NEW_CUBE
STM32F7 update drivers version to CUBE V1.16.1
2021-05-24 13:10:35 +01:00
Anna Bridge 9e98a2ceb4
Merge pull request #14592 from JeanMarcR/STM32G4_NEW_CUBE
STM32G4 update drivers version to CUBE V1.4.0
2021-05-24 13:10:04 +01:00
Anna Bridge 5ef56cc6f4
Merge pull request #14557 from affrinpinhero-2356/feature_i2cTiming_Calculation
STM32: driver/Added I2C timing calculation algorithm
2021-05-24 13:09:19 +01:00
Anna Bridge dcd6dc3837
Merge pull request #14536 from jeromecoutant/DEV_STM32F0_LPTICKER_OPTIM
STM32: Add LP_TICKER and US_TICKER optimisation macro
2021-05-24 13:06:03 +01:00
Anna Bridge 4e586a93d3
Merge pull request #14426 from ARMmbed/feature_unittest_refactor
CMake: Refactor UNITTESTS CMake
2021-05-24 13:04:22 +01:00
jeromecoutant 2c5255fe56 STM32WB: improve FLASH size
Default BLE FW in ST boards is stm32wb5x_BLE_Stack_full_fw.bin
 and gives 808K available FLASH to application

stm32wb5x_BLE_HCILayer_fw.bin
 gives 896K available FLASH to application
2021-05-21 17:19:14 +02:00
Mohammed Mubeen e989c48668 Added information on limitation of asynchronous SPI at high speeds(MHz
ranges)
2021-05-21 16:27:13 +05:30
Mohammed Mubeen 033b08de19 Implementation for can_read to be deferred to thread context when rx
interrupt is enabled.
2021-05-21 16:11:37 +05:30
reme b2b9c3d49f README update STM32L5 to CUBE V1.4.0 2021-05-20 15:04:48 +01:00
reme f599a5463c STM32L5 RNG : update for deprecated MCU version 2021-05-20 15:02:40 +01:00
reme 7d1f5c4c40 STM32 TRNG : init update 2021-05-20 15:02:40 +01:00
reme 276eefd0cc STM32L5 update drivers version to CUBE V1.4.0 2021-05-20 15:02:40 +01:00
Rajkumar Kanagaraj 6d4caad83d CMake: Move CMAKE_CROSSCOMPILING check inside library CMake 2021-05-20 06:26:10 -07:00
jeromecoutant afdc27ab0b STM32: add information in README for SLEEP feature 2021-05-19 17:23:49 +02:00
Affrin Pinhero d974b47439 driver/i2c: Added I2C timing calculation function.
This commit adds I2C timing value automatic calculation algorithm
for all supported families added. This patch improves I2C timing calculation
according to I2C input clock and I2C bus speed.
This commit also allows user to change the system clock and I2C input clock.

Related issue: #12907

Pull request type:
[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results:
[] No Tests required for this change (E.g docs only update)
[x] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-05-19 18:35:47 +05:30
Krishna Mohan Dani 8f2c45c5af Driver: I2C: STM32F4: Fix for every alternate i2c read failure in F2, F4 & L1 families.
This commit fixes the i2c driver issue reported in the below link:
https://github.com/ARMmbed/mbed-os/issues/13967 on STM32F4xx platform.

The data type of XferOperation has been changed from uint8_t to uint32_t
so that it can hold a 32bit value (for example: I2C_OTHER_FRAME or
I2C_OTHER_AND_LAST_FRAME).

Signed-off-by: Krishna Mohan Dani <krishnamohan.d@hcl.com>
2021-05-17 18:20:00 +05:30
Lingkai Dong 6e169ed2a1 Enable FlashIAP for MCU_NRF52832
The NRF52832 MCU supports flash which is declared in `targets.json`
but the declaration of FlashIAP was missing. Applications were unable
to access the MCU's internal flash.

For example, with Mbed OS PSA enabled for NRF52_DK, Mbed CLI 1's
configuration check fails:

    [ERROR] library 'psa-services' requires 'flashiap-block-device' which is not present

because Mbed OS PSA requires internal flash.
2021-05-17 10:53:46 +01:00
Rohit Ramu 20ea05cc31
Delete STM32F401XE.ld
Duplicate file causing collisions when cloning the repo on a case-insensitive OS (e.g. Windows).
2021-05-15 23:59:03 -07:00
Anna Bridge 640d844251
Merge pull request #14623 from s-bruce13/master
Updated SDK 2.9.1 and added Flash Support for MIMXRT1170_EVK
2021-05-13 11:18:05 +01:00
Anna Bridge d64d0b7864
Merge pull request #14609 from JeanMarcR/STM32L0_NEW_CUBE
STM32L0 update drivers version to CUBE V1.12.0
2021-05-13 11:17:09 +01:00
reme c61ccedd4b STM32F7 update drivers version to CUBE V1.16.1 2021-05-11 13:01:30 +01:00
reme 0200a2e61d README update STM32F7 to CUBE V1.6.1 2021-05-11 13:01:21 +01:00
Martin Kojtal 5a121b9b2e
Merge pull request #14612 from uwrobotics/stm-slave-can-filter-fix
CAN: fix slave CAN start filter bank setup
2021-05-11 10:55:35 +02:00
Martin Kojtal b80128ff77
Merge pull request #14626 from jeromecoutant/DEV_STM32WB_1_11_1
STM32WB update drivers version to CUBE V1.11.1
2021-05-11 10:55:14 +02:00
s-bruce13 659f0bbe07 adding flash support
adding flash support

Updated SDK 2.9.1 and added Flash Support
2021-05-10 11:31:33 -05:00
reme 5f279efc75 STM32F4 update drivers version to CUBE V1.26.1 2021-05-10 14:38:05 +01:00
reme b62970fdf1 README update STM32F4 to CUBE V1.26.1 2021-05-10 14:37:57 +01:00
Martin Kojtal c54b089498
Merge pull request #14651 from JeanMarcR/STM32L4_NEW_CUBE
STM32L4 update drivers version to CUBE V1.17.0
2021-05-10 15:13:06 +02:00
Martin Kojtal 7f68465b3a
Merge pull request #14631 from affrinpinhero-2356/feature_i2c_CB_error
driver/I2C: STm32: Updated HAL_I2C_ErrorCallback function to store information about error reason in obj_s->event
2021-05-10 14:48:20 +02:00
reme de330d4365 README update STM32L4 to CUBE V1.17.0 2021-05-10 07:48:51 +01:00
reme 6b6b17dbbb STM32L4 update drivers version to CUBE V1.17.0 2021-05-10 07:28:27 +01:00
s-bruce13 0f4bc86a21 Updated drivers to SDK to 2.9.1 2021-05-07 08:29:53 -05:00
James Norton f906707d0f Changed LED definitions to be compliant with Generic Pin Naming standard
Removed I2C_SCL and I2C_SDA from PinName enum as these are now defined in PinNameAliases.h
2021-05-06 11:36:14 -07:00
pennam 1c83a1aa8b CMake remove subdirectory common/COMPONENT_WHD from TARGET_Cypress 2021-05-06 15:39:57 +02:00
pennam 665c83b3eb Moved targets/TARGET_Cypress/TARGET_PSOC6/common/COMPONENT_WHD in connectivity/drivers/wifi/COMPONENT_WHD/network 2021-05-06 15:39:42 +02:00
pennam f26771f0c7 CMake remove COMPONENT_WHD from TARGET_Cypress 2021-05-06 15:39:42 +02:00
pennam a29ca0724c COMPONENT_WHD moved into connectivity/drivers/wifi 2021-05-06 15:39:19 +02:00
reme 5328eacefd STM32L0 update drivers version to CUBE V1.12.0 2021-05-06 13:15:47 +01:00
reme 331cf70d87 README update STM32G4 to CUBE V1.4.0 2021-05-06 12:48:32 +01:00
reme 6b42f45529 STM32G4 update drivers version to CUBE V1.4.0 2021-05-06 12:48:31 +01:00
Affrin Pinhero b5f864d96d Updated HAL_I1C_ErrorCallback funtion to store information about error reason in obj_s->event. This will help user or application to check the reason for the error caused. This address the issue reported in the below link: ARMmbed/mbed-os#14059
Summary of changes:

Impact of changes

Migration actions required

Pull request type
[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[x] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-05-06 14:37:04 +05:30
reme 915268190f README update STM32L0 to CUBE V1.12.0 2021-05-06 10:45:40 +02:00
James Norton 100ba31ca3 Change supported_form_factors from ARDUINO to ARDUINO_UNO to support Pin Name changes for mbed os v6.10. 2021-05-05 12:40:20 -07:00
James Norton 36d449a27d Added Support for ARDUINO_UNO Form Factor on TARGET_MIMXRT1050.
Renamed D0..D15 and A0..A5 to ARDUINO_UNO_D0 etc.

This allows user to use ARDUINO_UNO as the supported_form_factors in targets.json for MIMXRT1050_EVK.
2021-05-05 12:34:34 -07:00
jeromecoutant 6f9bc14898 STM32WB : update Readme 2021-05-05 17:22:54 +02:00
jeromecoutant c9af87dc63 STM32WB : TARGET_STM32WB_V1.11.1 2021-05-05 17:22:43 +02:00
jeromecoutant e48963b629 STM32WB : change subfamily name
STM32WB50xx => STM32WB50xG
STM32WB55xx => STM32WB55xG
STM32WB5Mxx => STM32WB5MxG
2021-05-05 17:22:34 +02:00
Martin Kojtal 376fda5bf5
Merge pull request #14505 from s-bruce13/master
Adding NXP TARGET- MIMXRT1170_EVK
2021-05-04 11:28:07 +02:00
Martin Kojtal 6330299ac5
Merge pull request #14578 from jeromecoutant/PR_WB55MMG
STM32 : new DISCO_WB5MMG target
2021-05-04 10:48:26 +02:00
Martin Kojtal ccde03aac2
Merge pull request #14567 from OpenNuvoton/nvt_m480_wdt_rst
M487: Resolve WDT reset H/W limit
2021-05-03 12:11:30 +02:00
Martin Kojtal 99cf33c202
Merge pull request #14594 from jeromecoutant/PR_GEN_MCU
STM32_gen_PeripheralPins.py : TargetName correction
2021-05-03 09:55:48 +02:00
Cindy Li bda36681ba CAN: fix slave CAN start filter bank setup 2021-04-30 17:32:14 -04:00
Martin Kojtal 0a6f769d54
Merge pull request #14555 from OpenNuvoton/nuvoton_wdt_stop-n-kick
Nuvoton: Fix hal_watchdog_kick() with WDT stopped
2021-04-30 15:41:35 +01:00
Martin Kojtal 9f35f294fe
Merge pull request #14582 from LDong-Arm/TF-Mv1.3.0_update
Update TF-M to v1.3.0
2021-04-30 12:13:56 +01:00
Lingkai Dong 5434722328 Updated secure binaries for [('ARM_MUSCA_S1', 'ARMCLANG')] 2021-04-29 11:09:23 +01:00
Lingkai Dong 68f8501885 Updated secure binaries for [('ARM_MUSCA_B1', 'ARMCLANG')] 2021-04-29 11:09:18 +01:00
jeromecoutant ebc0035afd STM32 : new DISCO_WB5MMG target 2021-04-28 16:46:52 +02:00
s-bruce13 f4045f9440 Fixed reference for GPT driver 2021-04-28 08:14:49 -05:00
Martin Kojtal 2bf648f975
Merge pull request #14561 from harmut01/baremetal_renesas
Add bare metal support to Renesas targets
2021-04-28 13:26:50 +01:00
Martin Kojtal 5fe3f09b6a
Merge pull request #14581 from jeromecoutant/PR_G4_UART
STM32G4 : serial issue with LP_UART1
2021-04-28 13:24:52 +01:00
Martin Kojtal 3358b45017
Merge pull request #14583 from Patater/detect-musca-b1
musca: Add detect_code for MUSCA B1
2021-04-28 12:43:48 +01:00
Martin Kojtal 49b018c3db
Merge pull request #14542 from JeanMarcR/STM32F3_NEW_CUBE
STM32F3 update drivers version to CUBE V1.11.2
2021-04-28 12:33:25 +01:00
Martin Kojtal 924652dc7f
Merge pull request #14539 from JeanMarcR/STM32G0_NEW_CUBE
STM32G0 update drivers version to CUBE V1.4.1
2021-04-28 12:33:03 +01:00
s-bruce13 2398d86107 Adding ARM support 2021-04-27 11:53:37 -05:00
jeromecoutant 7150c0610a STM32_gen_PeripheralPins.py TargetName correction 2021-04-27 12:14:57 +02:00
Jaeden Amero b730f1fe27 musca: Add detect_code for MUSCA B1
Wtihout the detect_code, `mbed-tools detect` will fail to detect any
connected ARM_MUSCA_B1 boards with the error:

    ERROR: Could not identify a board with the product code: '5007'.
    No connected Mbed devices found.

Add the detect_code for MUSCA B1 to targets.json so the board can be
reliably detected.

Fixes ARMmbed/mbed-tools#272
2021-04-23 09:13:03 +01:00
Lingkai Dong 7245d5ed3b Rename tfm_target_name for ARM_MUSCA_B1
The mbed-os-tf-m-regression-tests build scripts gets a mapping of
Mbed OS target names to TF-M target names from `targets.json`. TF-M
v1.3 has renamed musca_b1 to musca_b1/sse_200, this commit updates
that accordingly to ensure successful build of TF-M and tests for
ARM_MUSCA_B1.
2021-04-22 15:49:19 +01:00
jeromecoutant f2e153cf74 STM32G4 : serial issue with LP_UART1 2021-04-22 14:10:42 +02:00
Chun-Chieh Li e38b691541 M487: Refine the WKT resolution to WDT reset from PD
1. Rephrase the comment
2. Pass WDT reset reason test
2021-04-22 19:12:52 +08:00
cyliangtw 7db85490e6 Align lines by space instead of tab 2021-04-20 19:39:14 +08:00
cyliangtw b26fd71855 Resolve M480 WDT reset H/W limit by reset from deep power-down 2021-04-20 18:18:00 +08:00
jeromecoutant 45a6787a41 STM32: Add LP_TICKER and US_TICKER optimisation define 2021-04-20 10:40:53 +02:00
harmut01 9125c51e6c Remove include dependency on `USBDevice_Types.h`
mbed-usb (which provides `USBDevice_Types.h`) is a higher-level USB
library in Mbed-OS that sits on top of the HAL. Targets should not
implement the HAL and use higher-level libraries, hence, the dependency
should be removed. This dependency also causes errors when building with
the bare-metal profile.
2021-04-19 16:20:25 +01:00
harmut01 961ec0ce7f CMake: Add `.cpp` files to target_sources
C++ files were excluded from target_sources, this meant that those files
were being missed entirely during the build process. This adds any files
that may have missed in the first commit.
2021-04-19 16:19:51 +01:00
s-bruce13 8d9a60a895 fixed cmakelist to refer to correct library 2021-04-16 07:02:03 -05:00
jeromecoutant d219378f37 NUCLEO_WB55RG: enable PinMap_GPIO[] 2021-04-16 12:37:49 +02:00
jeromecoutant 4e9ef595c3 DISCO_L475VG_IOT01A: enable PinMap_GPIO[] 2021-04-16 12:37:49 +02:00
jeromecoutant 297522b35e STM32: enable PinMap_GPIO table with GPIO_PINMAP_READY
If GPIO_PINMAP_READY is defined for the target,
- PinMap_GPIO table is expected in PeripheralPins.c
- weak gpio_get_capabilities function is implemented
2021-04-16 12:35:40 +02:00
Chun-Chieh Li d489c92a1b Nuvoton: Fix hal_watchdog_kick() with WDT stopped
According to HAL spec, hal_watchdog_kick() shall do nothing when WDT is stopped.
2021-04-16 09:56:43 +08:00
Martin Kojtal 016d725673
Merge pull request #14465 from harmut01/baremetal_maxim
Maxim: Add bare metal support to targets
2021-04-15 17:31:12 +02:00
Martin Kojtal 32d1c99d3c
Merge pull request #14480 from jeromecoutant/PR_STM32_STANDARD
STM32: Standard Pin Names
2021-04-15 17:30:50 +02:00
Martin Kojtal 1fd4cfd798
Merge pull request #14516 from 0xc0170/fix-cmake-project-name
CMake: remove MBED_PATH and use <PROJECT-NAME>_SOURCE_DIR/MODULE_PATH instead
2021-04-15 14:00:21 +02:00
Martin Kojtal dd1da3da40
Merge pull request #14469 from jeromecoutant/PR_FLASH_PROGRAM
STM32: remove critical sections in flash_program_page
2021-04-14 20:15:11 +02:00
s-bruce13 cdf2d4d0a4 missing analoginapi in cmake list 2021-04-14 09:37:40 -05:00
Martin Kojtal 121c8286da CMake: set CMAKE_MODULE_PATH in the Mbed OS CMakelists.txt
Update CMAKE_MODULE_PATH at once place.

Note, we update also CMAKE_MODULE_PATH in app.cmake. This is temporary until we get a proper way to include
Mbed Os (removing app.cmake need to be included by an application).
2021-04-14 13:09:28 +01:00
Martin Kojtal 65e246fe4d CMake: add mbed_ prefix to our CMake files
To avoid conflicts as we expose our CMake list files via CMAKE_MODULE_PATH. Some files already include it, this
aligns the rest of files.

I leave app.cmake as it is - it's user facing and it would be breaking change. We can clean this one for the next major version.
2021-04-14 13:09:27 +01:00
Martin Kojtal b6a90c4ae1 CMake: fix for CMAKE_CURRENT_LIST_DIR in functions
CMAKE_CURRENT_LIST_DIR behaves differently in functions. We store it in the CMakeLists itself, so anyone
calling a function would get the actual list dir where the scripts are.

To illustrate: if I call a function from src/CMakelists.txt, function located in src/scripts, `CMAKE_CURRENT_LIST_DIR` in the function would point
to the src/ folder but not to src/scripts.
2021-04-14 13:09:27 +01:00
Martin Kojtal afd938491a CMake platform: remove MBED_PATH, use standard variables
As we still use target labels, TFM is not visible to CMake. Protect include of their scripts with the same mechanism.
2021-04-14 13:09:26 +01:00
Martin Kojtal dfc4010e24 CMake targets: remove MBED_PATH, use stadard variables
- list files included via module path
- <project-name>_SOURCE_DIR for sources that are out of the current processed CMake
- CMAKE_CURRENT_LIST_DIR for listfiles
2021-04-14 13:09:26 +01:00
jeromecoutant 992591e774 STM32WL: standard pin names 2021-04-14 11:18:43 +02:00
jeromecoutant 65a96c57a2 STM32WB: standard pin names 2021-04-14 11:18:43 +02:00
jeromecoutant 768037c05e STM32L5: standard pin names 2021-04-14 11:18:43 +02:00
jeromecoutant 8e3c5f11d4 STM32L4: standard pin names 2021-04-14 11:18:22 +02:00
Martin Kojtal f4f8d8fd3f
Merge pull request #14543 from praveenCY/pr/fix_uart_enable
Fix Unbuffered serial enable/disable issue on Cypress kits
2021-04-14 11:09:24 +02:00
jeromecoutant a5878f45c3 STM32L1: standard pin names 2021-04-14 10:30:04 +02:00
jeromecoutant baa558685c STM32L0: standard pin names 2021-04-14 10:30:03 +02:00
jeromecoutant 68b620bdc2 STM32H7: standard pin names 2021-04-14 10:30:03 +02:00
jeromecoutant ede1741e55 STM32G4: standard pin names 2021-04-14 10:30:03 +02:00
jeromecoutant bd43397f12 STM32G0: standard pin names 2021-04-14 10:29:56 +02:00
jeromecoutant fc54542cf0 STM32F7: standard pin names 2021-04-14 10:23:29 +02:00
jeromecoutant 2323d227fe STM32F4: standard pin names 2021-04-14 10:23:29 +02:00
jeromecoutant 25e85f9fcf STM32F3: standard pin names 2021-04-14 10:23:29 +02:00
jeromecoutant 63ce075fa8 STM32F2: standard pin names 2021-04-14 10:23:29 +02:00
jeromecoutant 69a7e3eeff STM32F1: standard pin names 2021-04-14 10:23:28 +02:00
jeromecoutant d21ff75e39 STM32F0: standard pin names 2021-04-14 10:23:28 +02:00
jeromecoutant 2351460ef7 STM32: replace "ARDUINO" by "ARDUINO_UNO" 2021-04-14 10:23:28 +02:00
jeromecoutant 3a772baab2 STM32: STM32_gen_PeripheralPins.py v1.20
- standard pin compatible
2021-04-14 10:23:28 +02:00
Martin Kojtal 8b8f4e52a0
Merge pull request #14521 from AnishKumarHCL/pwm_gpiopull_fix
Updated TARGET_STM32 board  pinMap_PWM table with GPIO_NOPULL
2021-04-14 09:54:22 +02:00
reme a1055f5add README update STM32F3 to CUBE V1.11.2 2021-04-14 08:19:40 +01:00
reme 285e3e2bb7 STM32F3 update drivers version to CUBE V1.11.2 2021-04-14 08:19:39 +01:00
Chandran Praveen Babu (CYSC CSS ICW SW PSW) af44532ca4 Fix Unbuffered serial enable/disable issue on Cypress kits 2021-04-13 15:33:25 -07:00
reme 283bf81d9f Readme update STM32G0 to CUBE V1.4.1 2021-04-13 13:46:51 +02:00
Martin Kojtal 291beda749
Merge pull request #14359 from harmut01/baremetal_nxp
Add bare metal support to NXP targets
2021-04-13 10:58:46 +02:00
s-bruce13 96349d7445 Removed unnecessary commented lines in PinNames.h 2021-04-12 09:49:18 -05:00
s-bruce13 d12fa879ac Revert "Removed unnecessary commented lines from PinNames.h"
This reverts commit 0adc3fd570.
2021-04-12 09:48:40 -05:00
s-bruce13 0adc3fd570 Removed unnecessary commented lines from PinNames.h 2021-04-12 09:47:46 -05:00
Martin Kojtal 38796d0a88
Merge pull request #14424 from 0xc0170/fix-wio-bg96-cellular
WIO_BG96: fix macro exclusion - use cellular
2021-04-12 16:17:54 +02:00
reme 428cd9c217 STM32G0 update drivers version to CUBE V1.4.1 2021-04-09 08:53:49 +02:00
harmut01 9c73e09b06 Add bare metal support to ARCH_PRO 2021-04-08 17:24:09 +01:00
Anish Kumar 780d7c4a00 Updated TARGET_STM32 PeripheralPins.c and PeripheralPinMaps.h Replaced GPIO_PULLUP with GPIO_NOPULL in PinMap_PWM table 2021-04-08 18:42:01 +05:30
Anish Kumar 44be594792 Modified STM32_gen_PeripheralPins.py replaced GPIO_PULLUP with GPIO_NOPULL in print_pwm function 2021-04-08 18:13:50 +05:30
Anish Kumar d8d19b186d removed pin_mode api call from pwmout_init_direct api 2021-04-08 18:13:10 +05:30
Chun-Chieh Li df4f1a3387 M487: Adjust placement of SYS_UnlockReg in WDT reset from PD patch
This adjustment has two purposes:
1.  Avoid misleading placement of SYS_UnlockReg for WDT clock setting
2.  Safer for power-down
2021-04-08 17:18:38 +08:00
Martin Kojtal 160b32ae0e
Merge pull request #14259 from rotu/G431RB
Support STM Nucleo-G431RB
2021-04-08 09:21:23 +02:00
harmut01 1c671c43ff Refactor definition of heap load region start 2021-04-07 14:27:34 +01:00
Martin Kojtal 84e5f1e03e
Merge pull request #14479 from chrJost/USB_STM32L1
STM32L1: enable USBDEVICE
2021-04-07 10:23:06 +02:00
Martin Kojtal 0075eeab6b
Merge pull request #14482 from jeromecoutant/PR_L4_SYSCLOCK
STM32L4: align all system_clock files
2021-04-07 10:22:50 +02:00
Martin Kojtal 7328e588f1
Merge pull request #14485 from boraozgen/feature/stm32-rtc-hse-review
STM32: RTC HSE support review changes
2021-04-07 09:38:44 +02:00
Martin Kojtal dce643be92
Merge pull request #14478 from jeromecoutant/PR_L1_ADC_DEEP
STM32L1 : enable ADC after deepsleep
2021-04-07 09:38:30 +02:00
Martin Kojtal 9d0bd3abd9
Merge pull request #14496 from jeromecoutant/PR_DEVICENAME
STM32: cleanup around devicename information from CMSIS pack
2021-04-07 09:05:02 +02:00
Martin Kojtal c2dae8b7eb
Merge pull request #14499 from JeanMarcR/CUBE_UPDATE
STM32F1 update drivers version to CUBE V1.8.3
2021-04-07 09:04:43 +02:00
s-bruce13 e2c2b2ba6f Fixed CMake Error
Jenkins CI cmake error
2021-04-06 14:24:38 -05:00
s-bruce13 56450aa979 Adding NXP TARGET- MIMXRT1170_EVK
Base Functionality, UART, Timers, I2C , SPI, ADC
2021-04-06 10:42:37 -05:00
Bora Özgen c16a51d87c STM32 RTC: Apply review changes for HSE support
* Remove unused code
* Fix supported target families
* Add preprocessor error for wrong LPTICKER configuration
2021-04-06 13:45:52 +02:00
reme 38922dee68 README update STM32F1 to CUBE V1.8.3 2021-04-01 16:05:41 +02:00
jeromecoutant 7b80a441f5 STM32L4: update device_name 2021-04-01 11:52:48 +02:00
jeromecoutant 941e600f77 STM32L1: update device_name 2021-04-01 11:52:47 +02:00
jeromecoutant c6a783118f STM32L0: update device_name 2021-04-01 11:52:47 +02:00
jeromecoutant 4393d241b2 STM32H7: update device_name 2021-04-01 11:52:47 +02:00
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