cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
3,329 Views
Registered: ‎05-08-2018

QSPI flash programming- how to activate qspi in quad mode

Jump to solution

Hi all,

 

i am using vcu118 kit, i am trying to access QSPI flash present in it. i have  QSPI controller using basic device driver  i am trying to read and write the data in quad mode. In vcu118 kit we have Micron MT25Q flash memory,   i can able to read and write in single extended mode. i have gone through the datasheet. it says by default QSPI flash memory is in single mode to activate in quad mode.

 

first we configure the QSPI controller in default mode and then we have to write 0x7F in enhanced volatile configuration register with command of 0x61. before that we have to send write enable command 0x06. then flash memory will be configured in quad mode and we have to configure the controller in quad mode.

 

for basic testing i was just trying to READ ID code in quad mode by sending command 0XAF in quad mode. but i am unable to get the ID CODE in quad mode it is showing all FF.

 

i have tried reading the register after writing 0X7F in it. it is still 0XFF.

 

i cant able to understand what is wrong in it? can anyone please tell me, what else should be done to configure qspi in  quad mode

and just read id code in quad mode

 

i am attaching the qspi datasheet

 

thanks

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Visitor
Visitor
3,294 Views
Registered: ‎05-08-2018

Re: QSPI flash programming- how to activate qspi in quad mode

Jump to solution

hi all,

it is now working for activating quad mode , these were the steps i have used

to enable the quad mode
1. send ENTER QUAD INPUT/OUTPUT MODE command 0x35h
2. send write enable cmd 0x06
3. to write into enhanced volatile configuration register - send  0x61 command.
4. 0x7F is written in the above register to activate in quad mode
5. poll the configuration register i.e read the enhanced volatile config register command is 0x65 and wait untill it
becomes 0X7F
6. then configure the controller in quad mode and send the multiple read id code 0XAF to read the ID code on all the four lines.

thank you

View solution in original post

0 Kudos
5 Replies
Highlighted
Community Manager
Community Manager
3,210 Views
Registered: ‎07-23-2012

Re: QSPI flash programming- how to activate qspi in quad mode

Jump to solution
Can you please share .xci file of AXI Quad SPI IP and your application code?
-----------------------------------------------------------------------------------------------
Please mark the post as "Accept as solution" if the information provided answers your query/resolves your issue.

Give Kudos to a post which you think is helpful.
0 Kudos
Highlighted
Visitor
Visitor
3,295 Views
Registered: ‎05-08-2018

Re: QSPI flash programming- how to activate qspi in quad mode

Jump to solution

hi all,

it is now working for activating quad mode , these were the steps i have used

to enable the quad mode
1. send ENTER QUAD INPUT/OUTPUT MODE command 0x35h
2. send write enable cmd 0x06
3. to write into enhanced volatile configuration register - send  0x61 command.
4. 0x7F is written in the above register to activate in quad mode
5. poll the configuration register i.e read the enhanced volatile config register command is 0x65 and wait untill it
becomes 0X7F
6. then configure the controller in quad mode and send the multiple read id code 0XAF to read the ID code on all the four lines.

thank you

View solution in original post

0 Kudos
Participant
Participant
3,111 Views
Registered: ‎04-27-2018

Re: QSPI flash programming- how to activate qspi in quad mode

Jump to solution

Hi mdakram141

I have the same question and i configured follow your steps.
but some flash command still work incorrectly.
such as follows:
                                                excepted value         test value
READ FLAG STATUS REGISTER : 0x80                        0xc0
MULTIPLE I/O READ ID            : 0x20,0xBB,0x20       0xc0,0xBB,0x20

Now only quad read and write command work OK.

Do you have any advice?Thank you very much.



0 Kudos
Highlighted
Scholar
Scholar
2,279 Views
Registered: ‎05-31-2012

Re: QSPI flash programming- how to activate qspi in quad mode

Jump to solution

how do you reconfigure the controller? isn't the AXI QUAD SPI IP configuration set at compile time?

For example, if the core is configured as quad spi, i can't reconfigure to extended or dual spi

0 Kudos
Highlighted
782 Views
Registered: ‎12-25-2019

Re: QSPI flash programming- how to activate qspi in quad mode

Jump to solution

@mdakram141 

Could you please elaborate Step 6 ?

Do you mean we have to perform step 1 to 5 in bitstream which uses AXI Quad SPI IP in Standard mode, and then perform step 6 with a new bitstream which uses AXI Quad SPI IP in Quad mode ?

 

0 Kudos