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.

MSP432 IIC 8位数据写入和读出一支卡死在一个地方,用的API函数




    /* Initiate start and send first character */
    if (!I2C_masterSendMultiByteStartWithTimeout(EUSCI_B0_BASE,
        pointer, timeout))
     return 0;

    if (!I2C_masterSendMultiByteFinishWithTimeout(EUSCI_B0_BASE,
        writeByte, timeout))
     return 0;

 

返回一支是0,代表写入数据失败,在boostxl_batpakmkII_fuelGauge_msp432p401r工程的IIC驱动里修改的,想请问下为什么呢?在调试MPU9250的IIC 驱动部分,谢谢