-
Notifications
You must be signed in to change notification settings - Fork 8.3k
STM32: fix incorrect burst length in drivers' DMA configurations #100105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mathieuchopstm
wants to merge
8
commits into
zephyrproject-rtos:main
Choose a base branch
from
mathieuchopstm:stm32_spi_burst_len_fix
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
STM32: fix incorrect burst length in drivers' DMA configurations #100105
mathieuchopstm
wants to merge
8
commits into
zephyrproject-rtos:main
from
mathieuchopstm:stm32_spi_burst_len_fix
+48
−22
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The burst length unit is bytes, not number of transfers. This had not been an issue since the DMA driver historically ignored the values, but has now become one since they are used and (most importantly for us) validated. Fixes broken 16-bit on STM32N6 series. Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
The burst length unit is bytes, not number of transfers. This had not been an issue since the DMA driver historically ignored the values, but has now become one since they are used and (most importantly for us) validated. Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
The burst length unit is bytes, not number of transfers. This had not been an issue since the DMA driver historically ignored the values, but has now become one since they are used and (most importantly for us) validated. Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
The burst length unit is bytes, not number of transfers. This had not been an issue since the DMA driver historically ignored the values, but has now become one since they are used and (most importantly for us) validated. Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
The burst length unit is bytes, not number of transfers. This had not been an issue since the DMA driver historically ignored the values, but has now become one since they are used and (most importantly for us) validated. Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
The burst length unit is bytes, not number of transfers. This had not been an issue since the DMA driver historically ignored the values, but has now become one since they are used and (most importantly for us) validated. Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
The burst length unit is bytes, not number of transfers. This had not been an issue since the DMA driver historically ignored the values, but has now become one since they are used and (most importantly for us) validated. Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
djiatsaf-st
approved these changes
Nov 27, 2025
erwango
approved these changes
Nov 27, 2025
The burst length unit is bytes, not number of transfers. This had not been an issue since the DMA driver historically ignored the values, but has now become one since they are used and (most importantly for us) validated. Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
7253af8 to
b23aea2
Compare
Contributor
Author
|
Edited commit message that made CI unhappy. |
|
gautierg-st
approved these changes
Nov 27, 2025
erwango
approved these changes
Nov 27, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: ADC
Analog-to-Digital Converter (ADC)
area: ec_host_cmd
area: I2C
area: I2S
area: I3C
area: SPI
SPI bus
area: UART
Universal Asynchronous Receiver-Transmitter
area: Video
Video subsystem
platform: STM32
ST Micro STM32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Since #99258, the
{source,dest}_burst_lengthargument is no longer ignored by thedma_stm32u5driver (notably used on STM32N6 series). Many drivers were mistakenly setting its value to 1 under the assumption that the unit was number of data-sized transfers, which is WRONG - the parameter's unit is in bytes.This means that most configurations were wrong unless byte-sized transfers were used.
Fix all drivers by setting a proper value for the
burst_lengthparameters, equal to the data size (i.e., resulting in one transfer, as originally intended).Fixes #100100.
cc @avolmat-st for video driver, @gautierg-st for ADC, ...