-
Notifications
You must be signed in to change notification settings - Fork 3k
Stm32 ospi qspi fallback support #11291
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
Stm32 ospi qspi fallback support #11291
Conversation
5c33726
to
2ebdb63
Compare
@@ -34,6 +34,9 @@ | |||
"DISCO_F769NI": { | |||
"QSPI_FREQ": "8000000" | |||
}, | |||
"DISCO_L4R9I": { | |||
"QSPI_FREQ": "84000000" |
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.
To remove as long as QSPIF is not supported ?
targets/TARGET_STM/qspi_api.c
Outdated
|
||
__HAL_RCC_OSPI2_CLK_ENABLE(); |
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.
OSPI2 clock is used there. Maybe we could add some dependency on PeriphPin table ?
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.
done and reviewed to be generic. Made changes to other families too.
@LMESTM, thank you for your changes. |
2ebdb63
to
d4eaf6f
Compare
I've appended the PR with a few clean-up and a fix to manage QSPIM configuration. |
86f3277
to
64b11c5
Compare
I just added 2 commits with extra Pins definition for L4R5 target that we have used with Jerome for testing. |
ci started |
Test run: FAILEDSummary: 2 of 4 test jobs failed Failed test jobs:
|
Known issue with CI, will restart |
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.
Tested OK with NUCLEO_L4R5ZI and QSPI memory from L475 DISCO board.
@bulislaw OSPI seems validated with STM32L4+ |
CI restarted |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
Client test restared, internal CI error |
Description
This PR adds support of QSPI driver onto STM32 targets that support OSPI IP.
This means that OSPI will be used in QSPI fallback mode.
This has been tested with DISCO_L49RI and MX25LM51245G flash memory. Because this memory supports only Single and Octal IO modes, only Single mode is being used now. Octal mode may be used when OSPI support is added to mbed.
Also as MX25LM51245G does not support SFDP, only QSPIF tests have been passed, Block device tests can't as of now (see question in #11287 )
This PR depends on #11290
Pull request type
Reviewers
@jeromecoutant @bulislaw @MarceloSalazar
Release Notes
Test result: