Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I2C problems
26-11-2016, 12:31 PM,
#1
I2C problems
I'm testing Olimex PIC32 Pinguino OTG board.


I'm using Pinguino IDE v11 for Linux and I have a problem when I try to compile this simple code using i2c:

void setup(){
I2C.init(I2C1,I2C_MASTER_MODE,I2C_100KHZ);
}
void loop(){}

The error that appears is:

collect2: error: ld returned 1 exit status

Could anyone help me please?

Thanks
Reply
26-11-2016, 04:56 PM,
#2
RE: I2C problems
Sorry this won't help but it works OK on x.4 (& also on rev 399)

Maybe you get more error output than you posted?

(Probably in source dir)

John
Reply
27-11-2016, 11:27 AM,
#3
RE: I2C problems
Hi John, thanks for your response...

I don know if you refers, but here ... the end of sdtout:

/tmp/ccDaRaCR.o: In function `vector_25_ISR_wrapper':
(.text+0x9f4): undefined reference to `I2C1Interrupt'
/tmp/ccDaRaCR.o: In function `vector_33_ISR_wrapper':
(.text+0xb00): undefined reference to `I2C2Interrupt'
collect2: error: ld returned 1 exit status
make: *** [compile] Error 1

Could you give me an idea or where I can look for...?

Thank you
Reply
27-11-2016, 10:57 PM,
#4
RE: I2C problems
See your other thread.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)