Forum Discussion
HPS QSPI BOOTING
Hi,
Please check first if the QSPI flash device is compatible with Intel's FPGA/SoC. Please check the following list of the supported devices for Cyclone V SoC.
There are some devises are Known to work, Tested and supported by Intel, and Known to work with modification required for UBoot.
Regards.
- AKb7 years ago
Occasional Contributor
Hi,thanks for the reply. I will check whether it is compatible or not. I am almost sure it is compatible with intel fpga/soc. The thing is that i am able to write and read to flash in debug mode. its only when i load the preloader-mkpimage.bin file into the 0x00000000 address of qspi flash and load my baremetal application image generated after using certain commands(i dont really understand that command) at the 0x60000 address of qspi flash. both this operation is successfull. after cold reset it should boot from the qspi flash using preloader stored in flash. but its not happenning. please guide. should i give some offset for baremetal image?
- AKb7 years ago
Occasional Contributor
Hi ,
I checked. the flash is compatible with cyclone V soc. my process is as follows. My code works fine in debug mode. i want the system to boot from qspi with my application baremetal image on top of preloader. no uboot or OS here.
My process is as follows.
- Using bsp editor i generator i generate preloader-mkpimage.bin with option Boot from QSPI ticked. Watch dog enable is disabled.SDRAM Scrub and scrubb remain region enabled.Qspi next boot image is at 0x60000 address name as u-boot.img.
- after generating i compile it by command make all.
- Now i build and compile my design and generate my application output file in .axf format.
- In SOCEDS Command shell i convert my_file.axf to my_file.bin by GNU command ... arm-altera-eabi-objcopy.exe -O binary my_file.axf my_file.bin
- Using SOCEDS Command shell i load the Preloader-mkpimage.bin at 0x00000000 of QSPI Flash by command quartus_hps -c 1 -o P preloader-mkpimage.bin. It is successfully loaded.
- Using SOCEDS Command shell i load the my_file.bin at 0x60000 of QSPI Flash by command quartus_hps -c 1 -o P -a 0x60000 my_file.bin. It is successfully loaded.
- Now i reset or power cycle the system to check whether it is booting from qspi flash.
Unfortunately it is not booting from qspi flash.
The thing is that i want my application to be placed on top of preloader and boot automatically without u-boot or OS. How to do it. I am running out of ideas. Please guide