Forum Discussion
NiosII booting from on-chip memory SPI issue
- 2 years ago
Hi all,
Just an update to this issue.
The problem has been resolved by disabling the alt_printf statement in my C code. My .pof works now, and it can send the spi commands after power cycling the board.
My guess is that as there is no communication between the board and the nios2 terminal, the alt_printf pointer got lost when executing the function. Hence when loading .pof, all alt_printf must be disabled.
Regards,
Reuben Goh
Hi,
For the design I want to reconfirm that you are using proj.qsys not proj_qsys.qsys.
For the settings, I think we faced the same issue before we did not choose with memory initialization in quartus.
On platform designer
- Onchip flash = choose "single uncompressed image with memory initialization" and uncheck initialize flash
- Memory = check initialize and enable non-default
On Device and Pin Options - configuration mode
- Select "Single Uncompressed Image with memory initialization"
Thank you.
Regards,
Fathulnaim
Hi Fathulnaim,
Yes I am using proj.qsys.
Noted I will try "Single Uncompressed Image with memory initialization"
Regards,
Reuben Goh