Commit Graph

8443 Commits (refactor_hal_greentea_cmake)

Author SHA1 Message Date
jeromecoutant 9a7b1dbd1c STM32WL: correct CMakeLists.txt for STM32WLE5xC 2021-07-09 09:33:12 +02:00
pennam 1da67b2da8 Add missing PBL header 2021-07-08 22:04:53 +02:00
Martino Facchin 133864a750 PortentaH7: add BLE support 2021-07-08 17:07:06 +02:00
pennam 1a0ab10e95 Temp portenta add COMPONENT_4343W_FS BLE firmware 2021-07-08 17:04:05 +02:00
byq77 9b1399283e Fix gcc_arm linker script for stm32f407xg targets 2021-07-08 16:07:52 +02:00
Martin Kojtal 0e52d4946c
Merge pull request #14663 from arduino/whd_patch_portenta
Portenta: Add support to generic COMPONENT_WHD
2021-07-08 15:54:20 +02:00
Martin Kojtal 1d5d3b054f
Merge pull request #14808 from affrinpinhero-2356/i2cTimingPerformanceSolved
driver/i2c: STM32: I2C performance issue solved.
2021-07-08 14:38:03 +02:00
Martin Kojtal 97b9754141
Merge pull request #14838 from katherrafi/set_mac_address
Eth: STM32:  Updating documentation on mbed_otp_mac_address()
2021-07-08 14:20:09 +02:00
Martin Kojtal 7350b03088
Merge pull request #14872 from hallard/STM32WLEx
Add STM32WLE5 for custom targets LORA_E5 and RAK3172
2021-07-08 13:25:24 +02:00
Martin Kojtal f937383384
Merge pull request #14843 from AnishKumarHCL/interrupt_in_multiple_gpio
InterruptIn : STM32: Implemented error catching for multiple gpio on the same  irq line
2021-07-08 13:25:10 +02:00
Martin Kojtal 3fcc8347a9
Merge pull request #14844 from AnishKumarHCL/analogout_free_implementation
Analogout free implementation for F4/F7/H7 boards
2021-07-08 13:24:50 +02:00
Dustin Crossman 4bce6471c1 Delete unnecessary assembler files (CI complains about them). 2021-07-07 10:56:58 -07:00
Mohammed Mubeen b5e785efd3 Updated can bit timing parameters (TSEG1, TSEG2) as per the ISO11898-2
standard
2021-07-07 16:55:20 +05:30
Dustin Crossman ddb92ba877 Fixup license issues. 2021-07-06 15:40:48 -07:00
Dustin Crossman a0d058dbcf Fixup CMakeLists.txt 2021-07-06 10:09:37 -07:00
Dustin Crossman 11c598d517 Add proper PDL (still version 2.2.0.7891). 2021-07-06 10:09:03 -07:00
Charles e598f5fe61 typo + moved device_name 2021-07-06 17:10:35 +02:00
Mohammed Mubeen 65a72c29c8 Added documentation for the implementation 2021-07-06 20:12:12 +05:30
Affrin Pinhero b559cec29e I2C: STM32: Upating documentation for I2C timing Algorithm
This commit modifies readme file. Descption for using
I2C timing algorithm and how to enable and disable
included.

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-07-06 19:48:36 +05:30
Charles 51cfdc2bee moved to up folder common to STM32WL 2021-07-05 16:43:44 +02:00
Charles 37814f25a7 added target stm32wle5xc 2021-07-05 12:57:33 +02:00
Charles 38eed85d5a moved system_clock.c to STM32WL up folder 2021-07-05 12:55:32 +02:00
Charles d601dd8e91 moved to STM32WL up folder 2021-07-05 12:55:14 +02:00
Charles cf7e1ebe48 moved to STM32WL up folder 2021-07-05 12:52:58 +02:00
Mohammed Mubeen 8622f66b46 Resolved review comments 2021-07-03 13:22:25 +05:30
anish-k eb06d5eb59 analogout: STM32: modified analogout_free api
removed hardcoded pins, implemented multi channel check
implemented DAC_2 initialization for H7 board
Added  #if defined DAC_CHANNEL_2
2021-07-02 21:34:24 +05:30
anish-k 59ba97f7b4 analogout: STM32: Implemented analogout_free for STM32H7 series
analogout_free implemented with multiple DAC channel usage check.
2021-07-02 18:01:12 +05:30
anish-k c22331cc03 analogout: STM32: analogout_free implementation for STM32F7
Implemented analogout_free for STM32F7 Series.
2021-07-02 17:53:58 +05:30
anish-k b52b3b6d43 analogout: STM32: analogout_free implementation for F4
Implemented analogout_free for STM32F4 family and added new
member "PinName pin" in dac_s structure.
2021-07-02 17:39:44 +05:30
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