Pinguino Forum
Pic32 Pinguino Micro and I2C Library bag - Printable Version

+- Pinguino Forum (http://forum.pinguino.cc)
+-- Forum: Hardware (http://forum.pinguino.cc/forumdisplay.php?fid=6)
+--- Forum: 8-bit (PIC18F) Pinguino (http://forum.pinguino.cc/forumdisplay.php?fid=42)
+---- Forum: Interfacing (http://forum.pinguino.cc/forumdisplay.php?fid=15)
+---- Thread: Pic32 Pinguino Micro and I2C Library bag (/showthread.php?tid=4495)

Pages: 1 2


Pic32 Pinguino Micro and I2C Library bag - AlexandrX2 - 26-10-2014

I using Pic32 pinguino micro. After call func i2c_start(i2c1) program stops.

I2C.init(I2C1, I2C_MASTER_MODE, I2C_400KHZ);
I2C.start(I2C1);
... infinity wait Sad((

where to get normal WORKING library?


RE: Pic32 Pinguino Micro and I2C Library bag - moreno - 27-10-2014

Hi

I developed 2 libraries for I2C Bus and both work fine (MCP23017.c and MCP342x.c) with Pinguino-MICRO
http://forum.pinguino.cc/showthread.php?tid=4320
http://forum.pinguino.cc/showthread.php?tid=4326

Which version of the IDE have you??


Bye Bye, Moreno


RE: Pic32 Pinguino Micro and I2C Library bag - AlexandrX2 - 28-10-2014

(27-10-2014, 08:55 AM)moreno Wrote: Hi

I developed 2 libraries for I2C Bus and both work fine (MCP23017.c and MCP342x.c) with Pinguino-MICRO
http://forum.pinguino.cc/showthread.php?tid=4320
http://forum.pinguino.cc/showthread.php?tid=4326

Which version of the IDE have you??


Bye Bye, Moreno

I use IDE version 10.4, because the new IDE for Windows is not at all in the distribution library for PIC32, there is even no folder "p32".

Moreno, I would appreciate if you can throw the file library "i2c.h" 100% working exactly on PIC32 pinguino micro.
I tried to manually write I2C but it is unstable, I have little experience.


RE: Pic32 Pinguino Micro and I2C Library bag - moreno - 28-10-2014

Hi

For the moment I use the latest stable version 4.1004 available here
https://pinguino32.googlecode.com/svn/ide/x.4

it have a special version of I2c.c library with this very important patch
Quote: 29/04/2014 Alterations by Moreno Manzini as suggested by Djpark
Create 2 versions of I2C_wait, normally is used the standard one.
If definited I2CWAIT_WORKAROUND is used the second version which avoid potentially infinite loop.
I2CWAIT_WORKAROUND is defined as default.


Bye Bye, Moreno


RE: Pic32 Pinguino Micro and I2C Library bag - AlexandrX2 - 28-10-2014

(28-10-2014, 08:08 AM)moreno Wrote: Hi

For the moment I use the latest stable version 4.1004 available here
https://pinguino32.googlecode.com/svn/ide/x.4

it have a special version of I2c.c library with this very important patch

Quote: 29/04/2014  Alterations by Moreno Manzini as suggested by Djpark
Create 2 versions of I2C_wait, normally is used the standard one.
If definited I2CWAIT_WORKAROUND is used the second version which avoid potentially infinite loop.
I2CWAIT_WORKAROUND is defined as default.


Bye Bye, Moreno

how to download an entire folder? if it would be ftp it is easier, and here http


RE: Pic32 Pinguino Micro and I2C Library bag - AlexandrX2 - 28-10-2014

And the best one archive the current build that was in there too...


RE: Pic32 Pinguino Micro and I2C Library bag - moreno - 28-10-2014

Hi

The latest packaged version available I think is 999 which do not work.

To download from GoogleCode you need a SVN client, if you have Windows you can use http://downloadsvn.codeplex.com/


Bye Bye, Moreno


RE: Pic32 Pinguino Micro and I2C Library bag - AlexandrX2 - 28-10-2014

1004 not work on windows, but 999x started, i replace exists files in 999x on files in 1004.
After start IDE, selects the micro board, try to compile.... ....
result:
Board: PIC32 Pinguino Micro
Proc: 32MX440F256H
File: D:\WIDE\x4-easy-rev999\.temp\Newfile0.pde
compiling...
D:\WIDE\x4-easy-rev999\p32\include\pinguino\core/io.c:65:5: error: 'TRISA' undeclared (first use in this function)


RE: Pic32 Pinguino Micro and I2C Library bag - AlexandrX2 - 28-10-2014

I removed the line "TRISA" from the file io.c, then compilied successfully, BUT I'm not sure that this is correct.
What "TRISA"? I have not found anywhere else in io.c mention of this register. Strange, what was meant?
RES:
Board: PIC32 Pinguino Micro
Proc: 32MX440F256H
File: D:\WIDE\x4-easy-rev999\.temp\Newfile0.pde
compiling...
compilation done
code size: 2808 / 262144 bytes (1% used)
1.7 seconds process time


RE: Pic32 Pinguino Micro and I2C Library bag - moreno - 28-10-2014

Hi

I uploaded the zip file of 1004 version here http://www.filedropper.com/pinguino32ide41004
Is the Full version for Linux, Windows and Mac with a size of about 220MB.


Bye Bye, Moreno