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.

MSP432P401R: MSP432P401R I2C example for Keil uV5 not working

Part Number: MSP432P401R

As suggested by Vikas Chola from TI. We used i2ctmp007 example from C:\ti\simplelink_msp432_sdk_1_40_01_00\examples\nortos\MSP_EXP432P401R\drivers\i2ctmp007 in keil but we are unable to execute.

It is stucked in SystemInit.

Here I attached whole i2ctmp007 project ported into Keil.

Please provide the solution.MSP432_hwI2C.zip

  • Sunil,
    What is your hardware configuration? This example uses the TMP007 temperature sensor, which is available on the Sensor Hub boosterpack. If you don't have this attached to the launchpad or somehow have a correct I2C connection (with external 1k pullup resistors for SCL and SDA) to the TMP007 sensor, then the connection won't work properly and very well may hang.
    Regards,
    Bob
  • Hi Bob,
    Thanks for the response.
    We are not using eval board. We have our own board have MSP432 and MPU9250 (9 Axis Sensor). We are trying to communicate via i2c with MPU9250 Device.
    We have used this example in CCS, it is working fine, so that issue is not related to hardware.
    Now we are trying to use this i2c drivers in keil for our development requirement. So we just want this i2c example or other i2c driver that worked with Keil.
    I already attached whole project in previous thread.

    Regards,
    Sunil Mangal
  • OK. Will have a further look at the software and get back to you.
    -Bob
  • Sunil,
    I've run the code and I'm seeing the same thing as you on Keil. Also, since there are no Keil project specs for non-RTOS TI Drivers examples, I'm wondering what process you used to put this project together? Where did you get your project settings?
    -Bob
  • Sunil,
    One more update. TI Drivers are not currently supported on Keil. Have you tried re-creating your project using a Driverlib examples and APIs? There are examples with Keil project specs that would get you running faster.
    -Bob

  • Hi Bob,
    Thanks for your Response.

    We are taking project settings from

    C:\ti\simplelink_msp432_sdk_1_40_01_00\examples\nortos\MSP_EXP432P401R\driverlib\empty\keil

    and map all files from example
    C:\ti\simplelink_msp432_sdk_1_40_01_00\examples\nortos\MSP_EXP432P401R\drivers\i2ctmp007

    That was suggested by Mr. Vikas Chola from TI.

    We already tried Basic Driver Library for MSP432. But there is issue with the multibyte reading from slave device.
    When we do multibyte reading SCL get stuck at Low. So we tried single byte with I2c Control resetting. That is not fulfill our requirement.
    So kindly provide the I2c Multibyte reading/Writing drivers for Keil.
    or suggest me what to do next....

    Regards,
    Sunil Mangal
  • Sunil,

    Thanks. That information is helpful.  From this I'll recreate your workflow and try to debug the SCL stuck-at issue.

    Regards,

      Bob

**Attention** This is a public forum