Commit Graph

8285 Commits (7c17693c06dd3be022b36a58e86b10520ab81ec2)

Author SHA1 Message Date
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
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
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
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
jeromecoutant fb8be8259c STM32H7 ADC : dual pad feature update 2021-06-03 10:42:35 +02: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
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