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