SAME70 QSPI Serial Memory Mode problem

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello everybody! 

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I found a bug in the source code.   In the qspi.h file in the QspiBuffer_t structure, buffers are declared as uint32_t, and must be uint8_t.

After I fixed the bug, the example worked.