Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pinguino V11 : bugs with I2C
17-10-2016, 07:54 PM, (This post was last modified: 17-10-2016, 08:15 PM by joel.)
#1
Pinguino V11 : bugs with I2C
Hello

tried yesterday to compile (PIC32MX250 board) the 24x64.pde example in the V11 version (at first i have done this because i was not able to get this code working with V.999 revision with 24x128 eeprom). However the 24x64 do not compile at all with V11, with a bug in the linker: undefined ref to I2C1Interrupt...


see


pinguino\v11\user\source\main32.o \

C:\pinguino\v11\user\source\obj\non-free\processor.o \
C:\pinguino\v11\user\source\obj\non-free\usb\libcdc220.a \
C:\pinguino\v11\user\source\obj\non-free\usb\libadb.a \
C:\pinguino\v11\p32\lkr\crt0.S \
C:\pinguino\v11\p32\lkr\ISRwrapper.S \
C:\pinguino\v11\p32\include\non-free\p32xxxx.h \
-lm -lgcc -lc
E:\Users\joe\AppData\Local\Temp\ccz57N58.o: In function `vector_33_ISR_wrapper':
(.text+0x9f4): undefined reference to `I2C1Interrupt'
E:\Users\joe\AppData\Local\Temp\ccz57N58.o: In function `vector_38_ISR_wrapper':
(.text+0xb00): undefined reference to `I2C2Interrupt'
C:\pinguino\v11\user\source\main32.o: In function `setup':
(.text.setup+0xfe): undefined reference to `CDC_print'
collect2.exe: error: ld returned 1 exit status
make: *** [compile] Error 1


Any clue?

Regards
Joël
Reply
17-10-2016, 09:09 PM, (This post was last modified: 18-10-2016, 07:26 PM by joel.)
#2
RE: Pinguino V11 : bugs with I2C
(17-10-2016, 07:54 PM)joel Wrote: Hello

tried yesterday to compile (PIC32MX250 board) the 24x64.pde example in the V11 version (at first i have done this because i was not able to get this code working with V.999 revision with 24x128 eeprom). However the 24x64 do not compile at all with V11, with a bug in the linker: undefined ref to I2C1Interrupt...


see


pinguino\v11\user\source\main32.o \

C:\pinguino\v11\user\source\obj\non-free\processor.o \
C:\pinguino\v11\user\source\obj\non-free\usb\libcdc220.a \
C:\pinguino\v11\user\source\obj\non-free\usb\libadb.a \
C:\pinguino\v11\p32\lkr\crt0.S \
C:\pinguino\v11\p32\lkr\ISRwrapper.S \
C:\pinguino\v11\p32\include\non-free\p32xxxx.h \
-lm -lgcc -lc
E:\Users\joe\AppData\Local\Temp\ccz57N58.o: In function `vector_33_ISR_wrapper':
(.text+0x9f4): undefined reference to `I2C1Interrupt'
E:\Users\joe\AppData\Local\Temp\ccz57N58.o: In function `vector_38_ISR_wrapper':
(.text+0xb00): undefined reference to `I2C2Interrupt'
C:\pinguino\v11\user\source\main32.o: In function `setup':
(.text.setup+0xfe): undefined reference to `CDC_print'
collect2.exe: error: ld returned 1 exit status
make: *** [compile] Error 1


Any clue?

Regards
Joël

OK, copied the i2c files from the V12 unstable, get it compiling.
However i am unable to upload to my pinguino which is not recognized...is there a new bootlader or should i upadte the driver ? (Win7 64 bits)
Joêl
Reply
19-10-2016, 07:48 PM,
#3
RE: Pinguino V11 : bugs with I2C
I don't know - sorry - but Windows drivers (especially 64-bit) are a nightmare so I'd start there.

John
Reply
20-10-2016, 07:35 PM,
#4
RE: Pinguino V11 : bugs with I2C
Yes , i know...
actually, either it works with the old x999 rev, either it works with V11, but not both ... Confused 

Nevertheless, i have not been able to make my eeprom written or read, nor when compiled with Rev999, neither with rev11/12
What is "funny" (so to say) is that the lcdi2c code is working...at least the one provided in this forum by AlexandrX2 (http://forum.pinguino.cc/showthread.php?...1#pid10971)
So there is something wrong ..but what..i triple checked the cabling, power, etc...no issue (i even tested if same cabling is working fine with arduino ..YEs it does..).
So, either the 24x64 example is not ok (wrong commands..etc), either something in the i2c library is broken (my suspicion goes to the write and writechar function, sicne they are not used in the lcdi2c library..)
Need to dig when time permits..as always !!
Regards
Reply
21-10-2016, 04:11 PM, (This post was last modified: 21-10-2016, 04:12 PM by pingotg.)
#5
RE: Pinguino V11 : bugs with I2C
You said you could not upload but now say some code works - so you must have uploaded it. One of your two statements must be wrong or can you explain!

John
Reply
26-10-2016, 01:38 PM,
#6
RE: Pinguino V11 : bugs with I2C
(21-10-2016, 04:11 PM)pingotg Wrote: You said you could not upload but now say some code works - so you must have uploaded it.  One of your two statements must be wrong or can you explain!

John

Sorry late answer.

no i was talking of the bootloader. Actually there is some issue (under win) btween V11 and rev999. I have not been able to get the upload works with the 2 revs. If it works with v11, it doesn't work with 999 and vice versa (the transition between the 2 revs needing to uninstall and reinstall usb drivers coming from the extra directory. This happens either with the original bootloader found in the 999 directory or with the one, more recent, found in the github
Nevertheless the code is compiling fine , nothing else.  When uploaded (whatever the pinguino rev is), the writing (and reading) do not work at all (i tested the reading with an eeprom which i programmed previously). this happens also whatever the eeprom i use (24AA64, 24LC64, 24AA128, etc up to 1024).
So there is a bug either in the 24xx64 code or in the i2c lib, which i haven't been able to find. What is bugging me is that the lcdi2c code i have (the one from Alexandr2) is working like a charm...
JoËl
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)