Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pic32 Pinguino Micro and I2C Library bag
26-10-2014, 07:57 PM,
#1
Pic32 Pinguino Micro and I2C Library bag
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?
Reply
27-10-2014, 08:55 AM, (This post was last modified: 27-10-2014, 06:45 PM by moreno.)
#2
RE: Pic32 Pinguino Micro and I2C Library bag
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
Reply
28-10-2014, 05:28 AM,
#3
RE: Pic32 Pinguino Micro and I2C Library bag
(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.
Reply
28-10-2014, 08:08 AM,
#4
RE: Pic32 Pinguino Micro and I2C Library bag
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
Reply
28-10-2014, 08:55 AM,
#5
RE: Pic32 Pinguino Micro and I2C Library bag
(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
Reply
28-10-2014, 09:23 AM,
#6
RE: Pic32 Pinguino Micro and I2C Library bag
And the best one archive the current build that was in there too...
Reply
28-10-2014, 12:39 PM,
#7
RE: Pic32 Pinguino Micro and I2C Library bag
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
Reply
28-10-2014, 01:20 PM,
#8
RE: Pic32 Pinguino Micro and I2C Library bag
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)
Reply
28-10-2014, 01:26 PM,
#9
RE: Pic32 Pinguino Micro and I2C Library bag
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
Reply
28-10-2014, 01:29 PM,
#10
RE: Pic32 Pinguino Micro and I2C Library bag
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)