Altera_Forum
Honored Contributor
20 years agonios2-flash-programmer user Guide
the right format of programming a bin to the flash like this:
step1:(transfer .bin to .flash) $bin2flash --flash=U5 --location=0x0 --input=XXX.bin --output=XXX.flash (the --location=0x0 means the offset of ur flashchip to write.) step2: $nios2-flash-programmer --input=XXX.flash --sof=../rca_cy1c12_board.sof --base=0x00200000 (the --base means ur flash chip physical address in sopc of ur ../rca_cy1c12_board.sof flash programmer project,don't confuse it with --location. --flash=U5 means ur flash chip name in sopcbuilder ) hope it helpful ps: Thanks to smcutt and liangyi,for ur disscusion and emailing me source code of U-boot