Forum Discussion
Hi Jiayi_H_Intel,
For Stratix10, I think you may not able to access the sdm_QSPI on the FPGA side since you are booting up from sd-card. I afraid the access to the sdm_QSPI will not be allowed. Some of the boot up configuration was written in the sdm_QSPI when booting up, so simply writing to the sdm_QSPI may overwrite the configuration data.
Anyway, Can try "sf probe" in U-boot and see. Do let me know what will show after that?
I think you were trying to write to to sdm_QSPI_register(0xFF8D2000), maybe can try to write to the sdm_QSPI_data_Address(0xFF900000 to 0xFF9FFFFF) instead.
Can check with the Stratix10 HPS Address Map, link as below:
https://www.intel.com/content/www/us/en/programmable/hps/stratix-10/hps.html#dap1505405910812.html
After sf probe, try the below read/write example link below using sf command in U-boot:
https://blog.krybot.com/a?ID=01550-3cc5b429-9aaf-45e5-b934-b73d31966d36
Thanks.
Regards,
Aik Eu
- Jiayi_H_Intel3 years ago
Occasional Contributor
Hi Aik Eu,
After "sf probe", it shows:
SF: Detected mt25qu02g with page size 256 Bytes, erase size 4 KiB, total 256 MiB