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.

使用CCS调试8168 i2c的问题



大家好,

    最近使用CCS调试8168裸板,有一些莫名其妙的问题。

    代码如下:

 #define I2C0_BASE                    0x48028000
 #define I2C0_CON                     *( Uint32* )( I2C0_BASE + 0xA4 )

  printf("CON : 0x%x\n", *(int*)I2C0_CON);          //打印该I2C地址的值

运行后,程序老是在 0002008c:   EAFFFFFE B               0x2008C 这行,无法继续运行。

我在网上也查找了相关问题,也有几个提相同问题,但没有答案。大家看看可能是什么问题?