Solution ID: rd09131999_640
Last Modified: Feb 28, 2006
Product Category: None
Product Area: Other (None)
Product Sub-area: Other ( None )
Device Family: N/A
Title
How can I erase an Altera® device in-system using the JTAG pins?
Description
It is possible to erase a configuration device or MAX® device that supports in-system programmability (ISP) by using the JamTM Player and performing the following steps:
- Create a Jam File (.jam) or Jam Byte-Code File (.jbc) for the targeted device using the Create JAM or SVF file option in the MAX+PLUS® II Programmer.
You can use any Programmer Object File (.pof) targeted for the device to create the Jam File or JBC File.
- At the DOS prompt, type the following command:
jam -dDO_ERASE=1<filename>.jamYou need to have the Jam Player installed on your PC or in your embedded processor for the jam.exe executable to be recognized.
- To ensure that the device was successfully erased, perform a blank check by typing the following command at the DOS prompt:
jam -dDO_BLANKCHECK=1<filename>.jam
You can also erase any MAX device that supports ISP, by reading back the POF from a factory-shipped blank device and re-program the device with this POF. To read the blank POF from a factory-shipped MAX device, you need to "Examine" the factory shipped device by going into the Programmer in the MAX+PLUS II software. This examined file can now be saved and used to re-program the already programmed device to factory default settings. Also, re-programming an already programmed MAX device with this factory shipped blank POF will tri-state all the I/Os after power up.
| This process will work for an configuration device as well, but the device will not pass a blank check. |
For all FLEX® and APEXTM devices, removal of power or driving nCONFIG low for 2 microseconds. automatically erases the device as all the FLEX and APEX devices are made using an SRAM process. Thus, the erasure of any FLEX or APEX device via JTAG is irrelevant.
| Configuration and MAX devices are made using a FLASH and EEPROM process respectively, thus retaining their programming after the power supply has been disconnected to the device. |
Feedback
Altera does not warrant that this solution will work for the customer's intended purpose and disclaims all liability for use of or reliance on the solution.
