-
Notifications
You must be signed in to change notification settings - Fork 3k
DISCO_F769NI has QSPI timeouts #15108
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
Comments
Hi
Could you try to remove the To be sure ? Thx |
Hi, yes my patch mbed_fix.patch does that and seems to fix the issue or make it harder to reproduce. |
But both remove are needed, or only 1 ? |
I'm not sure, I removed all of them I could see.
Should I try seeing if only one is needed?
…On Mon, Sep 27, 2021 at 04:59:13AM -0700, Jerome Coutant wrote:
But both remove are needed, or only 1 ?
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#15108 (comment)
|
Uncommenting EITHER of those seems to fix the issue. |
I just want to note that with my fix I haven't seen this pop up again. It's quite possible there's been some silent corruption, but it seems like it's fixed it. I've opened a bug upstream. |
Great In parallel, you can propose a patch in mbed-os, I will approve it as soon as STMicroelectronics/STM32CubeF7#52 is confirmed |
As it's been almost a year without any update, I'll close this as won't fix. |
On the STM32769NI at least this patch is required for stable QSPI use. Enable it uncondtionally in case other boards need it too. Further discussions: ARMmbed#10049 ARMmbed#15108 STMicroelectronics/STM32CubeF7#52 STMicroelectronics/STM32CubeF7#82
On the STM32769NI at least this patch is required for stable QSPI use. Enable it uncondtionally in case other boards need it too. Further discussions: ARMmbed#10049 ARMmbed#15108 STMicroelectronics/STM32CubeF7#52 STMicroelectronics/STM32CubeF7#82
* STM32F7: Unconditionally enable QSPI workarounds On the STM32769NI at least this patch is required for stable QSPI use. Enable it uncondtionally in case other boards need it too. Further discussions: ARMmbed#10049 ARMmbed#15108 STMicroelectronics/STM32CubeF7#52 STMicroelectronics/STM32CubeF7#82 * QSPIF: Attempt 4-byte addressing on Macronix chips mbed-os PR 11531 introduced 4-byte addressing in the QSPIF block device: ARMmbed#11531 During testing it was found that this code broke on the NRF52840_DK and DISCO_F769NI. The NRF52840_DK controller seems unable to handle 4-byte addressing at all and has been disabled entirely in another code section. The DISCO_F769NI breakage was attributed to the flash chip but after more research I believe this is related to the QSPI controller, not the 4-byte addressing itself. Now that the QSPI controller has a workaround, enable 4-byte addressing again and hope it works fine this time.
On the STM32769NI at least this patch is required for stable QSPI use. Enable it uncondtionally in case other boards need it too. Further discussions: ARMmbed#10049 ARMmbed#15108 STMicroelectronics/STM32CubeF7#52 STMicroelectronics/STM32CubeF7#82
Description of defect
When reading from a LittleFSv2 filesystem, reads will fail sometimes.
Adding tracing or block device slicing causes this issue to become less pronounced.
Here's an example error with tracing (and a printf in HAL_QSPI_* functions):
(times are added by grabserial)
Target(s) affected by this defect ?
32F769IDISCOVERY
Toolchain(s) (name and version) displaying this defect ?
arm-none-eabi- 11.2.0 from Arch Linux
arm-none-eabi- 10.2.1 from Arch Linux User Repository
mbed-cli installed from pip
What version of Mbed-os are you using (tag or sha) ?
mbed-os-6.14.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-cli from pip, so 1.10.5
See toolchains reported earlier
How is this defect reproduced ?
Run the LittleFS example with the filesystem changed to LittleFSv2. Keep rebooting the board until failure.
The testing setup we use is this:
main.cpp
target.json
hal_log.patch
This bug seems fairly similiar to #10049
Re-applying the changes to 5c872a4 as mbed_fix.patch seems to fix the issue. Maybe the HAL needs to define QSPI1_V1_0 for the 32F769NI? Or maybe it's a false positive.
The text was updated successfully, but these errors were encountered: