Forum Discussion
Hello,
Please refer to link : https://cdrdv2.intel.com/v1/dl/getContent/666980?fileName=edh_ed_handbook-683689-666980.pdf
Figure 82, step 5, there is setting for initialize flash content.
regards,
Farabi
Thank you for your message but I think there has been a misunderstanding.
I have already successfully created a .pof file and successfully booted the NIOS from UFM.
UFM CFM0 CFM1
NIOS II code Image 1 Image 2
I have a SPI slave peripheral that receives an .rpd file and the NIOS II must write it to CFM1 to update image 2.
This is to implement an in the field upgrade without the USB Blaster.
The NIOS II cannot erase any sectors or pages.
Every time the on-chip-flash IP Core Status Register is read the busy field is set to 2'b11 BUSY_READ.
While busy any command to the Control register to erase is ignored, write protection can be removed but new data cannot be written unless and erase has completed.
Is there a way to for execute in place NIOS II to write to on-chip flash?
My theory as to why:
When building the code for NIOS II the .text region must be placed on the on chip flash, rather than alt_load copy to on-chip memory. If not then mem_init_generate fails.See part 6.
https://www.intel.com/content/www/us/en/docs/programmable/683689/current/application-21528.html
Just by having the NIOS II running will cause read operations for program content from .text.
Not sure of a good way round this.