> On 2/3/07, Andrew Biondi <quark.flavour@...> wrote:
> > Hi all, I'm trying the i2c-test program, but I'm having some troubles
> > i2c.
> > Configuration:
> > gs 200xm connex (2.6.18 gcc 3.4)
> > robostix (programming jumper done)
> > tweener (modified, I get the console correctly)
> > I've loaded the i2c-test with the AVR-PG1 and PonyProg, blue led on the
> > robostix slowly blinks.
> How slowly? It should on for 1 second, off for 1 second.
> You may have forgotten to program the fuses. See:
The blue led blinks correctly, 1 second on and 1 second off.
> Removed i2c-dev and i2c-pxa correctly, run i2c-test
> > and got:
> > gumstix: SCL 1 SDA 1
> > when I press space bar I keep reading the gumstix line and I dont see
> > the robostix line.
> Which also indicates that the fuses may be wrong. Getting the fuses
> wrong will cause the baud rate to be incorrect.
I'll check the fuses again, thanks!
> If I load the i2c-io program and try the i2c-io info command I got a
> > "exhausted retries" (timeout) error.
> > I'm probably missing something obvious... any idea? Thanks!
> i2c-io on the gumstix needs the i2c bootloader loaded on the gumstix
> and then you need to load i2c-io.hex using i2c-load.
> Using the bootloader also requires slightly different fuses than the
> ones shown on the fuses page.
I've tried to use the i2c bootloader with the modified fuses, but when I use
the i2c-io I get the "exhausted retries" error.
Also, make sure that you power off and unplug the gumstix when usng an
> ISP programmer with the robostix.
I use the robostix alone when I programming with the ISP, as specified in
the documentation. When I write the program to the flash of ATmega128
PonyProg is very slow, it takes several minutes to upload the i2c test for
example, and the verify stops after reaching 5% though the firmware seems
to run correctly, I've also tried the flash led and it works.
Thanks for the suggestion, I'll check the fuses and try again.
From: Dave Hylands <dhylands@gm...> - 2007-02-04 09:12:48
> I use the robostix alone when I programming with the ISP, as specified in
> the documentation. When I write the program to the flash of ATmega128
> PonyProg is very slow, it takes several minutes to upload the i2c test for
> example, and the verify stops after reaching 5% though the firmware seems
> to run correctly, I've also tried the flash led and it works.
> Thanks for the suggestion, I'll check the fuses and try again.
Hmmm. So have you tried to use the uisp method? It only takes a few
seconds to program the robostix.
Also, in order for the i2c-test program on the gumstix to printout the
output of the i2c-test.hex file on the robostix, it requires that the
serial port on the gumstix be connected to the serial port on the
robostix. This requires the same jumpers that are shown on this page:
Given that the LEDs are flashing at the correct rate, this seems to
indicate that you have the speed portion of the fuses set correctly.
At the factory default setting the LEDs would be on for 16 seconds and
off for 16 seconds.
About the i2c bootloader, i2c-io will fail until i2c-io.hex is loaded
to the robostix using i2c-load. If you try to load i2c-io.hex using
PonyProg (or any other programmer) it will wipe out the bootloader,
and i2c-io.hex won't function properly without the bootloader.
Vancouver, BC, Canada