Re: [Fx2lib-devel] new, just found this list
Status: Beta
Brought to you by:
mulicheng
From: Dennis M. <de...@ub...> - 2009-01-28 22:31:27
|
Gerry Rozema wrote: >> I'd planned on adding two more example programs. One reads/writes >> eeprom data. The other resets the fx2 development board to it's default >> state if you bork the eeprom data. You can't do the latter on a real >> board usually though! The eeprom routines are already there in the >> library though. The fx2 is hard coded to boot from a certain prom >> address so it's likely even if it's not on the development board, that >> any other board uses the same eeprom address on the i2c bus. In other >> words, the lib routines should work correctly on your device. I'll post >> those examples here in a bit. >> >> > I've been doing more reading, and, I think this is the issue I had, I > was _assuming_ rather incorrectly that the eeprom would be address 0 on > the i2c bus. Just working up a test program to try walking thru all i2c > addresses and read the first couple of bytes from each address. > > I'm expecting to find a C0 eeprom, and, the device id of the cmos sensor > hiding somewhere on that bus. > 8 bit prom address=0x50 16 bit prom address = 0x51 There is a register that will tell you which type of prom it detected at boot too. use the eeprom_read function. you can send the bytes straight to a print function if you have a serial port (probably not). I usually pipe the data across an endpoint for devices with no serial console. -Dennis |