This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

i2c problem on dm365 microprocessor (IPNC program)



Hello

I'm trying to add a i2c device on my board based on the microprocessor dm365.

I am using the following functions:

int DRV_i2cGPS()
{
int uNumBytesMsg,ucnt,uRes,uDataRead;


DRV_i2cOpen(neo6,I2C_ADDR_UBLOX);
uNumBytesMsg=0;
uRes=DRV_i2cRead8(neo6,0xFD,&uDataRead,1);
uNumBytesMsg=(uDataRead<<8);
printf("Valor leido %d",uDataRead);
uRes=DRV_i2cRead8(neo6,0xFE,&uDataRead,1);
uNumBytesMsg=(uNumBytesMsg+uDataRead);
printf("Valor leido %d",uDataRead);

return 0;
}

The problem is that the microprocessor does not respond when you run this function. Unanswered is how but i2c device.

Someone has added a i2c device? How you doing? You know where I have the error?

Thank you very much