Skip to main content
Rajesh Kannan
Associate II
June 29, 2021
Question

STM32H750 change QSPI MT25Q512LABB to MT25Q128LABB is not working

  • June 29, 2021
  • 5 replies
  • 1279 views

I have tested read /Write MT25Q512ABB QSPI using STM32H750 - discovery kit. It is workig properly.

In our customized board is using the MT25Q128ABB in STM32H750xx version..It success write-in function . I can able to read the memory,but it shows always -1

I compared MT25Q512ABB and MT25Q128ABB datasheet.It looks different few register in datasheet.

I am using mt25tl01g driver for MT25Q128ABB.

Can i use same driver for MT25Q512ABB and MT25Q128ABB?

I couldn't find driver MT25Q128ABB in STM32.

This topic has been closed for replies.

5 replies

Tesla DeLorean
Guru
June 29, 2021

Would need a driver that's aware of the different expectations of each part.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Andreas Bolsch
Lead III
June 29, 2021

Obviously a driver for the Q*L*512 can't work for a Q*L*128: The QL512 needs 4-byte addresses, either via the special 4-byte command set (all command codes incremented by 1) or after switching to 4-byte address mode the standard command set, and the QSPI interface has to be initialized accordingly. The QL128 needs/supports only 3-byte addresses. These changes should be rather trivial, though.

The same applies to the TL01G vs. QL128 as the TL01G is just two separate QL512 dice in a single package (but wired more or less independent of each other).

Rajesh Kannan
Associate II
June 30, 2021

Thanks for explaining the details and differentiate chip.

It looks to match the below sample.

Drivers\BSP\Components\n25q128a\n25q128a.h

Drivers\BSP\STM32746G-Discovery\stm32746g_discovery_qspi.c

Can I refer above sample code and port to Mt25Q128ABB in STM32H750?

Tesla DeLorean
Guru
June 30, 2021

Should be a reasonable basis of a port.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..