From: Vladimir A. Gurevich <vag@paulidav.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] SPI EEPROM on MBX problem
Date: Sat, 18 Mar 2006 13:20:59 -0800 [thread overview]
Message-ID: <441C79BB.5050701@paulidav.org> (raw)
In-Reply-To: <200603182135.45772.antonio.dibacco@aruba.it>
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
next prev parent reply other threads:[~2006-03-18 21:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-18 20:35 [U-Boot-Users] SPI EEPROM on MBX problem Antonio Di Bacco
2006-03-18 21:20 ` Vladimir A. Gurevich [this message]
2006-03-18 21:50 ` Antonio Di Bacco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=441C79BB.5050701@paulidav.org \
--to=vag@paulidav.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox