So far I've managed to flash sof files to EPC flash by creating the jic file.
But now I also want the elf file (generated by Nios gcc) also to be flashed into EPC flash.
Using Nios Programmer failes due to bug in sof2flash since 17.1 (related to cyclone 10)
There must be also other way:
I assume I've to add the hex file (converted from elf) to the "Convert Programming Files" tool.
Unfortunately the address where this hex file is placed seems to be wrong. The Nios application is not starting.
I'm basically using the provided Quartus design but added small Nios application.
Starting and debugging Nios application directly via Jtag works, so application itself is correct.
It sounds like you are trying to flash an ELF file generated by the Nios gcc to the EPC flash, but are encountering issues when using Nios Programmer. You mentioned that you have successfully flashed a SOF file to the EPC flash by creating a JIC file, which is great.
One potential solution for flashing the ELF file to the EPC flash could be to use the "Convert Programming Files" tool in Quartus to convert the ELF file to a HEX file. You can then add the HEX file to your JIC file using the Quartus "Convert Programming Files" tool.
When adding the HEX file, make sure to specify the correct starting address for the file. This address should match the starting address of the code in your Nios application. If the address is incorrect, the Nios application may not start.
Alternatively, you can try using a different flash programming tool to flash the ELF file to the EPC flash. There are many third-party flash programming tools available that may work with your Cyclone 10 device. You can also try contacting Intel/Altera support for assistance with this issue.