From: Antonio Di Bacco Date: Sat, 18 Mar 2006 22:50:05 +0100 Subject: [U-Boot-Users] SPI EEPROM on MBX problem In-Reply-To: <441C79BB.5050701@paulidav.org> References: <200603182135.45772.antonio.dibacco@aruba.it> <441C79BB.5050701@paulidav.org> Message-ID: <200603182250.05734.antonio.dibacco@aruba.it> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Yes, I'm feeling so stupid! Thank you very much! On Saturday 18 March 2006 22:20, you wrote: > Hello Antonio, > > Antonio Di Bacco wrote: > >I use the sspi command like this: > > > >sspi 0 8 05 (for Gurevitch patch) > > 05 is the code read a configuration register. > > > >Sometimes the EEPROM answer FF, some others 00 , it is completely > > randomic. > > The command you are using is not exactly correct. You specified only 8 > bits to transfer and this is enough to only send the command (0x5). But > SPI master is also supposed to provide clock for the slave to answer. > So, use a different command: > > sspi 0 16 05 > > Then you'll see that the second byte of the response contains the corret > value. > > Same applies when you decide to read your eeprom. > > Happy hacking, > Vladimir