Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16780 Discussions

quartus_pgm: Programming option E is illegal

Altera_Forum
Honored Contributor II
4,518 Views

Hello to everyone and sorry for newbie question 

(considering that I don't know too much about Altera FPGA) 

but I don't find the answer to that error either on Altera documentation or in this forum. 

 

I am trying to dump the flash from a Cyclone III board, 

precisely Cyclone III EP3C120F48417N and as flash Intel 256P30B, 

through jtag with quartus_pgm version 13.0sp1 but I always receive the following error: 

"Error (213002): Programming option E is illegal. Refer to --help for legal programming option combinations." 

As programmer, I am using an USB-Blaster that works correctly with a Cyclone V. 

 

Search devices in the chain. 

Info: Command: quartus_pgm -a Info (213045): Using programming cable "USB-Blaster " 1) USB-Blaster 020F70DD EP3C120/EP4CE115  

 

 

Try to examine the flash. 

Info: Running Quartus II 64-Bit Programmer Info: Command: quartus_pgm --operation=E;smtest.pof;EP3C120 --mode=jtag --no_banner Info (213045): Using programming cable "USB-Blaster " Error (213002): Programming option E is illegal. Refer to --help for legal programming option combinations. Error: Quartus II 64-Bit Programmer was unsuccessful. 1 error, 0 warnings  

 

Any suggestions to avoid that error? 

 

Thank you so much!
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
3,394 Views

Hi, 

 

1. Refer page 79 :https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/manual/tclscriptrefmnl.pdf 

Check the examples session for syntax. 

 

Also, refer to the previous thread which may help you. 

https://alteraforum.com/forum/showthread.php?t=45314 

https://alteraforum.com/forum/showthread.php?t=13696 

 

Maybe Flash is encrypted because of which we are getting this error. 

Try the examine option from the programmer itself instead of Nios shell. 

 

Best Regards, 

Anand Raj Shankar 

(This message was posted on behalf of Intel Corporation)
0 Kudos
JonWay_C_Intel
Employee
290 Views

OK, im helping out anyone who is facing the same problem who was sure they had the correct CLI command.

If you are getting the error as below. 
Error (213008): Programming option string "“ei" is illegal. Refer to --help for legal programming option formats.

 

Example: quartus_pgm -c 2 -m jtag -o "ei;device_info.txt;AGFC023R25A" --dev_info

TYPE every character (DO NOT COPY PASTE from document) into the terminal. It seems the terminal interpret the special character differently for the type-in vs copy/paste.

 

 

0 Kudos
Reply