Forum Discussion

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

Programming problems

Hello,

I have an altera cyclone (1c20) Nios-II dev board, and am attempting to get uclinux up and running. However, I'm running into an odd problem when trying to upload...

I always get either

<div class='quotetop'>QUOTE </div>

--- Quote Start ---

------------------------------------------------

Microtronix Linux Extensions

Version 1.3, Built December 30th, 2004

------------------------------------------------

Feb 20, 2005 9:09:37 PM - (INFO) nios2-flash-programmer: Launching Quartus Progr

ammer to download:

c:/altera/kits/nios2/components/altera_nios_dev_board_cyclone_1c20/system/a

ltera_nios_dev_board_cyclone_1c20.sof

Pre-Reading 1726KBytes of data from U5:

|----.----+----.----|

******Read failed @00080000

Feb 20, 2005 9:10:20 PM - (SEVERE) nios2-flash-programmer: Error copying data to

the flash target[/b]

--- Quote End ---

The progress bar and "Read failed" address are inconsistent, but I have yet to get past this step.

OR I get something along the lines of...

<div class='quotetop'>QUOTE </div>

--- Quote Start ---

------------------------------------------------

Microtronix Linux Extensions

Version 1.3, Built December 30th, 2004

------------------------------------------------

Feb 20, 2005 9:04:09 PM - (INFO) nios2-flash-programmer: Launching Quartus Progr

ammer to download:

c:/altera/kits/nios2/components/altera_nios_dev_board_cyclone_1c20/system/a

ltera_nios_dev_board_cyclone_1c20.sof

Feb 20, 2005 9:04:19 PM - (SEVERE) nios2-flash-programmer: Error opening target

hardware

Failed to get header for variable-payload packet.

Feb 20, 2005 9:04:19 PM - (SEVERE) nios2-flash-programmer: Unable to open fla

sh-device after successfully communicating

with target.

It is likely that you are using a flash-programming FPGA design which

was not created for your target board.

In order to program flash, you must first create a purpose-built

flash-programming design (i.e. FPGA configuration) and associate it with

your particular board. The Nios development kit is delivered with purpose-bui

lt

flash-programming designs pre-built for several development boards. If you wi

sh

to program flash on your own board, you must first create a flash-programming

design.

The process of creating a flash-programming design for your board is mostly

automated. From a bash-shell, execute this script:

mk_target_board --help

The help-message includes references to other documentation on programming

flash and targeting Nios systems to custom board designs.

- exiting.[/b]

--- Quote End ---

With inconsistant "SEVERE" messages, but generally along the lines of what&#39;s above.

The odd thing is that I can program this .sof just fine using the Quartus programmer, and, unfortunatly, when I do so, nios2-flash-programmer attempts to reprogram it.

Any thoughts? Could this be a hardware issue? Any help would be greatly appreciated, as I&#39;m at a bit of a loss at this point.

Thanks,

--Nate

2 Replies

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

    After several hours of repetedly attempting to flash various files different ways, finally some progress, but still not quite there.

    <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    ------------------------------------------------

    Microtronix Linux Extensions

    Version 1.3, Built December 30th, 2004

    ------------------------------------------------

    Feb 21, 2005 12:59:31 AM - (INFO) nios2-flash-programmer: Launching Quartus Prog

    rammer to download:

    c:/altera/kits/nios2/components/altera_nios_dev_board_cyclone_1c20/system/a

    ltera_nios_dev_board_cyclone_1c20.sof

    Pre-Reading 1726KBytes of data from U5:

    |----.----+----.----|

    ********************* (18.813 sec).

    Erasing 27 Sectors:

    |----.----+----.----|

    ********************* (31.703 sec).

    Writing 1728KBytes :

    |----.----+----.----|

    *Unable to send write-packet @49152

    buffer-chunk write failed @49152

    erase-block write failed @49152

    write failed @0

    Feb 21, 2005 1:00:37 AM - (SEVERE) nios2-flash-programmer: Unable to write to fl

    ash

    Feb 21, 2005 1:00:37 AM - (SEVERE) nios2-flash-programmer: Error: Write-operatio

    n failed on device. - exiting.[/b]

    --- Quote End ---

    I&#39;m starting to suspect a bad usb-blaster, but I could be wrong.

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

    I&#39;ve also encountered the:

    Feb 20, 2005 9:04:19 PM - (SEVERE) nios2-flash-programmer: Unable to open flash-device after successfully communicating with target.

    error. This problem went away after I upgraded to Quartus 4.2

    Hope this helps.

    Terry G.