2021-01-31 02:44 AM
Hi,
I’m using STM32L476VGT6 device with external flash memory in QPI mode. Everything works fine until I try to send a command byte with no address and no data. For example, when I try to send the command 0xF5 (exit QPI mode), on the logic analyzer I can see that line IO1 is not controlled by the MCU and stays low. But with the same configuration, when I add address byte everything works well again. It looks like with just command byte sent, line IO1 stays in MISO mode instead of QPI mode.
Pinout of the logic analyzer:
CS – 6
CLK – 4
IO0 – 7
IO1 – 5
IO2 – 3
IO3 – 2
Sending command 0xF5 with no address and no data.
CCR register value is 0x3F5:
Instruction – 0xF5
IMOD – Instruction on four linesSending command 0xF5 with one address byte and no data.
CCR register value is 0xFF5:
Instruction – 0xF5
IMOD – Instruction on four lines
AMODE – Address on four linesOn the first capture the IO1 line (pin 5) stays low during the command phase, but on the second capture the IO1 line goes high as it should. What could be the cause of this problem? I would appreciate all help.
Solved! Go to Solution.
2021-01-31 03:55 AM
See errata sheet ES0250 Rev 8, 2.6.1. Experiment with other settings, i.e. indirect read instead of write (or vice versa), or send command as address or data or alternate byte with no instruction, maybe one combination works ...
2021-01-31 03:55 AM
See errata sheet ES0250 Rev 8, 2.6.1. Experiment with other settings, i.e. indirect read instead of write (or vice versa), or send command as address or data or alternate byte with no instruction, maybe one combination works ...
2021-01-31 04:52 AM
Sending command as 1-byte address with no instruction and no data works fine.
Thanks for your support.