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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

Flash Programmer with CFI Flash

Altera_Forum
Honored Contributor II
1,108 Views

Hi folks, 

 

perhaps someone can help me here, i have a Altera Cyclone III Starter Board, with an CFI Flash. The following IPs are included in my configuration: 

 

ext_flash at base 0x01000000 and end 0x01ffffff (flash memory interface) 

ssram at base 0x03100000 and end 0x031fffff (Cypress CY7C1380C SSRAM) 

flash_ssram_tristate_bridge 

clock_crossing_rup for the remote_update_controller 

buttons and leds 

jtag_uart and of course a NIOS II 

 

reset vector is in ext_flash at 0x00100000 

exception vector is in ssram at 0x20 

 

What i want to do is this: 

1. create a factory image .sof with a corresponding .elf file 

as well as an application image .sof and an elf file 

2. convert these files to .flash and programm them into the flash-memory 

3. restart the board, start with factory image and switch to the application image and switch back to factory image 

4. update the application-image while running factory-image (in later usage there will be a usb-driver in the factory image so that i have an other application on PC-side which transfers the .flash file of application hard- and software to the factory image, which than should write the new image into flash) 

 

Problems :( : 

how do i update the flash via software? ...just use the driver of the flash and write to the corresponding registers?  

 

 

Thanks, Christian 

 

PS: i overlooked the AN521, AN548 and AN458 ...thanks for help.
0 Kudos
0 Replies
Reply