Commit Graph

8314 Commits (971d0dd3bdbe1c633d1693f60a0f5c988c1ee506)

Author SHA1 Message Date
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
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
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