Me again, monkeyboy
I've looked in the generated_app.mk file and saw that the elf2flash command there has the same syntax as the one in the ecos program_flash script, i.e:
elf2flash --input=$(ELF) --flash=U59 --boot=`$(QUARTUS_ROOTDIR)/sopc_builder/bin/find_sopc_component_dir $(CPU_CLASS)`/$(BOOT_COPIER_EPCS) --outfile=$(EPCS_CONTROLLER_BOOT_ROM_FLASHTARGET_ALT_SIM_PREFIX)epcs_controller_boot_r
om.flash --sim_optimize=$(ALT_SIM_OPTIMIZE) --epcs --base=0x0 --end=0x7FFFFFFF ; fi
Meaning it uses both the epcs and the flash flags. When I run this command from the program_flash script I get an error saying that no reset address was specified in the command line or in the elf file. Since the command line looks the same as the one that does work, I am forced to cnoclude that for some reason, the elf file generated by the compiler when making the ecos software examples does not have a reset address written in it.
Do you aggree ?
Nir