How to generate .hex file for flash in multi-processor system
Hi All,
I am trying to build up a system with two NiosII processors, but I am having to figure out how to do the boot job for the two processors. Both of the two processors need to boot from on-chip flash. For the first processor, the .text need to be copied to on-chip RAM from on-chip flash when power-on, while for the second processor, it needs to execute-in-place from the on-chip flash.
I am thinking that I can first let the first processor does the memcpy(copy .text from onchip flash to ram) while hold the soft reset for the second processor. When the first processor is done, when release the soft reset. Then the second processor will jump to the its reset vector address in the flash, and starts executing.
But my question is, after I create the two software applications(one for each processor), how do I merge them together into one .hex file for the flash initialization?
Thank you!