Forum Discussion
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-boot1 Reply
- Altera_Forum
Honored Contributor
flash principle:
When .bin transfered to .flash,the programm add a line code between every data bytes,so .flash file is much bigger than .bin. (just like SDK's GERMS moniter style,but in hal it's separated)