Bug! i2c + com2

static public SerialPort GPS = new SerialPort("COM2", 4800); // work, ok
GSM.Open(); // work, ok
GPS.DataReceived += new SerialDataReceivedEventHandler(GPS_DataReceived); // work, ok
FEZ_Components.IO40 myIO40 = new FEZ_Components.IO40(0); // work, ok
myIO40.MakePinOutput(2, 0); //  :( after this string COM2 dont work, ok

I open com 2, and before line “FEZ_Components.IO40…” its work!!!
but after “myIO40.MakePinOutput(2, 0);” the com2 dont work, not response and “DataReceived” not call for receive datas

and line “myIO40.MakePinOutput(2, 0);” make as comment, all fine! all work!

This is very bad BUG!

This is probably a bug in your code. Can you provide us with more info?

  1. What board are you using?
  2. Do you have the latest SDK installed?
  3. Do you have the latest firmware loaded on the board?
  4. Can you post a small sample code demonstrating the problem?

I had similar problems once with a mismatch between SDK and onboard versions on my Domino :-[