Teensy 3.1 Arudino 1.0.5-r2 Wire/i2c_t3 undefined reference

Status
Not open for further replies.

RichardFerraro

Well-known member
Using teensyArduino over Arduino 1.0.5-r2 I have successfully executed a program on the teensy 3.1 that utilizes a library (bounce) so I think my setup is correct.

When I include "i2c_t3" or even "Wire.h" I get undefined reference to `i2c_t3::begin(...)' or to 'Wire' (and many others) both using Brians master.ino or my own.

i2c_t3 folder, and Wire folder are present in libraries.

What am I missing?

thanks,

Richard
 
Where exactly are these libraries located in your setup ?

May be I am being a bit dull at the moment, but who is Brian ?
Could you post that master.ino ( in code rage if possible ;-) ? That would take some guesswork out of the equation.
 
Hi,
I made the i2c_t3.cpp changes listed as well as the Wire.h and Wire.cpp changes Paul posted, but the attached code still gives error: undefined reference to `i2c_t3::begin(i2c_mode, unsigned char, i2c_pins, i2c_pullup, i2c_rate)

Is anything else required?
Thanks...


Modify the i2c_t3.cpp file.

Change the line

#if defined(__MK20DX128__)

to

#if defined(__MK20DX128__) || defined(__MK20DX256__)

and download the new Wire.h and Wire.c from http://forum.pjrc.com/threads/24656-teensy-3-1-and-Wire-h
 

Attachments

  • I2CTest.ino
    153 bytes · Views: 116
Status
Not open for further replies.
Back
Top