2024-07-22 09:24 AM
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:
my setup of QSPI in my .ioc file is as the following:
Please advise if you have any suggestions.
Thanks in advance.
Victor
2024-07-22 10:18 AM
>>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.
2024-07-22 01:31 PM
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
2024-07-22 02:31 PM
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.
2024-07-22 02:32 PM
> 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.
2024-07-22 02:36 PM
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?
2024-07-22 02:40 PM
Hi Tesla DeLoram,
the Norflash part is: MX25L51245G, please send me the code if you have. Many thanks in advance.
Regards
Victor
2024-07-22 02:40 PM
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.
2024-07-22 02:48 PM
Hi, Pavel
Thanks for reply. my software failed after the following code. I know this is for OSPI application, Does it need to be changed for QSPI? How to change it?
From the function description of fx_media_format(), I don't know which parameters should be changed. Thanks for your help.
Regards
Victor
2024-07-22 06:34 PM
This is all rather top-level, are the defines for the capacity correct for the new part?
What you're actually interested in is the code a level or two below this that is initializing the pins and communicating with the memory IC. If those commands and functions are wrong, it's not going to work properly.
It needs code specifically for the MX25L51245G. Look at the commands being sent.