--- Quote Start ---
originally posted by monkeyboy@Jul 22 2005, 03:18 AM
having built your application using the configuration you have described, you should be able to simply program it into the epcs device using the auto-generated program_flash script (as described in the getting started guide).
you don't need to manually construct hex files etc. yourself.
there have been problems with this flow in earlier versions of the ecos port, so you should either ensure that you are running version 5.0, or use the work around described in the "ecos from epcs" thread in this forum. --- Quote End ---
The program_flash script is useless because it uses the Nios II Flash Programmer, which is only compatible with either EPCS active-serial configuration devices or Common Flash Interface chips. The EPC16 (
not EPCS16) is neither of these.
The correct settings are ROMRAM boot type, everything mapped to RAM, and you have to convert the object code from ELF to Intel Hex or S-Records and remap the object sections to flash addresses (the generated ELF file has .entry in flash and everything else in SDRAM). The resulting .hex file can then be fed to Convert Programming Files. Also, a boot loader that resides in the initial 64K "boot section" must be written and put in that section.
Just for the record. (narab is a coworker of mine.)