cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
alen89
Participant
Participant
478 Views
Registered: ‎06-26-2019

QSPI Multiplexed access

Dear,

Due to have redundancy on the board I use 2 qspi memories multiplexing the chip select. The problem that I have is when you boot from one memory, only this memory is in QSPI mode and unlocked. So my question is, someone know if it is possible to write qspi commands from user space just to configure the secundary memory in this mode?. 

I use QSPI in single mode. The memories are n25qu256.

Thank you in advance,

Alen.

0 Kudos
5 Replies
469 Views
Registered: ‎07-23-2019

 

If I'm not wrong, QSPI chips start at a default 1x and there is a command to swap to 4x.

When you say:

"when you boot from one memory, only this memory is in QSPI mode and unlocked"

I think that's not right, it's the configuration engine what tells the memory to change to QSPI mode

0 Kudos
alen89
Participant
Participant
446 Views
Registered: ‎06-26-2019

And it is possible to do it from user space?
0 Kudos
435 Views
Registered: ‎07-23-2019

I believe so, otherwise who does it?

I just had a look at micron's N25Q256 (should be compatible with other brands). There is a command list that shows:

err1.png

And there are other read and write commands in dual and quad as well.

also, in the SDK libraries, I would expect such functions in the libraries provided for SPI

 

0 Kudos
alen89
Participant
Participant
409 Views
Registered: ‎06-26-2019

Well for inspection spi-zynqmp-gqspi does not and spi-nor.c also not, only found in mtdchar.c for the mtd-utils...
So probably I need to patch a driver..
0 Kudos
365 Views
Registered: ‎07-23-2019

Strange... I have used PCAP to read/write the config SPI memory and I assume it uses quad SPI without any user intervention. I wonder if you could use that as well

0 Kudos