Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Updating EPCS

Altera_Forum
Honored Contributor II
1,046 Views

Is it possible to update the software code stored in Alteras EPCS flash? I know these devices are basically SPI flash, but the Altera device has dedicated pins connecting it. 

 

Thanks in advance, 

Richard
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
317 Views

You have access to the EPCS controller via the HAL "alt_flash" hardware abstraction. The only thing you need to look out for is that, by default, the end of the hardware image and the beginning of the software image fall in the same block....so you would need to do a read-modify-write cycle on that block. 

 

Best Regards, 

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
317 Views

Slacker, 

Thanks for the response. I am still working on my design and havent look at any of the HAL stuff yet. Ill check it out when I get a chance. 

 

Thanks again, 

Richard
0 Kudos
Altera_Forum
Honored Contributor II
317 Views

I'd read this document since it shows you how to program hardware and software contents into the EPCS device (or CFI flash): 

 

http://www.altera.com/literature/ug/ug_nio..._programmer.pdf (http://www.altera.com/literature/ug/ug_nios2_flash_programmer.pdf

 

If you are looking to do this "on the fly" then you can use the method slacker mentioned below to access the device.
0 Kudos
Reply