suraj56 / sanguino

Automatically exported from code.google.com/p/sanguino
0 stars 0 forks source link

Wire lib not working on ATmega328 after Sanguino install #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install 1.4-r1 to IDE (REL 13 & 15 tried)
2. Set boards to ATmega328
3. Compile working I2C sketch & upload to 328

What is the expected output? What do you see instead?
Sketch compiles but will not start. Same sketch will work is recompiled and 
put on a 644P

What version of the product are you using? On what operating system?
sanguino software 1.4-r1 to Arduino IDE REL 13 & 15

Please provide any additional information below.

I notice that "|| defined(__AVR_ATmega328P__)" is missing from #define in 
line 67 of twi.c. 
(I added it, but still no joy.)

Original issue reported on code.google.com by johngiam...@gmail.com on 14 Aug 2009 at 2:35

GoogleCodeExporter commented 8 years ago
Adding this to twi.c (+ the above) fixed the problem . . .

#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega8__) || 
defined(__AVR_ATmega328P__)
SIGNAL(TWI_vect)
#elif defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644__)
SIGNAL(SIG_2WIRE_SERIAL)
#endif

The wire lib is now working on the 644 and the 328.
John

Original comment by johngiam...@gmail.com on 21 Aug 2009 at 3:50

GoogleCodeExporter commented 8 years ago
fixed in 0023r3 (cleaning up old issues)

Original comment by sutt...@gmail.com on 19 Feb 2012 at 10:31