Forum Discussion
Questions About GSFI, QSPI Flash XIP Boot, and HAL API Support
Thank you for your reply.
First, I enabled compiler optimization by setting CMAKE_BUILD_TYPE=Release when running CMake. However, the software size was still over 100 KB, so I decided to stop pursuing further size reduction.
Next, I started considering the use of EMIF and a boot copier mechanism.
Since the 10M50 Evaluation Kit I am currently using includes LPDDR2, this approach seems feasible and may also solve the issues I have been facing. Therefore, I am trying to proceed with this method.
I have the following questions:
1. I selected "LPDDR2 SDRAM Controller with UniPHY IP" as the EMIF IP. Is it possible to use this IP together with Nios V?
(It may be due to an incorrect setting on my side, but Platform Designer fails during the Generate process.)
2. Is it possible to copy the boot image to DDR2 during boot and then run the bootloader from DDR2?
If this is not possible, my alternative plan is:
Boot from on-chip flash using a boot copier.
Copy the application image from QSPI Flash to DDR2.
Jump to the application in DDR2 and execute it.
Would this be a valid approach?
Thank you for your support.