cancel
Showing results for 
Search instead for 
Did you mean: 

QSPI STRANGE BEHAVIOR WHEN AUTOPOLLING

JCuna.1
Senior

I am trying to autopoll wip and wel bit from status register (0x05) in a flash memory when I perfrom a erase process.

The first autopolling operation is correctly, however, the second time that qspi try to autpoll the bits, this does not release CS, and the data is not readed correctly. I am using HAL_QSPI and inmediatlly after perfrom the aupolling hal line, it finish, but the peripheral continue polling the bits forever.

0693W00000LzPE5QAN.png0693W00000LzPF2QAN.png

16 REPLIES 16

Weird for sure... pretty sure it should work with 1, you'd use 2 for a dual configuration, where you do want both die to complete, and the erase/write are self-timed, so one device is usually done ahead of the other. Full erase of parts can take minutes, definitely hundreds of seconds.

@Imen DAHMEN​  @Amel NASRI​  @STOne-32​  please have someone on the QUADSPI / OCTOSPI validation team look this over, thanks..

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Testing in 1_line (normal spi) mode, the autopolling works perfectly, CS is releasing after each poll.

0693W00000LzW5sQAF.png

W25Q32JV-DTR indicate:

0693W00000LzW7FQAV.png

Yeah, so 60 seconds for a timeout is reasonable here, been working with the 1 and 2 Gb parts with multiple 512Kbit die inside.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

@ChahinezC​ marking for review, I think this was the primary thread, although there may be additional ones within this immediate time period.

Thanks, -Clive

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

One of my conclusions at the time was that the bus is left active via the timeout path, and actually needs to be aborted. I think this should be handled within the functions timeout path directly, as NONE of the example codes look to be handling anything related, and the failure will just cascade from there.

There are of couple of related threads.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..