I never tried using different modes for spi master and slave. STM32H7 does not support modes 1 and 2, but I see what are you trying to do. Are you able to configure slave mode 1ONLY for response (i.e. keep using mode 3 for command, address, write dat...
Hi @KShim.1738!I don't think you are using sample shifting correctly.> The command reads one byte from the slave and sampling was delayed by half cycle, which is why there are 5 clocks.This is not true. sample shifting does not add any cycles, but c...
Thanks for reproducing this issue, it shows that there is no problem with my specific board and/or setup.Yet, I diagree with your conclusion about it being caused by the flash chip.1. We both used relatively low clock speed, there is at least 180ns b...
I also tried to reproduce a minimal example:I have sent command 0xAB (Read Product ID) in qpi mode (4-4-4), then 0 or 1 dummy cycles, then read 1 byte. There are 6 dummy cycles required by flash datasheet, so flash should not write anything.0 dummy c...
Here are better quality pictures (yellow - clock, blue - IO0, IO1, IO2, IO3):As you can see, IO1 and IO2 have some strange behaviour after second falling edge. As a result, we read 0xFD instead of expected 0x9D.