Re: [Fx2lib-devel] eeprom reset program
Status: Beta
Brought to you by:
mulicheng
From: Gerry R. <ge...@ro...> - 2009-01-29 18:26:52
|
Ok, this did the trick. I fixed my git installation first, so I could check out the whole lib, instead of copy/paste from the viewer online. Built it all, seemed to build ok, then I wrote up a quick little thingy to read the eprom instead of write it. Two of my devices it read back fine, and I found exactly what I expected, a C0 format, and to my surprise, only 8 bytes there. The third one surprised me, it's got a C2 format and appears to have some firmware embedded into a larger eprom. All of these are in sealed packages which will entail breaking the plastic to open up and look at the parts on board. I am _hoping_ I wont have to resort to that, because one of them will definitely not go back together if I do that. Just another 'point of interest', the third one did give me a bit of trouble initially, kept reading C3 back from the first byte in the eeprom, and that's not valid. Then for giggles, I commented out the one line that sets up cpu clock, unplugged and replugged the device so that it comes up 'stock out of the box', and voila, now when I put it into reset, load my own little bit (using cycfx2prog for now), take it out of reset, let it run the program that dumps eprom contents into ram, reset again, then dump dram, there it was, a properly formatted C2 header. It wont take me very long to poke at all the registers and find out what setup the on board firmware is putting in place. I think I'm away to the races at this point. Next step, gonna write something up that dumps the entire eprom out of all of them, then store that away for safe keeping, and _then_ start reprogramming eproms. Dennis Muhlestein wrote: > I added a reset program to the examples in the fx2lib repository. This > is the program I used to reset the fx2 back to it's default state if I > happened to bork the eeprom data. The eeprom/read/write routines are in > the i2c header file by the way. > > -Dennis > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Fx2lib-devel mailing list > Fx2...@li... > https://lists.sourceforge.net/lists/listinfo/fx2lib-devel > |