Forum Discussion
Questions About GSFI, QSPI Flash XIP Boot, and HAL API Support
Thank you for your previous answers.
Your advice has been very helpful, but it has also made me reconsider my current system architecture.
Originally, I planned to boot the system using XIP (Execute In Place) from the UFM. However, the UFM has a capacity of only 65 KB, while the boot software has grown to over 100 KB. Therefore, I abandoned the idea of executing the boot software directly from the UFM and changed the architecture to use XIP from the QSPI flash instead.
I also want the bootloader to copy the application stored in the QSPI flash into OCRAM and then jump to the application.
However, the OCRAM capacity is only 165 KB, so there is not enough space to store both the bootloader (approximately 100 KB) and the application (approximately 100 KB) in OCRAM at the same time. Therefore, using a boot copier to load the boot software from the QSPI flash into OCRAM also seems difficult due to the limited OCRAM capacity.
I have two additional questions.
1. Why has the boot software size increased so much when migrating from Nios II to Nios V?
I am currently migrating existing boot software from a Nios II environment to a Nios V environment. The original Nios II version was less than 30 KB, but the Nios V version has grown to over 100 KB.
What could be causing such a significant increase in code size when migrating from Nios II to Nios V?
Are there any ways to further reduce the code size? I have already tried adjusting the BSP settings and compiler optimization options to minimize the code size.
2. Is there any way to test the boot process with my current development kit?
My current development kit has only one QSPI flash device. Given this limitation and the OCRAM capacity constraints described above, implementing a boot copier also seems difficult.
Under these conditions, I believe it may be difficult to test the intended boot architecture with my current development kit.
Is there any recommended approach or alternative architecture that would allow me to test the boot process with the current hardware?
If testing this configuration with the current development kit is not feasible, I am prepared to give up on testing it on this kit.
Any advice or suggestions would be greatly appreciated.
Thank you for your help.