I2C on PIC32

Create new topics, add your comment, remark, bugs...
Post Reply
edlaurence
Posts: 5
Joined: Sun Jun 06, 2010 8:25 pm

I2C on PIC32

Post by edlaurence » Mon Aug 02, 2010 12:34 pm

Hi again Lubin,

Looks like my last thread got hijacked so here it is again....

I'm having some problems building a model to communicate between a PIC32 (32MX360F256L) and a Bosch accelerometer (BMA180) using an I2C bus for a heli autopilot application. Looking through the posts on the forum I think this problem was found by another user earlier this year and seems to fall over at the following point during the build..

dsPIC_32MX360F256L_AccelI2C.c:1: warning: Compiler option ignored due to lite-mode limitations
dsPIC_32MX360F256L_AccelI2C.c: In function `dsPIC_32MX360F256L_AccelI2C_step':
dsPIC_32MX360F256L_AccelI2C.c:48: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:55: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:58: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:68: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:71: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:78: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:81: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:93: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:96: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:103: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:106: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:118: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:121: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:128: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:131: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:142: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:145: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:162: error: union has no member named `MI2C1IF'
dsPIC_32MX360F256L_AccelI2C.c:165: error: union has no member named `MI2C1IF'
gmake: *** [dsPIC_32MX360F256L_AccelI2C.o] Error 1
### Real-Time Workshop build procedure for model: 'dsPIC_32MX360F256L_AccelI2C' aborted due to an error.
C32 Compiler found
C32 Compiler found
C32 Compiler found


I saw that you intended to take a look at the I2C blockset for PIC32F and was wondering if you had managed to make any progress on this issue? If you need any info from me please let me know.

Many thanks,

Ed Laurence

resodad
Posts: 71
Joined: Tue Jul 07, 2009 1:06 pm
Location: West Point, New York

Re: I2C on PIC32

Post by resodad » Tue Apr 03, 2012 9:21 pm

Hi Lubin,
I've got the same problem.
John
desktopFig.jpg
Attachments
I2C_test_simple2.mdl
(29.83 KiB) Downloaded 658 times
i2cBuildError.txt
matlab output
(4.38 KiB) Downloaded 644 times

resodad
Posts: 71
Joined: Tue Jul 07, 2009 1:06 pm
Location: West Point, New York

Re: I2C on PIC32

Post by resodad » Wed Apr 04, 2012 2:24 pm

All,
This belongs in the BUG REPORTS forum.
I will re-post there.
John

adina728
Posts: 1
Joined: Mon Dec 24, 2012 5:49 am

Re: I2C on PIC32

Post by adina728 » Mon Dec 24, 2012 5:51 am

Nice Post...Thanks for the info
looking nice

Post Reply

Who is online

Users browsing this forum: No registered users and 40 guests