+ Post New Thread
Results 1 to 8 of 8
  1. #1
    Newbie level 1
    Points: 1,052, Level: 7

    Join Date
    Jan 2013
    Posts
    1
    Helped
    0 / 0
    Points
    1,052
    Level
    7

    MICRON MT25Q QSPI flash memory access in quad mode in vcu118 kit

    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

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 77,923, Level: 68
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,796
    Helped
    3593 / 3593
    Points
    77,923
    Level
    68

    Re: MICRON MT25Q QSPI flash memory access in quad mode in vcu118 kit

    Hi,

    First check your hardware:
    * What exact device do you use and is the connection according Figure5?
    * Is there a proper decoupling capacitor at VCC?
    * Is the supply voltage correct and stable (during access)? --> scope
    * Are the signal levels correct? --> scope
    * Is the timing correct? --> scope

    Klaus
    Please don´t contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   AltAdvertisement

        
       

  3. #3
    Newbie level 1
    Points: 1,052, Level: 7

    Join Date
    Jan 2013
    Posts
    1
    Helped
    0 / 0
    Points
    1,052
    Level
    7

    Re: MICRON MT25Q QSPI flash memory access in quad mode in vcu118 kit

    hi

    thank you for the response,

    i am using QSPI flash memory inside the vcu118 kit, i have checked in vcu118 schematics the power supply, capacitors are properly connected. the device that is present is MT25QUO1GBBB8ESF-0SIT. we are using ESTARTUP3 device primitive to connecting qspi in the RTL.

    single mode is properly working. so i am sure that the hardware has no problem.
    i am having doubt whether i am configuring the flash memory correctly.

    to enable the quad mode
    1. send write enable cmd 0x06
    2. to write into enhanced volatile configuration register - 0x61 command.
    3. 0x7F is written in the above register to activate in quad mode
    4. 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.

    is this sequence correct or am i missing anything?



    •   AltAdvertisement

        
       

  4. #4
    Super Moderator
    Points: 77,923, Level: 68
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,796
    Helped
    3593 / 3593
    Points
    77,923
    Level
    68

    Re: MICRON MT25Q QSPI flash memory access in quad mode in vcu118 kit

    Hi,

    to enable the quad mode
    = entering quad protocol --> see table 35
    I´m missing this with your description.

    Klaus
    Please don´t contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



  5. #5
    Newbie level 1
    Points: 1,052, Level: 7

    Join Date
    Jan 2013
    Posts
    1
    Helped
    0 / 0
    Points
    1,052
    Level
    7

    Re: MICRON MT25Q QSPI flash memory access in quad mode in vcu118 kit

    thank you i was in confusing should i have to use that command, i tried using that command once
    i have given that command after sending 0x7F. but it didn't worked
    but i cant able to understand when should i give this command ?

    - - - Updated - - -

    sorry once i have given once before 0x61 and once after 0x7F. i am confused about the sequence...



  6. #6
    Newbie level 1
    Points: 1,052, Level: 7

    Join Date
    Jan 2013
    Posts
    1
    Helped
    0 / 0
    Points
    1,052
    Level
    7

    Re: MICRON MT25Q QSPI flash memory access in quad mode in vcu118 kit

    Also it is written in the datasheet that to initiate the quad protocol operations "the WRITE ENABLE command must not be executed" does that mean we have to first send command 0x35 (ENTER QUAD INPUT/OUTPUT MODE) and then send other commands i.e.

    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 - 0x61 command.
    4. 0x7F is written in the above register to activate in quad mode
    5. 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.

    is this the correct sequence ?



  7. #7
    Newbie level 1
    Points: 1,052, Level: 7

    Join Date
    Jan 2013
    Posts
    1
    Helped
    0 / 0
    Points
    1,052
    Level
    7

    Re: MICRON MT25Q QSPI flash memory access in quad mode in vcu118 kit

    is it possible that it will take time to switch from single mode to quad mode, do i have to poll on the enhanced volatile register by reading it and waiting until it becomes 0x7F. the command for read enhanced volatile config register is 0x65. kindly help me out



    •   AltAdvertisement

        
       

  8. #8
    Newbie level 1
    Points: 1,052, Level: 7

    Join Date
    Jan 2013
    Posts
    1
    Helped
    0 / 0
    Points
    1,052
    Level
    7

    Re: MICRON MT25Q QSPI flash memory access in quad mode in vcu118 kit

    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 - 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



--[[ ]]--