-
Notifications
You must be signed in to change notification settings - Fork 747
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
Add octospim support for octospi #3102
Conversation
Signed-off-by: Haobo Gu <[email protected]>
Signed-off-by: Haobo Gu <[email protected]>
Signed-off-by: Haobo Gu <[email protected]>
Signed-off-by: Haobo Gu <[email protected]>
Signed-off-by: Haobo Gu <[email protected]>
Signed-off-by: Haobo Gu <[email protected]>
Signed-off-by: Haobo Gu <[email protected]>
Signed-off-by: Haobo Gu <[email protected]>
Signed-off-by: Haobo Gu <[email protected]>
I've tested this PR on stm32h7b0 + w25q64 qspi flash, worked well. But there are still limitations of current implementation:
|
Did more testing on a rm67162 qspi screen, worked too. Demo project: https://github.com/HaoboGu/eg-demo |
Hi @HaoboGu, I managed to use your branch on an stm32h735g-dk to communicate with PSRAM through the hyperbus. However, I had to use OCTOSPI2 because of how the dev kit is wired up so I think it's worth trying to figure out how to support OCTOSPI2 as well. Are you still working on this branch? |
@ninjasource Yeah, OCTOSPI2 is not support now. I had some problems when implementing it for both OCTOSPI1 and OCTOSPI2. For a temporary solution, you can change here and here to make it work for OCTOSPI2 |
Signed-off-by: Haobo Gu <[email protected]>
I've pushed a commit making it possible to support both OCTOSPI1 and OCTOSPI2. But
This problem is still there. @Dirbaio Do you have any suggestions on solving it? |
Signed-off-by: HaoboGu <[email protected]>
Signed-off-by: Haobo Gu <[email protected]>
Added a way to support both OCTOSPI1 and OCTOSPI2 |
This PR can be merged now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
Hi @HaoboGu, thanks for your work on octospim. However, I cannot find any examples I can test and your eg-demo linked above is a broken link. Do you have any examples for us to look at? |
Hey @ninjasource I just made the project public |
Thanks! I have raised an issue I encountered in your repo so as not to add noise to this closed repo. |
* feat: add octospim to ospi Signed-off-by: Haobo Gu <[email protected]> * feat: make octospim behind feature gate Signed-off-by: Haobo Gu <[email protected]> * refactor: fix fmt issue Signed-off-by: Haobo Gu <[email protected]> * refactor: fix ci failure Signed-off-by: Haobo Gu <[email protected]> * feat: add octospim reg writing code Signed-off-by: Haobo Gu <[email protected]> * feat(octospi): enable rcc for octospim at the initialization Signed-off-by: Haobo Gu <[email protected]> * fix: add octospim feature gate Signed-off-by: Haobo Gu <[email protected]> * fix: fix cfg flag Signed-off-by: Haobo Gu <[email protected]> * fix: fix rcc register on stm32l4 and stm32u5 Signed-off-by: Haobo Gu <[email protected]> * feat(ospi): support OCTOSPI2 in build.rs Signed-off-by: Haobo Gu <[email protected]> * feat(ospi): add OCTOSPI2 pin impls Signed-off-by: HaoboGu <[email protected]> * feat(ospi): support both ospi instances in stm32 OCTOSPIM Signed-off-by: Haobo Gu <[email protected]> --------- Signed-off-by: Haobo Gu <[email protected]> Signed-off-by: HaoboGu <[email protected]>
This PR adds initial support for OCTOSPIM peripheral of octospi. Current implementation just adds OCTOSPIM to octospi, and enables corresponding pins of OCTOSPIM.
Closes #3097