Altera_Forum
Honored Contributor
19 years agoEPC16, I can read it, but not write to it...
I have created a very simple SOPC system for testing out the capability to read and write to the flash inside the EPC16 on the same board as the Stratix II device (2S60, in this case).
The SOPC system contains: -NIOS II (Standard) -JTAG UART -TRI-STATE BRIDGE -CFI FLASH -ONCHIP MEMORY I then ran the "hello world" example in IDE and debugged it so I could view the memory. I can see what is in the flash--FPGA configuration starting at offset 0x10000, if I add a .hex file at bottom boot, it shows up at offset 0x0. But when I try to write to it using IOWR(0x200000, 0, 0xA) where 0x200000 is the base address of the flash, I don't see anything change. I have tried many addresses within the flash without much luck. Is there some 'lock bit' that I need to clear, or is there something else inhibiting me from writing to the EPC16? Thanks, Brian