Hello,
We've a custom board that has an AM3352 together with an SPI flash M25P32 (from STmicro). We managed to get the bootloader working, with the SPI flash being correctly detected:
SF: Detected M25P32 with page size 256 Bytes, erase size 64 KiB, total 4 MiB
However, whenever I want to read data from the SPI flash, we get an error stating that a timeout has occured:
SPI RXS timed out, status=0x00000002
Looking in the code, we found that this simply means that the RXS flash in the mcspi channel 0 status register is not set, so no data has "entered" the buffer. The status simply means that the transmit has completed.
I've measured the SPI clock, and the system works as expected, data is being transmitted on the MISO line. The line integrity is very good. I've tried lowering the frequency from 24MHz to 100KHz, but that didn't seem to solve the problem either.
Kind regards,
Arend