Forum Discussion

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

Error using command line program function

I'm using the command line function to program a device via the USB blaster cable.

The line I wrote is this:

quartus_pgm.exe -c usb-blaster -m jtag -o pv;"myfile"

I've got an error when i try run this:

error (209062): flash loader ip not loaded on device 1.

If I use the quartus II GUI programmer application. The programming is running without problem.

I also noticed if I first program using the GUI, and do not reboot/restart the circuit, and then try to use the command line i have described above to program the IC again, the process runs OK.

Someone who encountered this problem?

8 Replies

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

    what type of file is "myfile"?

    it sounds like the command is expecting a SFL/PFL flash loader image on the FPGA but its not there. the GUI is loading the expected SFL which is why the command will work after running the GUI
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    what type of file is "myfile"?

    it sounds like the command is expecting a SFL/PFL flash loader image on the FPGA but its not there. the GUI is loading the expected SFL which is why the command will work after running the GUI

    --- Quote End ---

    Thanx for answering.

    myfile is a .JIC file.

    Do you think that there is a switch in the command line functions that will make this work without the GUI?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    i haven't tried a .jic from command line yet, i'll see if it works on my end

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

    a work around might be creating a dummy SFL .sof, loading it first, then running the above command. since the command worked after you used the GUI to program the .jic (the .jic SFL was still loaded in the FPGA), this solution should work

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

    --- Quote Start ---

    a work around might be creating a dummy SFL .sof, loading it first, then running the above command. since the command worked after you used the GUI to program the .jic (the .jic SFL was still loaded in the FPGA), this solution should work

    --- Quote End ---

    I noticed that a switch in the GUI programmer options menu:

    use the enhanced mode serial flash loader( sfl) ip for factory default helper image

    When this is not checked, I've got the same error as in the command line .

    Maybe there is a switch for this in the command line tool?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I found it my self:

    I use the "i" switch to "Initilalize Bridge Device" to set this option mentioned above.

    So the cmd will be like this:

    quartus_pgm.exe -c usb-blaster -m jtag -o ipv;"myfile"

    This works with the .jic file
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi there,

    (sry if i should have opened a new thread for this)

    I got the same problem when I run the command aocl flash hello_world.aocx

    I use Linux (centOS) which runs on a remote server.

    Do you think this is the same problem with the bridge and how do I turn it on using this command?

    Thanks for any help

    p.s.: i found a thread where the solution was that : "i bungled connecting the break-out board to the fpga. i have now done it properly and aocl flash works like a chram." .

    What is a break-out board?

    What should I do - I do not understand the solution...