All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthias Fechner <idefix@fechner.net>
To: linuxppc-embedded@ozlabs.org
Subject: Re: Howto read I2C on MPC5200 Lite
Date: Fri, 9 Mar 2007 12:35:07 +0100	[thread overview]
Message-ID: <20070309113506.GB6726@server.idefix.lan> (raw)
In-Reply-To: <4b73d43f0703071317o7ae5e531s5eb4b390d41a1b88@mail.gmail.com>

Hello John,

* John Rigby <jrigby@freescale.com> [07-03-07 14:17]:
> On a stock lite5200b the only thing that shows up is a serial
> eeprom at address 0x50.

thx a lot, that tool helped me a lot.
I have written a very small c-program to access the I2C bus to read the
temperature of my MAX6633 and convert it to °C.

That worked fine, but after reading the value some time, the I2C bus
is dead. The kernel says:
i2c_adapter i2c-1: ioctl, cmd=0x705, arg=0x7feaf8ec
i2c_adapter i2c-1: ioctl, cmd=0x706, arg=0x40
i2c_adapter i2c-1: ioctl, cmd=0x720, arg=0x7feaf8f0
i2c_adapter i2c-1: master_xfer[0] W, addr=0x40, len=1
i2c_adapter i2c-1: master_xfer[1] R, addr=0x40, len=2
I2C: timeout

Is that maybe a bug in the I2C driver (i2c-mpc) or is my programm
faulty?
If it helps I can attach the programm.

Best regards,
Matthias

-- 

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook

  reply	other threads:[~2007-03-09 11:35 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-07 12:24 Howto read I2C on MPC5200 Lite Matthias Fechner
2007-03-07 21:17 ` John Rigby
2007-03-09 11:35   ` Matthias Fechner [this message]
2007-03-09 17:11     ` John Rigby
2007-03-09 23:42       ` Matthias Fechner
2007-03-10  2:18         ` where and how to get the latest 2.6 kernel Nick Droogh
2007-03-11  1:01           ` Matthias Fechner
2007-03-11  0:55         ` Howto read I2C on MPC5200 Lite Matthias Fechner
2007-03-15  9:57           ` Domen Puncer
2007-03-16  4:33             ` Matthias Fechner
2007-03-17  8:57             ` Matthias Fechner
2007-03-18 19:06               ` Charles Krinke
2007-03-18 19:11                 ` gdb question regarding step vs breakpoint Charles Krinke
2007-03-18 23:28                   ` Matthias Fechner
2007-03-19  0:14                 ` Howto read I2C on MPC5200 Lite Wolfgang Denk
2007-03-19  1:11                 ` A question regarding step and breakpoints Charles Krinke
2007-03-21  8:34               ` Howto read I2C on MPC5200 Lite Matthias Fechner
2007-04-04  8:49                 ` Domen Puncer
2007-04-25 18:48                   ` Matthias Fechner

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=20070309113506.GB6726@server.idefix.lan \
    --to=idefix@fechner.net \
    --cc=linuxppc-embedded@ozlabs.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.