Forum Discussion
Altera_Forum
Honored Contributor
20 years agoProgram EPCS from user code?
I'd like to add a firmware upgrade capability to my NIOS system. Since the end user won't have a development system with JTAG I'd like to add a way of reprogramming the EPCS with FPGA con...
Altera_Forum
Honored Contributor
20 years agoRight. The .flash format is really just SREC minus a few of the S<n> types. I would probably use nios2-elf-objcopy to convert a .flash (SREC) file into a binary file.
It would be better still if you could write an SREC parser to convert (and store) the contents of these SRECs (.flash files) on the fly. The HAL flash abstraction makes writing to CFI or EPCS transparent. Cheers, - slacker