Forum Discussion

MGhad3's avatar
MGhad3
Icon for New Contributor rankNew Contributor
6 years ago

Nios II flash programmer error

I get the error below during flash programming the elf file using the Nios II flash programmer. what is the reason?

Error code: 4 for command: nios2-flash-programmer "C:/CyclonV/C5_epcs_flash_controller_0.flash" --base=0x10000000 –epcs --accept-bad-sysid --device=1 --instance=0 '--cable=USB-Blaster on localhost [USB-0]' --program --verbose

3 Replies

  • Ahmed_H_Intel1's avatar
    Ahmed_H_Intel1
    Icon for Frequent Contributor rankFrequent Contributor
    Hi, The NIOS II flash programmer tool isn't recommended any more, can you please use one of the recommended procedures? The JTAG Indirect Confoguration procedure .jic file or Parallel flash programmer procedure I am sharing an example of using these two procedures to program the serial or parallel flash device:
  • Ahmed_H_Intel1's avatar
    Ahmed_H_Intel1
    Icon for Frequent Contributor rankFrequent Contributor

    Here is the way to create a .JIC file to program your flash:

  • Ahmed_H_Intel1's avatar
    Ahmed_H_Intel1
    Icon for Frequent Contributor rankFrequent Contributor

    Here is the procedure to use the PFL in programming a parallel flash device: