Forum Discussion

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

how to automatically program using the usb blaster?

Hi,

we are working with altera device that we need to program each time we power the board and it done alot and each time we need to program using the altera blaster program ,open, select file (the programming file is fixed),program ... time wasted

is there api that we can write my own program that will do it automatically my singal mouse click? is there api for the usb blaster? that could help !!

Thanks

6 Replies

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

    Isn't there a flash memory connected to the FPGA on your board? If there is one, you only need to program the flash once. Then every time at power on, the flash will automatically load the programming file into the FPGA.

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

    Hi,

    the board is connected directly to the usb blaster, we use this configurtion for testing so we do not have flash memory memory...

    in real life the board is connect to the system that is able to program it using other fpga.

    i looking for way program thru pc in the lab for testing to save the time programing each time i power the board.

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

    Have you tried using the command line programmer?

    If you have one device on your chain then the command is something like:

    quartus_pgm -m jtag -o p;<yourfile>.pof
    On Linux you'll need to escape the semicolon.

    If you have more than one cable available or more than one device on the cable then it gets a bit more complex but the command line programmer can handle these cases.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It worked ! i just needed to add the cable configuration by added "-c usb-blaster" to the command line.

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

    HI, I also am seeking an API in order to integrate USB blasting into our test software. the command line command helps, but an API would save some operator intervention.

    Is there an API? There must be a solution for aiding factory firmware programming. Labview?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi, I have also the same issue (it's the first time that I use Altera Quartus Programmer), but I need to program and then erase a MaxV CPLD directly from labview, does anyone have an example please? I find some command line in order to program it but nothing to erase it... Is there any document about it?