External-Loaders icon indicating copy to clipboard operation
External-Loaders copied to clipboard

Problems with MT25QL512

Open albertomercurio opened this issue 5 years ago • 3 comments

Hello, i followed the tutorial with two momories. First with MT25QL128 (which worked very well), and now i'm trying with the MT25QL512. However, the test code stops in the memcmp check. When i see the flash via Programmer this is what i see, which seems ok. However, when i upload the test .bin file, this is the result, which is not perfectly as expected.

albertomercurio avatar Nov 15 '20 19:11 albertomercurio

Hello, the problem occurs also with STM32H743IIT MCU. I'm following exactly your guide, maybe there is something wrong in the MT25QL512 driver.

albertomercurio avatar Jan 26 '21 00:01 albertomercurio

Hello,

MT25QL512 driver was developed on PCB board with Dual bank option (two ext. memories). So, some commands are send twice. For example auto polling mode uses:

sConfig.Match = 0x0000; sConfig.Mask = 0x0101; sConfig.MatchMode = QSPI_MATCH_MODE_AND; sConfig.StatusBytesSize = 2;

(it check both memories)

You can go through the code and change it back to one command.. (single bank)

Best Regards, JV

út 26. 1. 2021 v 1:00 odesílatel albertomercurio [email protected] napsal:

Hello, the problem occurs also with STM32H743IIT MCU. I'm following exactly your guide, maybe there is something wrong in the MT25QL512 driver.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vlcekji2/External-Loaders/issues/4#issuecomment-767190144, or unsubscribe https://github.com/notifications/unsubscribe-auth/AENN7G3ZYI5EOFNBAS5H4ZTS3YA2XANCNFSM4TWMMB4Q .

vlcekji2 avatar Jan 26 '21 14:01 vlcekji2

A changed the define DUMMY_CLOCK_CYCLES_READ_QUAD from 10 to 8, and now it seems to be working! I don't know how it is affidable reliable, but it works well! Furthermore, how can i change it to one command? Something like this?

sConfig.Match = 0x00; sConfig.Mask = 0x01; sConfig.MatchMode = QSPI_MATCH_MODE_AND; sConfig.StatusBytesSize = 1;

albertomercurio avatar Jan 26 '21 21:01 albertomercurio