Forum Discussion
Altera_Forum
Honored Contributor
14 years agoSince instance numbers can become jumbled during compilation the safest way to be sure is to inspect the .jdi file in the hardware project top level directory to figure out which core maps to which ID.
For just downloading code I recommend using the name of the processor instead. If you have processors called "NiosA" and "NiosB" this is what you would do: nios2-download -r -g --cpu_name NiosA <elf for Nios A> nios2-download -r -g --cpu_name NiosB <elf for Nios B> nios2-terminal has a similar field called '--instance_name=NAME' so you just replace "NAME" with the name of your JTAG UART. Unfortunately the Nios II flash programmer doesn't have a similar feature at the command line (but in the SBT4E it probably can parse the instance out of the .jdi file for you). *edit* I think you have to supply the .jdi file at the command line for this to work. Type nios2-download --help for more details.