Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Flash Programmer with CFI Flash

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.
No RepliesBe the first to reply