Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20703 Discussions

Erasing MAX-V devices using commandline option.

Altera_Forum
Honored Contributor II
2,008 Views

Hello All, 

Please help me with this simple task. 

 

I've a PCB with three CPLDs (Altera 5M160Z). I'm using following commands to program these CPLDs: 

 

--- Quote Start ---  

c: 

cd 

cd intelFPGA_pro\17.0\quartus\bin64 

start quartus_pgm -z --mode=JTAG --operation="p;C:\Test Firmware\CPLD_U1.pof@1" 

start quartus_pgm -z --mode=JTAG --operation="p;C:\Test Firmware\CPLD_U2.pof@2" 

start quartus_pgm -z --mode=JTAG --operation="p;C:\Test Firmware\CPLD_U3.pof@3" 

--- Quote End ---  

 

 

To give more information, I'm attaching following screenshots: 

1> Windows Device Manager (listing the USB Blaster) 

https://alteraforum.com/forum/attachment.php?attachmentid=14135&stc=1  

 

2> Quartus Programmer Window (on selecting 'Auto Detect'): 

https://alteraforum.com/forum/attachment.php?attachmentid=14136&stc=1  

 

Now my requirement is to create a command line program (BAT file) for erasing all the contents. I've came across 'Erase_All' function, however I failed in my attempt to use the same. 

 

Thank you in advance.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
452 Views

 

--- Quote Start ---  

Hello All, 

Please help me with this simple task. 

 

I've a PCB with three CPLDs (Altera 5M160Z). I'm using following commands to program these CPLDs: 

 

 

To give more information, I'm attaching following screenshots: 

1> Windows Device Manager (listing the USB Blaster) 

https://alteraforum.com/forum/attachment.php?attachmentid=14135&stc=1  

 

2> Quartus Programmer Window (on selecting 'Auto Detect'): 

https://alteraforum.com/forum/attachment.php?attachmentid=14136&stc=1  

 

Now my requirement is to create a command line program (BAT file) for erasing all the contents. I've came across 'Erase_All' function, however I failed in my attempt to use the same. 

 

Thank you in advance. 

--- Quote End ---  

 

 

Waiting for a solution. Anyone?
0 Kudos
Altera_Forum
Honored Contributor II
452 Views

Please help on this issue...!! 

 

Thanks in advance.
0 Kudos
Altera_Forum
Honored Contributor II
452 Views

Use the same commands as you have currently, but change the operation character to "R". Using an operation of "R" erases the specified device. 

 

I'm not sure that you need to specify a filename, that wasn't clear from the instruction manual (https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/manual/tclscriptrefmnl.pdf).
0 Kudos
Altera_Forum
Honored Contributor II
452 Views

Hello TCWOLD, 

 

Thank you so very much for the reply, I'll give a try to what you've suggested. 

Just to be sure, I should use following command: 

 

c: cd cd intelFPGA_pro\17.0\quartus\bin64 start quartus_pgm -z --mode=JTAG --operation="R;@1" start quartus_pgm -z --mode=JTAG --operation="R;@2" start quartus_pgm -z --mode=JTAG --operation="R;@3" 

 

Is this correct? 

 

Thank you again.
0 Kudos
Altera_Forum
Honored Contributor II
452 Views

 

--- Quote Start ---  

Use the same commands as you have currently, but change the operation character to "R". Using an operation of "R" erases the specified device. 

 

I'm not sure that you need to specify a filename, that wasn't clear from the instruction manual (https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/manual/tclscriptrefmnl.pdf). 

--- Quote End ---  

 

 

TCWORLD, Thank you so much. 

I tried out what you'd suggested and it worked for me. However I'd to include the file path. 

Below is what I used: 

 

c: cd cd intelFPGA_pro\17.0\quartus\bin64 start quartus_pgm -z --mode=JTAG --operation="r;C:\Test Firmware\CPLD_U1.pof@1" start quartus_pgm -z --mode=JTAG --operation="r;C:\Test Firmware\CPLD_U2.pof@2" start quartus_pgm -z --mode=JTAG --operation="r;C:\Test Firmware\CPLD_U3.pof@3"
0 Kudos
Reply