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
jeromecoutant
cfd86882d3
STM32H7 astyle
2021-05-25 14:45:52 +02:00
reme
00d6093ed6
STM32H7 update drivers version to CUBE V1.9.0
2021-05-25 13:38:23 +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
jeromecoutant
81dc8f8605
STM32: correct __cplusplus brackets in ci2c_device.h
2021-05-24 14:47:05 +02: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
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
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
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
jeromecoutant
68b620bdc2
STM32H7: standard pin names
2021-04-14 10:30:03 +02: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
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
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
2322f1dd7a
Remove unused NUCLEO_H743ZI 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
George Psimenos
885cdef5f7
Add standard pin-names validation script & tests
2021-03-18 17:01:53 +00: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
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
Ladislas de Toldi
8361fda30f
STM32H7 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS
2021-02-25 16:16:37 +01:00
Martin Kojtal
1dd411268b
Merge pull request #14030 from arduino/i2c_stm32_wrong_clock
...
STM32H7: Compute I2C timing according current I2C clock source
2021-02-15 14:38:11 +00:00
Robert Walton
f2f927ebac
Fix NUCLEO_H743ZI2 target
2021-02-15 11:05:07 +00:00
Robert Walton
e8227f5be7
Fix PORTENTA_H7_xx targets
2021-02-11 09:33:21 +00:00
Robert Walton
6a737ac58d
Fix DISCO_H747I_xx targets
2021-02-11 09:33:21 +00:00
Martin Kojtal
fdef59fc10
CMake STM32H7: fix disco m4/m7 targets
2021-02-10 15:32:49 +00:00
Martin Kojtal
6bf459e3ce
CMake STM32: fix mbed-stm linking libs names
2021-02-10 12:24:10 +00:00
Martin Kojtal
ef98060d94
CMake STM32: fix missed targets with prefix
2021-02-10 12:14:49 +00:00
Martin Kojtal
b3181a102c
CMake STM32: fix search and replace errors
2021-02-10 09:32:55 +00:00
Martin Kojtal
544e5b94c3
CMake STM32: fix targets naming
...
Follow the naming for other CMake targets, using prefix mbed-, lower case with dashes
2021-02-09 17:07:44 +00:00
pennam
dc2d8607a3
Fixed __HAL_RCC_GET_I2C4_SOURCE() if RCC_VER_2_0 is used
2021-02-05 09:10:42 +01:00
Robert Walton
d9e184b6c6
cmake: Refactor ST targets
...
Refactor all ST targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.
A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-04 15:26:36 +00:00
pennam
d059feefe0
Added i2c_device.c to CMakeLists.txt
2021-02-03 15:18:33 +01:00
pennam
d968b17e76
code style fix
2021-02-03 14:18:07 +01:00
pennam
7544f7ef24
Use the proper clock source for any I2C instance
2021-02-01 09:13:21 +01:00
pennam
28a3475c5c
STM32: Compute I2C timing according current I2C clock source and required I2C clock
2021-01-31 14:02:01 +01:00
Martin Kojtal
f7d1f18a80
Merge pull request #14144 from sstaub/STM32-Arduino-Pinnames
...
Update for Arduino Pinnames
2021-01-20 08:34:56 +00:00
Martin Kojtal
95a524ae25
Merge pull request #14145 from arduino/config_sd_transceiver
...
STM32H7: disable uSD transceiver
2021-01-18 08:49:02 +00:00
Martin Kojtal
aef93ca7c9
Merge pull request #14020 from pea-pod/stm-spi-more-bits
...
Add SPI bitwidths to ST targets where supported
2021-01-15 10:01:28 +00:00
pennam
df4e397004
STM32H7: disable uSD transceiver
2021-01-13 11:13:15 +01:00
Stefan Staub
c3dca94b78
Update for Arduino Pinnames
2021-01-12 22:43:42 +01:00
pea-pod
e1c754b179
Add SPI bitwidths to ST targets where supported
2021-01-11 07:53:07 -06:00
Martino Facchin
62b6cc9a05
cmake: STM32H7: enable PORTENTA* target
2021-01-05 14:49:37 +01:00
Martino Facchin
26f758d83c
cmake: STM32H7: fix stm32h747 targets
...
This needs to be defined for "final" targets not contained in their processor subdirectory
2021-01-04 18:04:03 +01:00
Martino Facchin
eaa3b0f285
PORTENTA_H7: use default linker/startup scripts
2020-12-11 10:11:55 +01:00
Martino Facchin
5b91a00da3
STM32H747_CM4: add RAM_D3 memory section
2020-12-11 10:11:55 +01:00
Martino Facchin
a7a6f2a2c5
[Portenta] Add Cmake rules
...
Completes #13915
2020-12-11 10:11:54 +01:00
Martino Facchin
84790a038a
Add SPDX-License
2020-12-11 10:11:54 +01:00
Martino Facchin
7765f39ca3
Fix missing licenses for Arduino original code
2020-12-11 10:11:54 +01:00
pennam
f665f1d391
Portenta: enable ETH power supply
2020-12-11 10:11:53 +01:00
Martino Facchin
3d2d683dee
Add Arduino Portenta H7 target
2020-12-11 10:11:53 +01:00
Martino Facchin
ae35c887f3
STM32H747xI: allow overriding SetSysClock
2020-12-11 10:11:51 +01:00
jeromecoutant
cc90ec9096
STM32H7: system power supply configuration
2020-12-04 10:52:59 +01:00
Martin Kojtal
b5b0cfb2c6
STM32: fix H7 target definition in sct files
2020-11-25 14:12:26 +00:00
Martin Kojtal
fc16d2bae7
STM: fix ARMClang sct files, using proper -E command
...
This is required for ARMClang, otherwise there is an error with unknown command.
2020-11-25 13:35:36 +00:00
Martin Kojtal
ced4aa6e2d
Merge pull request #13939 from jeromecoutant/PR_LSEDRIVE
...
STM32: LSE DRIVE feature update
2020-11-24 14:13:52 +00:00
Martin Kojtal
a1fc9cdad5
Merge pull request #13915 from 0xc0170/cmake-stm32
...
CMake: add all TARGET_STM targets
2020-11-24 14:09:28 +00:00
Martin Kojtal
59c03e1e75
Merge pull request #13914 from JeanMarcR/FLASH_API
...
STM32 FLASH API : add critical sections
2020-11-24 14:08:52 +00:00
jeromecoutant
29af76fcca
STM32: LSE DRIVE feature update
2020-11-20 17:31:26 +01:00
reme
16e63dc108
STM32 FLASH API : add critical sections
...
See PR #13802 (for F4 board)
Concerned boards are
STM32F0
STM32F1
STM32F2
STM32F3
STM32F4
STM32F7
STM32G0
STM32G4
STM32H7
STM32L0
STM32L1
STM32L4
STM32L5
Adding test of return code of HAL_FLASH_Lock() function
Adding board STM32F4
Running AStyle
2020-11-20 08:03:24 +00:00
Martin Kojtal
4c115a5c8d
CMake: fix STM32 cmsis include
2020-11-17 16:30:37 +00:00
Martin Kojtal
80161f59ca
CMake: add STM32H7 targets
2020-11-17 15:32:24 +00:00
jeromecoutant
3697167b73
STM32: add OSPI capability
...
PeripheralPins.c and PinNames.h files
generated by STM32_gen_PeripheralPins.py v1.17
2020-11-10 18:37:51 +01:00
jeromecoutant
379182299d
STM32H7 readme update
2020-10-20 13:10:59 +02:00
jeromecoutant
04c8ff91d4
STM32H7: new target NUCLEO_H7A3ZI_Q
2020-10-20 13:10:59 +02:00
jeromecoutant
1e2aacd373
STM32H7: create MCU_STM32H7A3xIQ
2020-10-20 13:10:59 +02:00
jeromecoutant
3f843d55ed
STM32H7: readme update
2020-10-20 08:19:28 +02:00
jeromecoutant
2ccf534aaa
STM32H7: fix ADC internal channels
2020-10-20 08:19:27 +02:00
jeromecoutant
e322870219
STM32H7: FLASH update
2020-10-20 08:19:27 +02:00
jeromecoutant
f0b7e8b98c
STM32H7: update target specific files with Cube-1.8
...
- startup files pdated from Cube
- all SetSysClock aligned and checked
- license header updated
2020-10-20 08:19:16 +02:00
jeromecoutant
13df49e315
STM32H7: STM32Cube_FW_H7_V1.8.0
...
https://github.com/STMicroelectronics/STM32CubeH7
2020-10-20 08:18:21 +02:00
Harrison Mutai
4fad1112e5
Add SPDX license identifier to Arm files
...
Add license identifier to files which Arm owns the copyright to,
and contain either BSD-3 or Apache-2.0 licenses. This is to address
license errors raised by scancode analysis.
2020-10-15 10:47:27 +01:00
Dmitriy Isaev
8597f6ae12
Removed excess space simbol. Also runtime config check changed to compile time check.
2020-09-21 20:17:45 +03:00
Dmitriy Isaev
3f83163a63
Fixed system clock setup for XTAL and/or internal source on stm32f743 chips.
2020-09-20 16:26:25 +03:00
Jaeden Amero
612b148fd4
stack: armc: Workaround config passing bug
...
Workaround a bug where the boot stack size configuration option is not
passed on to armlink, the Arm Compiler's linker. Prefer
MBED_CONF_TARGET_BOOT_STACK_SIZE if present, as this is what the
configuration system should provide. Fall back to MBED_BOOT_STACK_SIZE
if MBED_CONF_TARGET_BOOT_STACK_SIZE is not defined, as in the case of
buggy tools. If both MBED_CONF_TARGET_BOOT_STACK_SIZE and
MBED_BOOT_STACK_SIZE are not defined, then we fall back to a hard-coded
value provided by the linkerscript. See
https://github.com/ARMmbed/mbed-os/issues/13474 for more information.
2020-09-10 10:08:38 +01:00
Jaeden Amero
39e69d328d
Use boot stack size from config system
...
To allow overriding of the boot stack size from the Mbed configuration
system, consistently use MBED_CONF_TARGET_BOOT_STACK_SIZE rather than
MBED_BOOT_STACK_SIZE.
Fixes #10319
2020-09-10 10:08:38 +01:00
jeromecoutant
b65afe028e
STM32H7 ADC: clock selection lost after deepsleep
2020-09-08 11:40:02 +02:00
jeromecoutant
02c79e8603
STM32H7 ADC: No MultiMode configuration needed for ADC2
2020-09-01 17:52:13 +02:00
Rajkumar Kanagaraj
2add7064ec
Update astyleignore and source code comment
2020-07-27 10:04:01 -07:00
jeromecoutant
b4d31ae863
STM32H7: correct Ethernet issue in baremetal
2020-06-17 18:39:34 +02:00
Martin Kojtal
0614e92c5b
Merge pull request #13083 from jeromecoutant/PR_H7_CUBE170
...
STM32H7 update drivers version to CUBE V1.7.0
2020-06-16 13:45:42 +02:00
jeromecoutant
048f454a5a
STM32H7: remove GENERIC_H745I
2020-06-08 15:33:42 +02:00
jeromecoutant
561f8d48bf
STM32H7 STM32Cube FW V1.5.0 => V1.7.0
2020-06-08 14:33:10 +02:00
jeromecoutant
9936a53bd1
STM32H7 STM32Cube FW V1.5.0 => V1.7.0: HAL Driver part
2020-06-08 14:33:09 +02:00
jeromecoutant
21f262b5c3
STM32H7 STM32Cube FW V1.5.0 => V1.7.0: CMSIS part
2020-06-08 14:33:09 +02:00
jeromecoutant
7d181c1bf7
STM32H7: directory restructuration
...
- only files move
- sometimes files rename
+ targets.json update
2020-06-08 14:33:08 +02:00
jeromecoutant
10a5b97396
STM32H7: NUCLEO_H743ZI2 pins update
2020-06-05 16:26:33 +02:00
jeromecoutant
1484ac0859
STM32H7: DISCO_H747I pins update
2020-06-05 16:26:23 +02:00
jeromecoutant
b289d5a08f
STM32H7: enable dual analogic pad
2020-06-05 16:26:22 +02:00
jeromecoutant
538552adea
STM32H7 ADC issue correction
2020-06-05 16:26:22 +02:00
Martin Kojtal
59df4efaac
Merge pull request #13022 from jeromecoutant/PR_BSP
...
STM32: add weak TargetBSP_Init function
2020-06-05 16:01:25 +02:00
Martin Kojtal
8911f96c1b
Merge pull request #13014 from jeromecoutant/PR_H7CM4
...
DISCO_H747I_CM4 is supporting now hex format
2020-06-04 15:23:26 +02:00
jeromecoutant
76135d0820
STM32: add weak TargetBSP_Init function
2020-05-27 16:49:54 +02:00
jeromecoutant
876125ad49
DISCO_H747I_CM4 is supporting now hex format
...
- minimum STLink version: V3J7M2
2020-05-25 11:34:40 +02:00
jeromecoutant
9b819c7f8b
STM32H7 baremetal support
2020-05-18 17:27:32 +02:00
jeromecoutant
c96eb2cd0e
STM32 rename TOOLCHAIN_ARM_STD into TOOLCHAIN_ARM
2020-05-15 10:41:28 +02:00
jeromecoutant
303752ad84
STM32 remove all TOOLCHAIN_ARM_MICRO
2020-05-15 09:37:40 +02:00
George Beckstein
5087b6da4e
Moved GENERIC_H745I_CM* targets into parent target folder
2020-04-30 09:27:26 -04:00
George Beckstein
5dcc49d9f5
Change structure so custom targets may define their own linker scripts
2020-04-30 09:24:02 -04:00
jeromecoutant
1877b68869
STM32H745 : creation of GENERIC target
...
Goal is to enable compilation in CI
2020-04-30 09:24:02 -04:00