Commit Graph

303 Commits

Author SHA1 Message Date
Francois Ramu c61febd083 stm32cube/common_ll: Update README with latest versions
Update packages versions.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-04-02 08:56:46 -05:00
Francois Ramu 9576a09ada stm32cube: update stm32mp1 to version V1.4.0
Update Cube version for STM32MP1xx series
on https://github.com/STMicroelectronics
from version v1.2.0
to version v1.4.0

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-04-02 08:56:46 -05:00
Francois Ramu 0450703a7d stm32cube: update stm32h7 to version V1.9.0
Update Cube version for STM32H7xx 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>
2021-04-02 08:56:46 -05:00
Francois Ramu 10c19f34c2 stm32cube: update stm32g0 to version V1.4.1
Update Cube version for STM32G0xx series
on https://github.com/STMicroelectronics
from version v1.4.0
to version v1.4.1

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-04-02 08:56:46 -05:00
Francois Ramu b2a3a44357 stm32cube: update stm32f4 to version V1.26.0
Update Cube version for STM32F4xx series
on https://github.com/STMicroelectronics
from version v1.25.2
to version v1.26.0

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-04-02 08:56:46 -05:00
Francois Ramu 2219f386e8 stm32cube: update stm32f7 to version V1.16.1
Update Cube version for STM32F7xx series
on https://github.com/STMicroelectronics
from version v1.16.0
to version v1.16.1

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-04-02 08:56:46 -05:00
Francois Ramu 8599539184 stm32cube: update stm32g4 to version V1.4.0
Update Cube version for STM32G4xx series
on https://github.com/STMicroelectronics
from version v1.3.0
to version v1.4.0

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-04-02 08:56:46 -05:00
Francois Ramu e9cd3edccf stm32cube: update stm32l4 to version V1.17.0
Update Cube version for STM32L4xx series
on https://github.com/STMicroelectronics
from version v1.16.0
to version v1.17.0

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-04-02 08:56:46 -05:00
Francois Ramu ca7ae02436 stm32cube: update stm32l5 to version V1.4.0
Update Cube version for STM32FL5xx series
on https://github.com/STMicroelectronics
from version v1.3.1
to version v1.4.0

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2021-04-02 08:56:46 -05:00
Martin Jäger e5090a6fd1 dts/st: Add HRTIM signals
New batch of pinctrl.dtsi files including HRTIM signals

Signed-off-by: Martin Jäger <martin@libre.solar>
2021-03-19 09:28:07 +01:00
Martin Jäger 802fef2e7d scripts/genpinctrl: Add HRTIM signals
Add signals generation for high-resolution timer (HRTIM).

HRTIM is not available on F1 targets.

Signed-off-by: Martin Jäger <martin@libre.solar>
2021-03-19 09:28:07 +01:00
Erwan Gouriou 50283e0438 stm32cube/common_ll: Update REAMDE with latest versions
Update packages versions.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-03-03 12:12:58 -06:00
Erwan Gouriou 12142ce39b stm32cube: update stm32f1 to version V1.8.3
Update Cube version for STM32F1xx series
on https://github.com/STMicroelectronics
from version v1.8.2
to version v1.8.3

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-03-03 12:12:58 -06:00
Erwan Gouriou 1b4c40b8f6 stm32cube: update stm32f2 to version V1.9.2
Update Cube version for STM32F2xx series
on https://github.com/STMicroelectronics
from version v1.9.1
to version v1.9.2

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-03-03 12:12:58 -06:00
Erwan Gouriou 8f287a5788 stm32cube: update stm32f3 to version V1.11.2
Update Cube version for STM32F3xx series
on https://github.com/STMicroelectronics
from version v1.11.1
to version v1.11.2

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-03-03 12:12:58 -06:00
Erwan Gouriou 06382a9968 stm32cube: update stm32l0 to version V1.12.0
Update Cube version for STM32L0xx series
on https://github.com/STMicroelectronics
from version v1.11.3
to version v1.12.0

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-03-03 12:12:58 -06:00
Erwan Gouriou 6ba6cdca91 stm32cube: update stm32f4 to version V1.25.2
Update Cube version for STM32F4xx series
on https://github.com/STMicroelectronics
from version v1.25.1
to version v1.25.2

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-03-03 12:12:58 -06:00
Erwan Gouriou 6773ea7c88 stm32cube: update stm32f0 to version V1.11.2
Update Cube version for STM32F0xx series
on https://github.com/STMicroelectronics
from version v1.11.1
to version v1.11.2

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-03-03 12:12:58 -06:00
Erwan Gouriou 32e61c2ab9 scripts: update_sm32_package: Fix issue with common_ll directory
When running ./update_stm32_package.py, script breaks due to
unexpected presence of common_ll/ under stm32cube/ .
Skip update when this directory is parsed.

Additionally, update README to avoid recurrent issue when using
the script.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-02-18 13:52:00 -06:00
Thomas Stranger 9a069a55bd stm32cube: add missing include guards for stm32g0xx_hal_hcd.h
The content of stm32g0xx_hal_hcd.h should be included only
on devices where the usb peripheral is available,
but this is not the case in STM32CubeG0 v1.4.0 release.
This commit fixes that issue.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2021-02-18 09:30:12 -06:00
Thomas Stranger 0cdf42926c stm32cube: generic ll headers STM32CubeG0 v1.4.0 update
Adds includes added in STM32CubeG0 1.4.0 update.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2021-02-18 09:30:12 -06:00
Thomas Stranger c8abeefc9c stm32cube: update stm32g0 to version V1.4.0
Update Cube version for STM32G0xx series
   on https://github.com/STMicroelectronics
   from version v1.3.0
   to version v1.4.0

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2021-02-18 09:30:12 -06:00
Alexandre Bourdiol 8eb12e4466 dts: pinctrl: add stm32wlxx support
Add stm32wlxx support.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-02-16 07:55:31 -06:00
Alexandre Bourdiol 2bc79045f9 scripts/genpinctrl: add STM32WL support
Update script to support STM32WL

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-02-16 07:55:31 -06:00
Alexandre Bourdiol 402e2ca996 stm32cube: common_ll: Add stm32wlxx common ll support
Add stm32wlxx support.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-02-16 07:55:31 -06:00
Alexandre Bourdiol 4aec3334ee stm32cube: Add stm32wlxx support STM32Cube HAL/LL
Add stm32wlxx STM32Cube HAL/LL version v1.0.0

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2021-02-16 07:55:31 -06:00
Erwan Gouriou cc8731dba4 dts/st: Add QUADSPI signals
New batch of pinctrl.dtsi files including QUADSPI signals

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-01-13 11:30:38 -06:00
Erwan Gouriou 583799b640 scripts/genpinctrl: Add QUADSPI signals
Add signals generation for QUADSPI.
QSPI is not available on F1 targets.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-01-13 11:30:38 -06:00
Erwan Gouriou 5a10f27be1 lib/stm32wb: hci: Update lib to V1.9.0 Cube version
Tested with 1.8 and 1.9 binary

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-12-10 09:06:32 -06:00
Erwan Gouriou c1dee8527e lib/stm32wb: hci: Update lib to V1.8.0 Cube version
Tested with 1.8 binary

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-12-10 09:06:32 -06:00
Erwan Gouriou c8ee94175f lib/stm32wb: hci: Update lib to V1.7.0 Cube version
Tested with 1.7 binary

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-12-10 09:06:32 -06:00
Erwan Gouriou 1447f22fbb lib/stm32wb: hci: Update lib to V1.6.0 Cube version
Tested with 1.6 and default binary

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-12-10 09:06:32 -06:00
Gerard Marull-Paretas f0e1139812 readme: update pinctrl instructions
Update pinctrl instructions to cover STM32 Open Pin Data changes.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-12-03 08:39:09 -06:00
Gerard Marull-Paretas 7bd7d8e49a dts: generate with STM32 open pin data
Re-generate pinctrl files using STM32 open pin data. No changes are
present since data is based on the same CubeMX version.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-12-03 08:39:09 -06:00
Gerard Marull-Paretas 79a847bf2b scripts: tests: update genpinctrl tests
Update genpinctrl unit tests to match latest changes.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-12-03 08:39:09 -06:00
Gerard Marull-Paretas cfa91174ff scripts: genpinctrl: use STM32 open pin data
Change script to require STM32 Open Pin Data as input. README file is
now autogenerated so that it will always include the STM32 Open Pin Data
commit used for generation.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-12-03 08:39:09 -06:00
Gerard Marull-Paretas c8e88fd73e dts: update pinctrl files to latest cubemx
Update pinctrl files based on CubeMX 6.1.0 release.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-11-23 08:48:33 -06:00
Gerard Marull-Paretas 77b7692fac scripts: genpinctrl: remove fmc mode
Mode is not required now, and in this case it causes mode detection
problems when specified.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-11-23 08:48:33 -06:00
Gerard Marull-Paretas 87c1cd3167 dts: update files with FMC signals
Add generated FMC peripheral signals.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-11-23 11:39:45 +01:00
Gerard Marull-Paretas e999fb82f4 scripts: genpinctrl: add configuration for FMC signals
Add Flexible Memory Controller (FMC) signals. Only available on some
non-F1 series.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-11-23 11:39:45 +01:00
Erwan Gouriou fadf64171c dts: New set of -pinctrl.dtsi with "additional functions"
This new set of files includes "additional functions"
analog signals as defined in reference manuals.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-11-06 06:33:37 -06:00
Erwan Gouriou df82a758cb scripts/tests: Update tests following new algo
It is now possible that mode is not provided for non-F1 series
configs.
On F1 series ADC1_IN0 could be af 0.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-11-06 06:33:37 -06:00
Erwan Gouriou 0f855853fe scripts/genpinctrl: Remove mode for default (non-F1) config
Due to inference of mode for default configurations, mode
should not be set unless it specifies a specific signal variant.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-11-06 06:33:37 -06:00
Erwan Gouriou 634a286b27 scripts/genpinctrl: Add generation of additional functions
For non-F1 series:
Add generation of additional functions by inferring mode based
on AF detection instead of the mode value filed in config file.
This allows to detect that a signal should use 'analog' mode
when no AF function is associated to it.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-11-06 06:33:37 -06:00
Alexandre Bourdiol 4304374c39 scripts: serie_update.py: add systematic compilation of '_hal_rcc_ex.c'
Add systematic compialtion of '..._hal_rcc_ex.c' in 'CMakeLists.txt'
generation. There is more and more dependence of HAL IP to
'..._hal_rcc_ex.c'

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2020-11-05 22:06:47 -06:00
Alexandre Bourdiol 00ba06a3c7 scripts: fully redesign STM32Cube update scripts
Define class Stm32SerieUpdate
Use Pathlib instead of os.path
Add CLI option to provide directory path where to clone
STM32Cube repo (-r <repo_path>)
Reformat README.rst
Add *.pyc to .gitignore
Refactor variable naming (mainly paths),
* to be fully compilant with PEP8
* to be more understandable
* to simplify maintenance
Usage changed. Basic usage:
* update a single serie:
  'python3 update_stm32_package.py -s <stm32_serie>'
* update all serie at once:
  'python3 update_stm32_package.py

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
2020-11-05 22:06:47 -06:00
Gerard Marull-Paretas a07d3af971 readme: update LL API usage instructions
Reference the newly introduced generic LL headers.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-11-05 22:00:15 -06:00
Gerard Marull-Paretas 83a33ab973 scripts: genllheaders: add test to check generated headers
Add a test to check that generated output is correct.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-11-05 22:00:15 -06:00
Gerard Marull-Paretas 4925a4f84f stm32cube: initial batch of generic LL headers
Initial batch of auto-generated generic LL headers.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-11-05 22:00:15 -06:00
Gerard Marull-Paretas 7827cf1b6c scripts: genllheaders: add script to generate common LL headers
The script is able to generate common LL headers which can be used in
both Zephyr and applications to make it easier to create family
independent code.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2020-11-05 22:00:15 -06:00