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/OMAP-L138: Help with I2C example code

Part Number: OMAP-L138
Other Parts Discussed in Thread: OMAPL138, TCA6416

Tool/software: Code Composer Studio

Hi all,

I am trying to load one of the I2C example codes provided with Starterware_1_10_04_01 ("i2cLedBlink"), and am having an error appear that there are undefined symbols (_I2CPinMuxSetup, etc) . In addition, when running other example codes we consistently get identifier is undefined. I was hoping to get this code up and running to understand I2C on the device and hopefully get it to connect to an external microcontroller such as Arduino. 

For reference, I am using CCv5.5.0.00077

Any help would be appreciated; thank you in advance!

  • Hello,

    For OMAP-L138 devices, Starterware is a legacy software package that we're no longer supporting. Are you able to switch to Processor SDK RTOS?

    Processor SDK is our current supported software offering and comes with multiple, working I2C examples.

    Regards,

    Sahin

  • StarterWare is structured as example source code plus several libraries for drivers, utilities, platform, etc. For example, the function I2CPinMuxSetup() is in:
    file: i2c.c
    dir: platform\evmOMAPL138
    inc: include\armv5\omapl138\evmOMAPL138.h
    lib: binary\armv5\cgt_ccs\omapl138\evmOMAPL138\platform\Debug\platform.lib
    prj: build\armv5\cgt_ccs\omapl138\evmOMAPL138\platform

    Sounds like you are using a self-built project and missing the library path and include. You should use the included project files to build the example project. The project files have the correct include paths and libraries properly defined. Try using the project at
    build\armv5\cgt_ccs\omapl138\evmOMAPL138\i2c
  • Hi Norman,

    Thanks for the advice! We were using a self-built project, and have been trying to include libraries so fix the errors that we were getting.

    We have built the project that you have sent. Is there an example project that I can somehow use and modify to fit my needs (communicating with an external microcontroller such as an Arduino)? 

    Kathleen 

  • The LED example talks via I2C to a TCA6416 expander on a EVMOMAPL138. I have never used this board. I assume that this board has a TCA6416 on it that is connected to the OMAPL138 in one side and a LED on the other. You could hook in your Ardino to the same I2C SCL and SDA lines. Assumes that those lines are brought out to a suitable jumper. Just have modify the I2C address in the example to that of your Arduino. Assumes that that the Ardiino act as a I2C slave.