Forum Discussion

NuvKFC's avatar
NuvKFC
Icon for Contributor rankContributor
4 years ago

Why the device of quartus_cpf command is illegal?

Above picture show the setting in the Convert Programming Files GUI.

I want to translate it to TCL commands.

The TCL command is as follow picture.

Unfortunately, tool tell me that device is illegal as follow picture.

Command:

pof_convert.tcl file:

Error message:

6 Replies

    • NuvKFC's avatar
      NuvKFC
      Icon for Contributor rankContributor

      Hi YuanLi_S_Intel

      Thank you, YuanLi_S_Intel, very much.

      The generated pof file name is different every time.

      How to configure the cof file's pof file name by using "quartus_cpf -c <cof file>" command?

  • ak6dn's avatar
    ak6dn
    Icon for Regular Contributor rankRegular Contributor

    As noted in the earlier post, on Quartus 13.0sp1 I use a configuration file .cof and run quartus_cpf -c design.cof and that works just fine.

    You just have to put all the parameters in the .cof file and not on the command line.

    Contents of my design.cof file:

    <?xml version="1.0" encoding="US-ASCII" standalone="yes"?>
    <cof>
    	<eprom_name>EPCS4</eprom_name>
    	<flash_loader_device>EP2C20</flash_loader_device>
    	<output_filename>design.jic</output_filename>
    	<n_pages>1</n_pages>
    	<width>1</width>
    	<mode>7</mode>
    	<sof_data>
    		<user_name>Page_0</user_name>
    		<page_flags>1</page_flags>
    		<bit0>
    			<sof_filename>design.sof</sof_filename>
    		</bit0>
    	</sof_data>
    	<version>4</version>
    	<options>
    		<map_file>1</map_file>
    	</options>
    </cof>
    • NuvKFC's avatar
      NuvKFC
      Icon for Contributor rankContributor

      Hi ak6dn

      Thank you, ak6dn, very much.

      I will try to use Convert Programming Files GUI to generate the cof file.

      Do you mean that?

  • ak6dn's avatar
    ak6dn
    Icon for Regular Contributor rankRegular Contributor

    If I recall correctly, I think I used that tool the first time to build it in a GUI.

    Now I just modify/build it using a text editor copy/paste/edit.

    The .cof file is a simple XML format text file, so a text editor works just fine.

    • NuvKFC's avatar
      NuvKFC
      Icon for Contributor rankContributor

      Hi ak6dn

      Thank you, ak6dn, very much.

      Because the generated pof file name and sof file are different every time, could I use the variable in the cof file?