2025-11-20 6:37 AM
I am currently working with the MT25QL128 flash memory using the Quad-SPI interface on an STM32H7 MCU. I have a technical question regarding the Extended Quad Input Page Program command.
In my code, the following command is used:
#define EXT_QUAD_IN_FAST_PROG_CMD 0x12The flash write operation works correctly with this command.
However, according to the MT25QL128 datasheet, the correct command for Extended Quad Input Page Program appears to be 0x38.
My questions are:
Is using 0x12 officially supported on MT25QL128, or is it just backward-compatible?
Are there any scenarios where using 0x12 might lead to incorrect behavior or compatibility issues?
Should I update my code to use 0x38 to be fully datasheet-compliant, even though 0x12 seems to work in practice?
I want to ensure that my Quad-SPI write operations are fully compliant with the datasheet and avoid potential issues in programming.
Thank you very much for your guidance.
2025-11-20 6:54 AM
Very interesting...
I guess you are using and trusting HAL?
Are you 100% that this 0x12 is really used? It isn't replaced / overwritten / #undef + #def somewhere else?
It's nowhere to be found in the datasheet, so I would not trust that at all.
I would 1) search all source code for some 0x38, 2) check with a scope what's sent, and then 3) I would simply replace the 0x12 with the 0x38.