Forum Discussion
watanabe
New Contributor
1 month agoQuestions About GSFI, QSPI Flash XIP Boot, and HAL API Support
I am currently using the 10M50 Evaluation Kit and trying to boot from QSPI Flash using XIP (Execute In Place). I am using the Generic Serial Flash Interface (GSFI) IP, and I would also like to...
LiangYuG_Altera
Contributor
1 month agoHi watanabe
watanabe wrote:1. I selected "LPDDR2 SDRAM Controller with UniPHY IP" as the EMIF IP. Is it possible to use this IP together with Nios V?
You can refer to this design example. It is also a 10M50 Evaluation Kit, with LPDDR2 SDRAM Controller with UniPHY IP.
watanabe wrote:2. Is it possible to copy the boot image to DDR2 during boot and then run the bootloader from DDR2?
Yes, you can copy the boot image into LPDDR2, and run the bootloader from LPDDR2.
Just understanding your proposal more...
Is it like this?
- Inside GSFI - 1st stage bootloader + boot image (2nd stage bootloader & application)
- 1st stage bootloader is XIP from GSFI
- boot image is XIP from LPDDR2
- Nios V processor's reset vector is GSFI.
- XIP from GSFI - Run 1st stage bootloader, copy boot image to LPDDR2, and "jr" to LPDDR2
- XIP from LPDDR2 - Run 2nd stage bootloader, and run application.
Since the boot image is XIP from LPDDR2, the GSFI flash is released after 1st stage bootloader. You are free to access the GSFI flash to modify/update the boot image.
Regards,
Liang Yu