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

Issues with MT25QL512 #5

Open
albertomercurio opened this issue Jan 26, 2021 · 3 comments
Open

Issues with MT25QL512 #5

albertomercurio opened this issue Jan 26, 2021 · 3 comments

Comments

@albertomercurio
Copy link

albertomercurio commented Jan 26, 2021

Hello,
i followed this guide several times, i correctly set my MT25L128, now i want to set MT25QL512, however i does not work properly.
When i program the flash memory through the Programmer, the number are shifted by one byte, like in this picture.
I copied and pasted the entire driver but it doen't work. The only different parameters are the CubeMX settings. I used:

  1. prescaler = 2
  2. FIFO = 1
  3. No sample shifting
  4. Flash size = 25
  5. CS High Time = 2
  6. Clock Mode = LOW
  7. Flash ID = 1
  8. Dual Flash = Disabled
@rsankar1996
Copy link

Hi @albertomercurio, are you still facing the issue?. I had faced same issue with MT25QL512 drivers, but solved after changing dummy cycle parameter inside function uint8_t CSP_QSPI_EnableMemoryMappedMode(void). Currently it will be set to 10, try changing to 8 and see the result.

What I followed for solving this issue:

You can get device datasheet from: mt25ql512 datasheet

In the driver code, command-address-data is set 1-1-4 which is for extended SPI, and dummy cycle set for 10 which is for Quad spi mode (Page 37 in datasheet). As per datasheet, dummy cycle config for extended SPI should be 8.

@EmbeddedAyoub
Copy link

Hello Guys,

I am having an issue with the MT25QL512 embedded in the STM32H750_DK. I tried the same code from ST MOOC but didn't work, I tried also all possible configurations but no news. Do you have an idea what could be the issue? BTW, my problem is that I can't communicate with the Memory.

Thanks,
Ayoub

@milom
Copy link

milom commented Nov 28, 2022

Hi @albertomercurio, are you still facing the issue?. I had faced same issue with MT25QL512 drivers, but solved after changing dummy cycle parameter inside function uint8_t CSP_QSPI_EnableMemoryMappedMode(void). Currently it will be set to 10, try changing to 8 and see the result.

What I followed for solving this issue:

You can get device datasheet from: mt25ql512 datasheet

In the driver code, command-address-data is set 1-1-4 which is for extended SPI, and dummy cycle set for 10 which is for Quad spi mode (Page 37 in datasheet). As per datasheet, dummy cycle config for extended SPI should be 8.

Thanks! this was perfect for me!

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

No branches or pull requests

4 participants