Need Help To Reprogram Cypress MCU - Page 1
Forum section: electronics / beginners

author: Mechatrommer
author_rank: Super Contributor
timestamp: November 29, 2011, 04:28:16 pm
content: hi i have this Altera USB Blaster that uses Cypress CY7C68013A as controller, since i'm not currently into programming FPGA, i think i wanna upload the original program in case it is lost in the chip, and or reprogram the chip for different purpose. and then upload again the original FW to become Altera USB Blaster again.from the net adviced me to download the Cypress Console to do the reprogramming. but i dont see the download button, ie to save the program from the chip into my PC, does anyone know how to download the program?

author: tinhead
author_rank: Super Contributor
timestamp: November 29, 2011, 05:39:20 pm
content: by "default" the firmware for FX2 would be on your PC, however here it can be also (in case you haven't installed anything)in the E2PROM. You should consider using any kind of I2C reader instead of Cypress Console - the download button isas you robably already recognized there (older console version) but download means PC -> µC(EEPROM).Btw, funny design, so it seems chinese guys finally managed to save another one dollar, the clone i'm using isbased on FTDI and Altera CPLD, just FX2 (and level shifter) is definitely cheaper.And yes, in principle there are some tools to read back, but honestly the risk of making a worng backup(especialy under windows it sucks, for linux there are some better ways) is not worth. I personalyprefer the hard way, desolder, read back, program in empty, check for function.The soft way, if you screw up and read back crap will anyway need to solder empty E2PROM to checkthe content (or play russian roulette and re-program org. chip ...)

author: Mechatrommer
author_rank: Super Contributor
timestamp: November 29, 2011, 05:55:19 pm
content: Quote from: tinhead on November 29, 2011, 05:39:20 pmyes i can desolder, but any schematic how to connect? do i need extra programmer/tool to read direct from chip pin? sorry i'm newbie, what do you mean by resoldering back empty E2PROM and check the content?

author: deephaven
author_rank: Frequent Contributor
timestamp: November 29, 2011, 06:26:11 pm
content: Don't do it! Keep the USB Blaster as that and make/get another board for programming with something else. Much less risky!

author: Mechatrommer
author_rank: Super Contributor
timestamp: November 29, 2011, 11:20:06 pm
content: Quote from: deephaven on November 29, 2011, 06:26:11 pmcan you elaborate? i did press bulk transfer and file transfer: 0:endpoint1 IN, but messaged as failed. according to help file, its to download to PC. did i broke something?

author: deephaven
author_rank: Frequent Contributor
timestamp: November 30, 2011, 08:59:40 am
content: Quote from: Mechatrommer on November 29, 2011, 11:20:06 pmWhat I meant was rather than risk breaking the very useful USB Blaster, wouldn't it be better to get/make another board to experiment with?

author: Mechatrommer
author_rank: Super Contributor
timestamp: November 30, 2011, 10:02:02 am
content: ok thanks, i thought there is easy way.

author: kripton2035
author_rank: Super Contributor
timestamp: November 30, 2011, 10:14:54 am
content: they are quite cheap today ...http://www.ebay.com/itm/ws/eBayISAPI.dll?ViewItem&item=230684823584regards,

author: Mechatrommer
author_rank: Super Contributor
timestamp: November 30, 2011, 11:13:48 am
content: Quote from: kripton2035 on November 30, 2011, 10:14:54 amyes i know that thanks. the problem is upload/download software. even if i buy many of it, the question is still the same. i could have many "broken" of it if i dont know how to. these chinese sellers sometime are less helpful. you ask them how to, they will reply, you search the internet "lor"! but i can see in the link its ezusbfx2lp, maybe i'll go and download the software from cypress. thanks.edit: err, infact thats what i've been downloading, maybe i should look more into help files and example.

author: tinhead
author_rank: Super Contributor
timestamp: May 20, 2012, 11:26:05 pm
content: finally i got that cable too, dumped the firmware and recognized the original sources of ithttp://fpga4u.epfl.ch/wiki/FX2This cheap cable is using it's using EPFL fw 4.2, with an extra "copyright armjishu.com" stringwhich of course is a bullshit.

author: Mechatrommer
author_rank: Super Contributor
timestamp: May 20, 2012, 11:36:58 pm
content: your providing the wiki, not the cheapo cable you got from. anyway, i managed to program my blaster to become 3-1, the program is actually in i2c eeprom, now it has inside 3 eeproms stacked on top one another and using switch to change the purpose

author: free_electron
author_rank: Super Contributor
timestamp: May 21, 2012, 12:02:05 am
content: The 68013 in those designs does not contain ANY firmware ! Firmware is loaded from the PC side . So there is no point in trying to 'read' what is there.The external eeprom only holds a vid/pid pair and some USB strings to notify the driver on the computer what this thing does. It is then the drivers task to load the firmware in the cypress chip. The cypress chip runs from RAM.There is a mechanism to store code in an eeprom but you need a 24c128 device minimum to do this. And the bootpins are set differently.Let me guess : you are trying to use selectable external eeproms so you can 'switch' between 'byeblaster' , 'xilinx' , 'salae' , 'usbee' and a few others right ?That is just despicable. If you want a salae just buy one. If you want a usbee : buy one. The byteblaster can be gotten officially from Terasic ( they designed it for altera ) for 50$They are not that expensive. I personally know the two guys that run Salae (they had an open-house day a couple of months ago in candlestick park so i went by for pizza). They put a lot of effort in the code. The hardware costs peanuts but is wel engineered and sits in a nice solid aluminum machined housing and not a crappy flimsy plastic box.The Salae's are very well made.They showed a whole bag with chinese 'clones'. There's at least 40 different ones out there... All penny pinched 'designs'. the Salae has additional protection circuitry on the pins that none of the wing-wang-wongs have. We all need to live. If everyone rips off the people that are trying to make an honest buck by 'stealing' .. it'll all go to snot.THe USBee actually can detect fakes... the chinese clones use a slightly different eeprom than the original one. If the usbee software detects this eeprom ( they read the id code of the eeprom) it erases the eeprom.The guys at salae explained how it is done. They can detect it too, but have chosen not to react to it.So of course we asked them : why not ? . Answer : We think there is enough people out there that are willing to pay for something they like to keep us in business.I kind of like that attitude.The real Altera byteblaster does use a FTDI chip and a little CPLD. it also use Maxim real level shifters that none of the wing-pang-fong's have.The same crap is going on with AVR and PIC programmers. There's many cheapo programmers out there based on the ASP in camouflage... but put the real programmer next to it and you will see biiiig differences. Lots more protection circuitry , real level shifters and an overall better build quality.just get the real deal. it ain't that expensive, especially not for something you will get a lot of usefull years from and have a lot of fun with.

author: Mechatrommer
author_rank: Super Contributor
timestamp: May 21, 2012, 12:13:56 am
content: oppps! i shouldnt have made the post.

author: tinhead
author_rank: Super Contributor
timestamp: May 21, 2012, 12:27:39 am
content: Quote from: free_electron on May 21, 2012, 12:02:05 amthe actuall cheap programmer does not need firmware on PC side, fw is already stored in EEPROM and NOT selectable.So it is only Altera Blaster clone, nothing less and nothing more.It does use the EPFL firmware (that the wiki link i posted before), however sources are a littbe bit modified (pinout).

author: amyk
author_rank: Super Contributor
timestamp: May 21, 2012, 07:33:42 am
content: Quote from: tinhead on May 21, 2012, 12:27:39 amYou're correct, it's specified in the datasheet on page 4:QuoteThe firmware from EEPROM method is probably less common than USB boot because it is not as flexible and requires a much larger EEPROM.

author: tinhead
author_rank: Super Contributor
timestamp: May 21, 2012, 10:09:16 am
content: Quote from: amyk on May 21, 2012, 07:33:42 amwhat datasheet are you talking about?

author: tinhead
author_rank: Super Contributor
timestamp: May 22, 2012, 02:29:49 pm
content: in case someone need Altera Blaster and don't wish to buy/wait to get one from e.g. ebaysee attached schematic and firmware.Yes, it is dump from a chinese programmer, but honestly i don't give a shit about them.They do not respect GPL so i'm posting their changed (binary) code.The whole thing is very simple, based on Cypress FX2LP chip.EDIT: i've compiled my own firmware. It based onhttp://fpga4u.epfl.ch/wiki/FX2sources but configured/matchinghardware from my schematics.There is however one difference to the chinese (dumped) version posted before, i did it properly:- no ghost endpoints (chinese version is having 4 endpoints, 2 are for Altera Blaster but two are not used,they remains from the EPFL firmware but they don't need to be there for Altera Blaster functionality)Due this change your OS will see now one instead of two Altera Blasters (as with chinese version)- no unecessary code inside.EDIT: you have to use SDCC 2.9 to be able to compile my code.

author: amyk
author_rank: Super Contributor
timestamp: May 23, 2012, 06:15:22 am
content: Quote from: tinhead on May 21, 2012, 10:09:16 amhttp://www1.futureelectronics.com/doc/CYPRESS/CY7C68013A-56PVXCT.pdf

author: tinhead
author_rank: Super Contributor
timestamp: May 23, 2012, 07:52:11 am
content: Quote from: amyk on May 23, 2012, 06:15:22 amyou probably misunderstood something, i was talking about what kind of firmware is beeing used by this programmen andnot how this works, but nevermind.I did created own firmware in the meantime, see above.