Initial version of the genpinctrl script. This script can be used to
automatically generate DT files with pinctrl configuration for all STM32
families using CubeMX database.
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Update Cube version for STM32H7xx series
on https://github.com/STMicroelectronics
from version v1.6.0
to version v1.7.0
Signed-off-by: Francois Ramu <francois.ramu@st.com>
Some files were missing explicit License information.
Add Apache-2.0 SPDX tag in these few cases.
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
The LL_SetFlashLatency public API is now defined for families
beyond G4, L4 and L5. In most case the private function has been
made public, in one case (H7) it's built on top of existing ones.
Signed-off-by: Giancarlo Stasi <giancarlo.stasi.co@gmail.com>
Some STM32L0 SoCs contain a USB device controller. Add the LL USB HAL
to enable USB support in Zephyr.
Signed-off-by: Andreas Sandberg <andreas@sandberg.pp.se>
Both modules ST and STM32 use the same HAS_STLIB Kconfig symbol.
This is not coherent, so rename the one used in stm32 module
as HAS_STM32LIB
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Update Cube version for STM32F2xx series
on https://github.com/STMicroelectronics
from version v1.8.0
to version v1.9.0
Signed-off-by: Francois Ramu <francois.ramu@st.com>
Update Cube version for STM32MP1xx series
on https://github.com/STMicroelectronics
from version 1.0.0
to version 1.2.0
Signed-off-by: Francois Ramu <francois.ramu@st.com>
Update Cube version for STM32F7xx series
on https://github.com/STMicroelectronics
from version v1.15.0
to version v1.16.0
Signed-off-by: Francois Ramu <francois.ramu@st.com>
Update Cube version for STM32F4xx series
on https://github.com/STMicroelectronics
from version v1.24.1
to version v1.25.0
Signed-off-by: Francois Ramu <francois.ramu@st.com>
Update Cube version for STM32H7xx series
on https://github.com/STMicroelectronics
from version v1.5.0
to version v1.6.0
Signed-off-by: Francois Ramu <francois.ramu@st.com>
Update Cube version for STM32G4xx series
on https://github.com/STMicroelectronics
from version v1.1.0
to version v1.2.0
Signed-off-by: Francois Ramu <francois.ramu@st.com>
Update Cube version for STM32WBxx series
on https://github.com/STMicroelectronics
from version v1.3.0
to version v1.5.0
Signed-off-by: Francois Ramu <francois.ramu@st.com>
Update Cube version for STM32L4xx series
on https://github.com/STMicroelectronics
from version v1.14.0
to version v1.15.1
Signed-off-by: Francois Ramu <francois.ramu@st.com>
Building with clang reports the following warnings:
stm32l0xx_hal_rcc.c.c: error: equality comparison with extraneous
parentheses [-Werror,-Wparentheses-equality]
if((sysclk_source == RCC_CFGR_SWS_MSI) )
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
Removing the extra () fixes the warning
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
Building with clang reports the following warnings:
stm32l1xx_hal_rcc.c.c: error: equality comparison with extraneous
parentheses [-Werror,-Wparentheses-equality]
if((sysclk_source == RCC_CFGR_SWS_MSI) )
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
Removing the extra () fixes the warning
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
set the AHB prescaler with correct value in case the pll
requires LL_RCC_SYSCLK_DIV_1 for HSE and HSI or MSI
Signed-off-by: Francois Ramu <francois.ramu@st.com>
Due to header reorganization, some header files are no more
used by library. Remove them to ease maintenance.
For hw_conf.h, app_conf.h should be modified to remove dependency.
Document this fix in README.
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Origin:
ST Microelectronics
https://github.com/STMicroelectronics/STM32CubeWB
Status:
version 1.3.0
Patch list:
Following files are distributed under ST License SLA0044.
For Zephyr they are made available under BSD-3 Clause.
* hw_ipcc.c
* app_common.h
* stm32_wpan_common.h
* app_conf.h
* hw_conf.h
* tl_conf.h
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Update Cube version for STM32WBxx series
on https://github.com/STMicroelectronics
from version v1.1.1
to version v1.3.0
Signed-off-by: Francois Ramu <francois.ramu@st.com>
Update Cube version for STM32G0xx series
on https://github.com/STMicroelectronics
from version v1.2.0
to version v1.3.0
Signed-off-by: Francois Ramu <francois.ramu@st.com>
Update Cube version for STM32F0xx series
on https://github.com/STMicroelectronics
from version v1.10.1
to version v1.11.0
Signed-off-by: Francois Ramu <francois.ramu@st.com>
Update Cube version for STM32F3xx series
on https://github.com/STMicroelectronics
from version v1.10.0
to version v1.11.0
Signed-off-by: Francois Ramu <francois.ramu@st.com>
Update Cube version for STM32F2XX series
from version: V1.7.0
to version: V1.8.0
Fixes following issues:
*Fix VBUS sensing deactivation
The error is detected if USART1 TX configured to PA9 and RX to PA10.
The serial cable removal stops the USB communication.
In case of VBUS sensing deactivation, erroneously
both USB_OTG_GCCFG_VBUSBSEN and USB_OTG_GCCFG_NOVBUSSENS are set in GCCFG.
Correct handling is:
- VBUS sensing deactivation: set USB_OTG_GCCFG_NOVBUSSENS in GCCFG.
- VBUS sensing activation: set USB_OTG_GCCFG_VBUSBSEN in GCCFG.
Impacted files:
ext/hal/st/stm32cube/stm32f2xx/drivers/src/stm32f2xx_ll_usb.c
ST Bug Tracker ID: 34714
*Use of (__packed uint32_t *) produces warning
Using GNU 8.2.0, (__packed uint32_t *) generates warning.
Replace with CMSIS macros __UNALIGNED_UINT32_READ and
__UNALIGNED_UINT32_WRITE.
Impacted files:
drivers/include/stm32f2xx_ll_usb.c
ST Bug tracker ID: 61324
*Fix warnings for extraneous parentheses
Using clang 7.0.1, if ((htim->State == HAL_TIM_STATE_BUSY))
generates warnings. Remove the extra parentheses
Impacted files:
drivers/src/stm32f2xx_hal_tim.c
drivers/src/stm32f2xx_hal_tim_ex.c
ST Bug tracker ID: 63615
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Update Cube version for STM32F1XX series
from version: V1.7.0
to version: V1.8.0
Includes following fixes:
*Update LSI_VALUE to 40 KHz
Impacted files:
drivers/include/stm32f1xx_ll_rcc.h
ST Bug tracker ID: 37419
*Use of (__packed uint32_t *) produces warning
Using GNU 8.2.0, (__packed uint32_t *) generates warning.
Replace with CMSIS macros __UNALIGNED_UINT32_READ and
__UNALIGNED_UINT32_WRITE.
Impacted files:
drivers/include/stm32f1xx_ll_usb.c
ST Bug tracker ID: 61323
*Fix warnings for extraneous parentheses
Using clang 7.0.1, if ((htim->State == HAL_TIM_STATE_BUSY))
generates warnings. Remove the extra parentheses
Impacted files:
drivers/src/stm32f1xx_hal_tim.c
drivers/src/stm32f1xx_hal_tim_ex.c
ST Bug tracker ID: 63614
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
For stm32 series, get the version tree found on
https://github.com/STMicroelectronics/STM32Cube
and apply patches to update module to the latest version
run with $ python ./scripts/update_stm32_package.py stm32xx
Signed-off-by: Francois Ramu <francois.ramu@st.com>
When configuring the PLL > 80MHz, an intermediate step is needed
with AHB prescaler set to 2 before setting the actual value.
Then the AHB prescaler 1 must be set, though
Signed-off-by: Francois Ramu <francois.ramu@st.com>
Since README now appears an interpreted .rst directly in github,
restructure a bit to get a nicer output.
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Some people want to access STM32Cube API directly in their
application. Explain the few steps required to do it seamlessly.
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Each Cube peripheral API _foo.h has a matching Kconfig symbol
USE_STM32_HAL_FOO. This convention is useful for automatic package
update.
Crypto API derogates from this rule, which breaks automatic update:
- API is _cryp.h
- Kconfig is USE_STM32_HAL_CRYPT
Fix this by aligning Kconfig symbol on API naming.
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This is a bug in upstream CMSIS, but I don't have any contacts to get it
fixed there.
Fixes ST Bug: 73643
Signed-off-by: Karl Palsson <karlp@etactica.com>