ArticleDirectory
- Introduction
- Solution: SOF + elf> flash> hex> JIC
- Reference
Introduction
After downloading the flash programmer by using the niosii flash programmer, the problem that the program cannot be started from the new source is concentrated in the following versions:
- 9.0sp2
- 9.1, 9.1sp2
- 11.0
Basically, there are bugs in these series FLASH leader versions. Among them, 11.0 cannot be erased when the JIC is downloaded.
Solution: SOF + elf> flash> hex> JIC
According to Edison, it is learned that there are predecessors on alteraforum to provide a solution. It seems simple, but the curative effect is better.
- In the qii project folder, create a folder. Take SOF + elf_jic as an example;
- Copy SOF and elf compiled by qii and NII to this folder;
- Create a new SH file in the following format, named make_hex.sh here; (SH file, bash batch file; similar to Doc BAT file)
Sof = "de0_nano.sof" elf = "de0_nano.elf" Echo "sof> flash... "; sof2flash -- EPC -- input = $ sof -- output = HW. flash -- quietecho "elf> flash... "; elf2flash -- EPC -- after = HW. flash -- input = $ elf -- output = Sw. flashecho "cat flash... "; cp hw. flash hw_sw.flash; cat sw. flash> hw_sw.flashecho "Flash> hex... "; nios2-elf-objcopy -- input-target SREC -- output-target ihex hw_sw.flash hw_sw.hexecho" del flash... "; RM-f *. flash
- Modify 1st ~ 2. Save the name of the row. Start>Program> Altera> niosii eds XX. x> niosii XX. x command shell. Here we use the niosii 10.1 command shell for demonstration (figure 1 ).
Figure 1
- Open qii> File> convert programming files (Figure 2), remove sof data, and click Generate to generate the JIC.
Figure 2
- Download JIC directly. OK.
Reference
1. alteraforum. JIC file generation
Http://www.alteraforum.com/forum/showthread.php? P = 77416