Stm32h7 Hal qspi autpolling timeout
I am writing a library for a flash memory. At the beginning I am trying to reset the flash memory. So in order to avoid a bad reset. I am checking if wip is enable. However, the flash memory could be in spi or qpi mode. So I am trying to perform and autopoll status read in both case.
After hours of debugging I realize that when Hal qspi autopolling method reach timeout, it is locked and I can not use again. Even Hal qspi abort unlock the device. Checking the qspi peripheral, busy bit is set. So I perform a peripheral reset and init again the peripheral with MX qspi init.
After this, autopolling method works again but it only perform a additional read and then reach timeout (my timeout is 1000ms). So it is pretty strange because this only perform and autopoll status reg once, and in one second this should perform many reads.