Does anyone know how many times an Altera MAX II CPLD can be reprogrammed? - Page 1
Forum section: electronics / general

author: JoeN
author_rank: Frequent Contributor
timestamp: June 16, 2014, 12:40:18 am
content: I read somewhere a while back that these devices are severely limited in their reprogrammability. I am doing a hobby project now with a EPM240 and I have reprogrammed it probably 30-40 times. I know there are ways of simulating your design prior to programming, but I am not particularly sophisticated with Quartus. Additionally, my design is a state machine that does a lookup on an EEPROM and based on the character looked up then does two more lookups on the EEPROM and then sets outputs. Because this design is sequential in nature and relies on that EEPROM for data, I think simulation would be difficult, so I am just incrementally making changes in my design, programming the IC, and checking results against what I expected. Since all it does is run an LED display, I am not too worried if there is a one-clock glitch or two in there, no one will ever see it. Things are going nicely, but I am worried about frying the chip. How many times is an EPM240 reprogrammable and will it fail silently or with an actual error in Quartus? I tried to research this on Google but there is too much noise and everything I have found just states that MAX IIs use flash and are reprogrammable, but without saying how many times. Does anyone have any information to share? Thank you.

author: free_electron
author_rank: Super Contributor
timestamp: June 16, 2014, 01:35:40 am
content: a few hundred times at least.

author: JoeN
author_rank: Frequent Contributor
timestamp: June 16, 2014, 02:02:19 am
content: Quote from: amyk on June 16, 2014, 01:38:29 amThank you. Any idea why Altera would specify a max and not a minimum or typical? I don't think I have ever seen a value specified that way before. That seems as if to say "we don't guarantee anything about the device being reprogrammable any particular number of times. Good luck." Has anyone had good or bad luck reprogramming them or is what I am doing so out of the ordinary nobody knows?

author: JoeN
author_rank: Frequent Contributor
timestamp: June 16, 2014, 02:08:45 am
content: Interesting, I found a 2005 datasheet with it specified as a minimum:http://resalpes.grenoble.cnrs.fr/tutorat/vhdl_altera/altera/max2_mii5v1.pdfI will consider this a minimum. I think they mean to say "you should consider 100 writes as a maximum though a few more may work out for you if you are lucky."I think I will have my bugs worked out before I hit 100 and I can always desolder this chip and drop another one on my board if I end up frying the current one. I got these cheap from a Chinese seller. They are working well, though.

author: AndyC_772
author_rank: Super Contributor
timestamp: June 16, 2014, 06:35:35 am
content: I have never managed to 'fry' a MAX II during development, and I've used them a lot.I suspect that if you did manage to cook the flash, it would fail with an error when you program and verify the device. These parts are actually SRAM based with a small flash block off to one side, and they configure themselves at power-on - so provided the flash writes and reads back OK, the device should work.

author: JoeN
author_rank: Frequent Contributor
timestamp: June 16, 2014, 06:42:50 am
content: Quote from: AndyC_772 on June 16, 2014, 06:35:35 amThat is what I was thinking, but it puts the mind at ease knowing that it isn't going to just flake out and make me think that it is my Verilog doing it (the usual case). I can live with a dead part as long as I know it is dead. Thank you.

author: AndyC_772
author_rank: Super Contributor
timestamp: June 16, 2014, 06:45:14 am
content: If you're worried, develop your code to the point where it works, then replace the chip anyway.