Closed rbonghi closed 9 years ago
I haven't any kind of error on compiling. Are you sure you are using xc16 v1.22?
I don't have any error on compiling, but only parsing, see the image ;)
I guess it's because the pre-parser used during code editing doesn't open correctly the p33FJ128MC804.h header not resolving declaration about pins. I often see such kind of false errors on peripherals pins declaration. Sometime they disappears some time they rise back again. It maybe needs to add something more in the project?
Look at this other project where it returns false errors on all registers declarations
I don't really understand why, for example, the I2C_SCL define that refers to _LATB8 (in I2c.h) that refers to LATBbits.LATB8 (in p33FJ128MC804.h) returns a false error while the above _I2CEN that refer to I2C1CONbits.I2CEN doesn't return errors.
Sometime they disappears some time they rise back again. It maybe needs to add something more in the project?
I don't know! I believe it's a another problem, I try on microchip forum
I don't really understand why, for example, the I2C_SCL define that refers to _LATB8 (in I2c.h) that refers to LATBbits.LATB8 (in p33FJ128MC804.h) returns a false error while the above _I2CEN that refer to I2C1CONbits.I2CEN doesn't return errors.
If you comment https://github.com/rbonghi/uNAV.X/blob/master/src/communication/I2c.c#L130 , the parser don't highlight anything. The error it isn't on declaration on I2C_SCL or I2C_SDA
we are not alone http://www.microchip.com/forums/m794046.aspx
@astrobeed
it's a known issue of MPLABX, don't waste your time.
I wait a solution to microchip! :+1:
At the moment there is no solution, only Microchip can definitively resolve.
Solved with last release of MPLAB >= v3.0x
In System.c we've error on parse line, in particular on:
and on i2c.c we've false error on:
in void I2C2_reset(void)
how to resolve this problem?