Skip to content

stm32/spi.c: Use non-DMA transfer for STM32F7 MCUs.#13622

Closed
robert-hh wants to merge 1 commit into
micropython:masterfrom
robert-hh:stm32_spi_patch
Closed

stm32/spi.c: Use non-DMA transfer for STM32F7 MCUs.#13622
robert-hh wants to merge 1 commit into
micropython:masterfrom
robert-hh:stm32_spi_patch

Conversation

@robert-hh
Copy link
Copy Markdown
Contributor

This is a different patch for issue #13471, changing spi.c. For STM32F7xx MCUs it does not use DMA when source and destination address are identical.

The reason issue #13471 is yet not found. The code seems to set up DMA properly, and sometimes it even works.

When source and destination are identical, using DMA for SPI transfer
fails. See issue micropython#13471. The reason is yet found. This patch uses
non-DMA transfer for F7 MCUs, if source and destination are identical.

Signed-off-by: robert-hh <robert@hammelrath.com>
@robert-hh
Copy link
Copy Markdown
Contributor Author

Fixed by #13717

@robert-hh robert-hh closed this Feb 21, 2024
@robert-hh robert-hh deleted the stm32_spi_patch branch March 8, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants