Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

NIOS II Flash Programmer Error

Hello,

In NIOS II Flash Programmer, when trying to run the following command...

nios2-flash-programmer "C:/FLASH/Flash/flash/CycloneBootLoader_FLASH.flash" --base=0x8000000 --sidp=0x30A530 --id=0x4211000 --timestamp=1370052581 --device=1 --instance=0 '--cable=USB-Blaster on localhost [USB-1]' --program --verbose

I get an error that the flash erase fails.

Info: Using cable "USB-Blaster [USB-1]", device 1, instance 0x00

Info: Resetting and pausing target processor: OK

Info: Reading System ID at address 0x0030A530: verified

Info: 00000000 ( 0%): Erasing

Info:

Info: Erase failed at offset 0

Info: Leaving target processor paused

Error: Error code: 1 for command: nios2-flash-programmer "C:/Projects/RF_Controller/FLASH/Flash/flash/CycloneBootLoader_FLASH.flash" --base=0x8000000 --sidp=0x30A530 --id=0x4211000 --timestamp=1370052581 --device=1 --instance=0 '--cable=USB-Blaster on localhost [USB-1]' --program

Tool = Quartus II 64-bit Version 12.1 Build 143 01/31/2013 Full Version with Service pack 1.33

Any ideas?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    My first guess would be that the timing of the flash interface is off, but there could be other reasons for it.

    Try adding the --debug option to the command line for more information about what's going on.