

"C:\Program Files (x86)\Microchip\xc8\v1.40\bin\xc8.exe" -pass1 -chip=18LF4550 -Q -G -double=24 -float=24 -emi=wordwrite -opt=+asm,+asmfile,-speed,+space,-debug -addrqual=ignore -mode=free -P -N255 -I"././././Program Files (x86)/Microchip/xc8/v1.40/include/plib" -V -warn=-3 -asmlist -DXPRJ_default=default -summary=default,-psect,-class,+mem,-hex,-file -output=default,-inhx032 -runtime=default,+clear,+init,-keep,-no_startup,-download,+config,+clib,+plib -output=-mcof,+elf:multilocs -stack=compiled:auto:auto:auto "-errformat=%f:%l: error: (%n) %s" "-warnformat=%f:%l: warning: (%n) %s" "-msgformat=%f:%l: advisory: (%n) %s" -obuild/default/production/config_bits.p1 config_bits.c Make -f nbproject/Makefile-default.mk dist/default/production/Lab2.X.production.hex Make: Entering directory 'C:/Users/Marchear/MPLABXProjects/Lab2.X' While ( SSPCON2bits.RSEN ) // wait until re-start condition is overĪddr = 0x91 // adresse du TC74 modèle A0 en lectureĪnd here is the log (verbose) : make -f nbproject/Makefile-default.mk SUBPROJECTS=. RestartI2C() // keep the line and avoid others to grab the line While (SSPCON2bits.ACKSTAT) // wait for the acknowledge from slave

IdleI2C() // while ( ( SSPCON & 0x1F ) || ( SSPSTATbits.R_W ) ) While (SSPCON2bits.ACKSTAT) //Bit 6 (I2C_V4 routine does not ackn. while ( SSPCON2bits.SEN ) // wait until start condition is overĪddr = 0x90 // adresse du TC74 modèle A0 en écriture Unsigned char temperature, addr, cmd_byte, status _OpenI2C(dist/default/production\Lab2.X.production.obj) however I do keep getting the following error : At first the I2C functions were underlined in red, but when I added the #define I2C_V1 at the beginning of my code, that worked itself out. note that this does not generate any errors in my main.c file (no functions underlined in red). System: Windows 7 version 6.1 running on amd64 Cp1252 en_CA (mplab)Īlso installed :

Runtime: Java(TM) SE Runtime Environment 1.8.0_91-b14 The thing is, the recommended action for the previous post was to change to a PIC18 in order to resolve the problem. I have a problem very similar to this one : Receiving "undefined symbols" error with XC8 concerning plib I2C functions I've been trying to resolve an issue all evening and I just can't seem to get through to it.
