2021-01-28 06:03 AM
Hi,
I'm using STM32H750B with a NOR flash (Winbond's W25128 chip). When the chip is configured as QPI mode. If polling SR1 using the auto polling function, it will throw error. But read SR directly and check the bits works.
Any help? Thanks.
Solved! Go to Solution.
2021-02-12 04:25 AM
Hi @Imen DAHMEN ,
I'm a little confused.
Thanks.
2021-02-15 08:37 AM
Hi @diverger ,
When reading with QUADSPI interface in Dual or Quad mode, you should insert at least one dummy cycle, in order to give output signals enought time to switch from output mode to input mode.
You can find this mentionned in Reference Manual section 23.3.3 QUADSPI command sequence "Dummy-cycles phase". This concern any command in Dual or Quad mode.
Even if it worked in indirect mode, for proper usage, you must follow the recommended QUADSPI specification to insert at least a dummy cycle.
In your case you are reading from a memory's status register the memory will always send its status register as long as it is clocked. So inserting dummy cycles will not impact the data transfert.
The QUADSPI will ignore the first status byte sent by the memory (2 dummy cycles) and will read the second one.
Hope it is clear and this brings some help to you.
Imen