officinerobotiche / uNAV.X

Project MPLABX for drive uNAV on dsPIC33
http://rnext.it/project/unav/
MIT License
9 stars 2 forks source link

Resolve parse MPLAB.X files #7

Closed rbonghi closed 9 years ago

rbonghi commented 10 years ago

In System.c we've error on parse line, in particular on:

unsigned char version_date_[] = __DATE__;

and on i2c.c we've false error on:

Nop();

in void I2C2_reset(void)

how to resolve this problem?

guiott commented 10 years ago

I haven't any kind of error on compiling. Are you sure you are using xc16 v1.22?

rbonghi commented 10 years ago

I don't have any error on compiling, but only parsing, see the image ;)

screenshot 2014-10-21 12 45 30

guiott commented 10 years ago

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?

guiott commented 10 years ago

Look at this other project where it returns false errors on all registers declarations schermata 2014-10-21 alle 13 25 47

guiott commented 10 years ago

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.

rbonghi commented 10 years ago

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

guiott commented 10 years ago

we are not alone http://www.microchip.com/forums/m794046.aspx

rbonghi commented 10 years ago

@astrobeed

astrobeed commented 10 years ago

it's a known issue of MPLABX, don't waste your time.

rbonghi commented 10 years ago

I wait a solution to microchip! :+1:

astrobeed commented 10 years ago

At the moment there is no solution, only Microchip can definitively resolve.

rbonghi commented 9 years ago

Solved with last release of MPLAB >= v3.0x