Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pinguino32 and I2C ??
25-10-2015, 07:52 PM,
#1
Pinguino32 and I2C ??
On board PIC32MX250 this simple code fails to compile. How to initialize I2C bus on PIC32 device ?

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

}



void loop() {
}


C:\Users\Fabio\AppData\Local\Temp\cc7UYmC7.o: In function `vector_33_ISR_wrapper':

(.text+0x9f4): undefined reference to `I2C1Interrupt'
C:\Users\Fabio\AppData\Local\Temp\cc7UYmC7.o: In function `vector_38_ISR_wrapper':
(.text+0xb00): undefined reference to `I2C2Interrupt'
collect2.exe: error: ld returned 1 exit status
make: *** [compile] Error 1
Reply
21-12-2015, 03:06 PM,
#2
RE: Pinguino32 and I2C ??
Are you using version 11? I have the same problem with this version - appears to be a bug. It compiles fine with e.g. X.4
Reply
27-12-2015, 07:14 PM,
#3
RE: Pinguino32 and I2C ??
(21-12-2015, 03:06 PM)swhomans Wrote: Are you using version 11? I have the same problem with this version - appears to be a bug. It compiles fine with e.g. X.4

Hi fabio,
which version are you using? if under version 11, maybe an update to the latest librairies is recommended.
It looks like, from the error you get, the I2C1interrupt function is not defined.
I didn't tested the v11 with I2C,( latest x4 (999) works like a charm for my needs), but in the latest V11 commit it looks like i2C interrupt related things evolved (at least a function called I2C1Interrupt appeared in the isrwrapper.c code).
To upgrade the lib, the simplest way is probably to download the latest (November) library package, move the current library directory to old, unzip the downloaded pack and copy the directory in your pinguino dir.

Regards
Joël
Reply
27-11-2016, 11:29 AM,
#4
RE: Pinguino32 and I2C ??
Hi everybody... have you solved this problem?

Thanks...
Reply
27-11-2016, 10:58 PM,
#5
RE: Pinguino32 and I2C ??
Try joel's idea.

John
Reply
28-11-2016, 05:52 PM,
#6
RE: Pinguino32 and I2C ??
Sorrry, but I don't know how I can do it. I've just installed v.11 and I updated the library before this thread...

I've reinstalled Pinguino IDE again, but the problem exists... I've updated libraries again and the problem persists...

Where can I get x4? If it's good for you... it will be good for me...
Reply
28-11-2016, 07:00 PM,
#7
RE: Pinguino32 and I2C ??
Probably via the download page.

John
Reply
28-11-2016, 08:19 PM,
#8
RE: Pinguino32 and I2C ??
I don't find anyone....

I'm really desperate ... I'm completely blocked in my project and I can not find a way out ... I just think of leaving the penguin platform and looking for other IDEs that give me the security of operating libraries.
Reply
29-11-2016, 02:03 AM,
#9
RE: Pinguino32 and I2C ??
(28-11-2016, 08:19 PM)nomespereu Wrote: I don't find anyone....

I'm really desperate ... I'm completely blocked in my project and I can not find a way out ... I just think of leaving the penguin platform and looking for other IDEs that give me the security of operating libraries.
here you can download x.4
http://wiki.pinguino.cc/index.php/Catego..._Downloads 

fred
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)