Forum Discussion

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

Convert Programming File to Internal Configuration via quartus_cpf.exe?

Dears,

is there a procedure to generate files for "Internal Configuration (Max10)" using quartus_cpf.exe (or from another command line application)?

Now, I must:

1) generate manual on "Converting Programming Files window" (see atached file..)

2) run bat file, where: convert * .rpt to * .hex and run uploader.exe

Step 1) is "too long" and must be docummented. Generating via quartus_cpf.exe could be moved to a bat file 2) and be easy for another developpers.

Thank you, Tomas

3 Replies

  • sstrell's avatar
    sstrell
    Icon for Super Contributor rankSuper Contributor

    This article talks about adding quartus_cpf to a Tcl script to run during compilation:

    https://www.intel.com/content/www/us/en/programmable/support/support-resources/knowledge-base/solutions/rd10312014_481.html

    Does that help? There may be other options available for scripting. Run "<install dir>\quartus\bin64\quartus_sh --qhelp" from the Run window or command line to see the built-in scripting help for all Quartus executables and equivalent Tcl commands.

    #iwork4intel

  • TKapi's avatar
    TKapi
    Icon for New Contributor rankNew Contributor

    Great, that's easy and it works. Thank You!

    Tomas

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

    Hi TKapi,

    To convert multiple sof files into a .pof:

    • use a Conversion Setup File (.cof) created with the Convert Programming Files dialog box in the GUI

    And run command below:

    quartus_cpf -c <input_cof_file>

    i.e. quartus_cpf -c output_file.cof

    To convert single a .sof into a .pof:

    run command below:

    quartus_cpf -c <input_sof_file> <output file pof>

    i.e quartus_cpf -c blinkLED.sof output.pof

    Thanks