Skip to content
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

STM32U5: add HSPI support #3667

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

williams-one
Copy link
Contributor

This PR adds partial support for HSPI on the STM32U5 family. It also includes an example showing how to use the on-board flash on the STM32U5G9J-DK2 demo board in both OCTA-DTR and memory mapped mode.
The implementation has been modeled after the OSPI interface.

The support is partial since the inner structures define all the 16 lines of the peripheral. But the public interface only exposes constructors for Single SPI and Octa SPI (both blocking and non blocking), since these are the only two modes that I was actually able to test on my demo board.
In principle I could have added the implementation for all the other modes, but they would have been untested... So I chose not to :)

I have added this as a reminder at the beginning of the file.
image

Please let me know if this is OK for you

@williams-one williams-one force-pushed the stm32u5-add-hspi-support branch from 6c7458c to 3afce1e Compare December 20, 2024 08:52
@williams-one
Copy link
Contributor Author

I have updated DummyCycles configuration according to the driver taken from CubeMX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant