//sof转成bin分成两步
1. sof2flash --epcs --input=<sof file name>.sof --output=<flash output file name>.flash //先把sof转成flash
2. nios2-elf-objcopy -I srec -O binary firmware.flash firmware.bin //将flash 转bin
//elf转成bin只用一步
Nios2-elf-objcopy -O binary bootstrap.elf bootstrap.bin //将elf 转化为bin文件
也可以先将elf转成flash,再将flash转成bin
elf转flash如下:
Elf2flash --epcs --input=hello_led.elf –output=hello_led.flash