I am trying to link the SAME70Q21 processor and the QSPI flash S25FL127.
I took an example from atmel-software-package-samv7-master for SAMV71 and reworked it for SAME70.
Everything works fine in SPI mode, but there is a problem in Serial Memory mode. The s25fl1d_quadmode(ENABLE) function loops because the value of the CR1 register in S25FL127S does not change.
The logic analyzer showed the following diagram:
When writing registers, the 4th byte is written. Can this be the reason that the 2nd byte (CR1) is not saved?
Tell me how to solve this problem.
I tried using a similar example from Asf, the regult is the same.