Altera_Forum
Honored Contributor
19 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 configuration and/or my application code.
My question: how do I reformat the programming files (e.g. SOF) to program into the EPCS with a call to the HAL API? I imagine the flash API wants a memory buffer with the raw bytes in it but I'm not sure I understand exactly how the data is formatted in the EPCS and how to generate that format starting with the SOF file. I'll start by reverse engineering what's in the EPCS right now and comparing it to the various formats I can generate with the Altera tools but I'm sure someone already knows the answer. Thanks, Andrew