Skip to main content
Associate III
July 22, 2024
Question

How to setup QSPI file sytem on Norflash

  • July 22, 2024
  • 2 replies
  • 4244 views

HI, All

     I am testing file system on U575 Eval board. The file system is working when I setup the connectivity  to Norflash as Oct2SPI. However, when I changed the connectivity to QSPI, it failed at the initialisation of format as the following:

Victorheca01_0-1721665364507.png

my setup of QSPI in my .ioc file is as the following:

Victorheca01_1-1721665412254.png

Please advise if you have any suggestions. 

Thanks in advance.

Victor

    2 replies

    Tesla DeLorean
    Guru
    July 22, 2024

    >>Please advise if you have any suggestions

    Debug the QSPI Read / Write functionality.

    Make sure 4KB sectors, that you can erase, write page(s), QSPI memory is in correct mode, and not memory mapped.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Associate III
    July 22, 2024

    Hi Tesla DeLorean,

       Thanks for you reply.

     Is there any problem with the CubeIDE? Since OSPI is working properly, I just change OSPI to QSPI and it is not working. 

     

    Victor

    Tesla DeLorean
    Guru
    July 22, 2024

    QSPI Memory on a OSPI bus. That should be viable.

    To determine if CubeIDE is failing you'd need to review the output code in the context of the commands sent to your memory device. Look at that code and fix it as necessary.

    Part not described, code not provided.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Pavel A.
    Super User
    July 22, 2024

    > Since OSPI is working properly, I just change OSPI to QSPI and it is not working. 

    The command structures for HAL  OSPI and QSPI drivers differ. Please mind the differences. Look at examples.

     

    Associate III
    July 22, 2024

    Hi Pavel

       Thanks for your reply.  If I change the communication from OSPI to QSPI in .ioc file, does the driver change accordingly or I have to change it by myself? 

    Pavel A.
    Super User
    July 22, 2024

    If you change the communication from OSPI to QSPI in .ioc file, the Cube will reference the correct HAL driver in the library (OSPI or QSPI) and generate initialization code for it. But it won't automatically fix the rest of the code for you.