stm32-external-loader icon indicating copy to clipboard operation
stm32-external-loader copied to clipboard

Issues with MT25QL512

Open albertomercurio opened this issue 5 years ago • 3 comments

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

albertomercurio avatar Jan 26 '21 00:01 albertomercurio

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.

rsankar1996 avatar Feb 05 '21 11:02 rsankar1996

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

EmbeddedAyoub avatar Oct 22 '21 22:10 EmbeddedAyoub

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!

milom avatar Nov 28 '22 18:11 milom