Skip to content

Conversation

@josuah
Copy link
Contributor

@josuah josuah commented Jun 23, 2025

Commit 64149e4 added an #if defined() for configuring DMA channels differently depending on SOC family of the STM32 HAL, but did not include the STM32H7 family in the same group as STM32F7. Fix it by adding the STM32H7 in the same #ifdef filter.

Fixes #92015

@josuah josuah requested a review from avolmat-st June 23, 2025 10:19
@josuah josuah added platform: STM32 ST Micro STM32 area: Video Video subsystem labels Jun 23, 2025
@josuah
Copy link
Contributor Author

josuah commented Jun 23, 2025

I do not know the internals of the STM32 HAL enough to tell if this is the right approach.

hdma.Init.Mode = DMA_CIRCULAR;
hdma.Init.Priority = DMA_PRIORITY_HIGH;
#if defined(CONFIG_SOC_SERIES_STM32F7X)
#if defined(CONFIG_SOC_SERIES_STM32F7X) || defined(CONFIG_SOC_SERIES_STM32H7X)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the filtering should be done by DMA compatible instead of series.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it sounds like this would avoid forgetting platforms accidentally.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it suitable to keep the current bugfix and follow-up with this issue to avoid a change just before the release?

Commit 64149e4 added an "#if defined()"
for configuring DMA channels differently depending on SOC family of the
STM32 HAL, but did not include the STM32H7 family in the same group as
STM32F7. Fix it by adding the STM32H7 in the same #ifdef filter.

Fixes zephyrproject-rtos#92015

Signed-off-by: Josuah Demangeon <me@josuah.net>
@josuah josuah force-pushed the pr_fix_dcmi_dma branch from c29be80 to 890949f Compare June 27, 2025 11:19
@sonarqubecloud
Copy link

@josuah
Copy link
Contributor Author

josuah commented Jun 27, 2025

Force-push:

  • Rebased on main for easier UVC testing.

@danieldegrasse danieldegrasse merged commit a1ef239 into zephyrproject-rtos:main Jun 27, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Video Video subsystem platform: STM32 ST Micro STM32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

drivers: video: dcmi: DMA error message on capture sample

6 participants