Forum Discussion
Altera_Forum
Honored Contributor
8 years agoErasing MAX-V devices using commandline option.
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.5 Replies
- Altera_Forum
Honored Contributor
--- 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? - Altera_Forum
Honored Contributor
Please help on this issue...!!
Thanks in advance. - Altera_Forum
Honored Contributor
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). - Altera_Forum
Honored Contributor
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:
Is this correct? Thank you again.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" - Altera_Forum
Honored Contributor
--- 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"