-
Notifications
You must be signed in to change notification settings - Fork 52
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
Going beyond the address space of external QUAD SPI FLASH memory. #29
Labels
bug
Something isn't working
hal
HAL-LL driver-related issue or pull-request.
internal bug tracker
Issue confirmed and logged into the internal bug tracking system
Comments
ALABSTM
added
bug
Something isn't working
hal
HAL-LL driver-related issue or pull-request.
labels
Feb 19, 2024
See also STM32CubeH7#176 |
KRASTM
added
the
internal bug tracker
Issue confirmed and logged into the internal bug tracking system
label
Feb 22, 2024
ST Internal Reference: 174336 |
Extra bytes are counted to bypass some limitation:
/* 4 Extra words (32-bits) are needed for read operation to guarantee
the last data is transferred from DMA FIFO to RAM memory */
WRITE_REG(hqspi->Instance->DLR, (data_size - 1U + 16U));
https://github.com/STMicroelectronics/stm32f4xx_hal_driver/blob/89956295d29f6b79885c0f78847558141d79d89a/Src/stm32f4xx_hal_qspi.c#L1544
пн, 9 сент. 2024 г., 13:12 KRASTM ***@***.***>:
… Hello @SimonTechv <https://github.com/SimonTechv>,
Regarding your issue, I think there is a mistake.
According to your screenshot, the value of the DLR is 0x20f, in decimal
it's 527 Bytes and you want to read the last 512 bytes of data from
address 0xfffe00. Based on the datasheet of the flash memory, and from
the address 0xfffe00 you have only 512 Bytes.
So, it's normal to get an error when receiving data from an address that
surpasses the memory address space
Please, allow me to close the issue, thank you for your comprehension.
With regards,
—
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANS5Q3N7DZIEMF4N3PKJ3KDZVVYBNAVCNFSM6AAAAABDOGOAFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZXG4YDAOBYGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hello @SimonTechv, Sorry for the last comment, it was a mistake. Issue already Confirmed. The line of code With regards, |
Thank you for the clarification.
ср, 11 сент. 2024 г., 16:32 KRASTM ***@***.***>:
… Hello @SimonTechv <https://github.com/SimonTechv>,
Sorry for the last comment, it was a mistake. Issue already Confirmed.
The line of code WRITE_REG(hqspi->Instance->DLR, (data_size - 1U + 16U));
is one of a few steps in a workaround for a hardware issue, and it's
related only to the STM32F412. So, our team is studying this topic for a
solution.
With regards,
—
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANS5Q3PIN266P5LS6I4FPIDZWBBARAVCNFSM6AAAAABDOGOAFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBTGY4DSMJWHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
hal
HAL-LL driver-related issue or pull-request.
internal bug tracker
Issue confirmed and logged into the internal bug tracking system
I ran into a problem when reading data through QUAD SPI.
I use discovery board MB1209D with STM32F412ZGT6U and 128 MBIT QUAD SPI flash NOR memory N25Q128 (Micron).
When I read the last block (subsector part of 512 bytes) of data by address 0xfffe00 from memory via DMA, I get a transmission error. I found out that this is due to the receiving amount of data and going beyond the address space in memory.
In this line 16 bytes more are read than is necessary to bypass the restriction, however, this leads to going beyond the address space of QSPI FLASH memory. Accordingly, the SPI peripheral generates a TRANSFER ERROR interrupt.
QSPI peripheral state after TE interrupt is occured:
The text was updated successfully, but these errors were encountered: