Pinguino Forum

Full Version: Pic32 Pinguino Micro and I2C Library bag
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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?
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
(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.
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
(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
And the best one archive the current build that was in there too...
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
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)
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
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
Pages: 1 2