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 sample programs for OMAPL138

Other Parts Discussed in Thread: OMAPL138

Hi, I am testing the I2C interface on my custom board with OMAPL138. Can I have the list of i2c sample program available to download? Thank You.

  • Not sure if this is useful for you..but sharing due to similar query or issue.

    http://e2e.ti.com/support/embedded/bios/f/355/t/108846.aspx

  • Thanks. but do you have the link to the i2c sample program in that thread? is it the same 1 as the 1 @ this link http://e2e.ti.com/support/embedded/bios/f/355/t/167655.aspx?

  • I am not sure if that is useful (but you can try) because there is no mention of the platform.

  • I tried the example in texas Instrument\pspdrivers_01_30_00_06\packages\ti\pspiom\examples\evm6748\i2c\interrupt\

    I get the error messages below when i build the project. Please help thank you

    Description Resource Path Location Type
    #10104 ./i2cSamplecfg.cmd undefined symbol "_commonInit" used i2cSamplecfg.cmd   Line 9 C/C++ Problem
    #10234-D unresolved symbols remain i2cSample     C/C++ Problem
    cannot find file i2cSample     C/C++ Problem
    unresolved symbol _commonInit i2cSample     C/C++ Problem
    unresolved symbol _configureI2c, first referenced in ./i2cSample_main.obj i2cSample     C/C++ Problem
    unresolved symbol _EDMA3_DRV_disableLogicalChannel, first reference in ./I2c.obj i2cSample     C/C++ Problem
    unresolved symbol _EDMA3_DRV_getPaRAM, first reference in ./I2c.obj i2cSample     C/C++ Problem
    unresolved symbol _I2c_completeIOedmaCallback, first reference in ./I2c.obj i2cSample     C/C++ Problem
    unresolved symbol _Psc_moduleClkCtrl, first reference in ./I2cSample_main.obj i2cSample     C/C++ Problem
  • Looks like modules like edma, bios paths are not correct. pLease make sure to include the corresponding libraries while linking.

  • Hi, The errors are gone after i delete the project from the workspace and import it again. And I untick the copy files to workspace. Now the project can be built without errors. however i get the error message below after i press the debug.

     

     

    Load program Error.

    File: C:\Program Files\Texas Instruments\pspdrivers_01_30_00_6\packages\ti\pspiom\examples\evmOMAPL138\i2c\interrupt\build\ccs4\bin\Debug\i2cSample.out: a data verification error occurred, file load failed.

    At GEL_LOAD(“C:\Program Files\Texas Instruments\pspdrivers_01_30_00_06\packages\ti\pspiom\examples\evmOMAPL138\i2c\interrupt\build\ccs4\bin\Debug\i2cSample.out”)

  • Hi Shao,

    Good that linking errors are vanished !

    Shao Ying Cho said:

    Load program Error.

    File: C:\Program Files\Texas Instruments\pspdrivers_01_30_00_6\packages\ti\pspiom\examples\evmOMAPL138\i2c\interrupt\build\ccs4\bin\Debug\i2cSample.out: a data verification error occurred, file load failed.

    At GEL_LOAD(“C:\Program Files\Texas Instruments\pspdrivers_01_30_00_06\packages\ti\pspiom\examples\evmOMAPL138\i2c\interrupt\build\ccs4\bin\Debug\i2cSample.out”)

    This is typically observed if the memory map of the device is not proper. I mean since you are loading the .out, where the memory section would have been created based on .cfg file or linker command file. If those memory sections or addresses are not accessible by the processor, you get these errors. Check whether you have enabled MMU or make sure you are loading the code and data to the memory where it is accessible by the processor.

  • how do I open up the memory section manager in code composer 5 to change it? I can't seem to find it. Thanks!

  • The memory map is determined by the RTSC platform. Refer to the following post about creating a new platform: http://e2e.ti.com/support/embedded/bios/f/355/t/95655.aspx

    Todd

  • ToddMullanix said:

    The memory map is determined by the RTSC platform. Refer to the following post about creating a new platform: http://e2e.ti.com/support/embedded/bios/f/355/t/95655.aspx

    Todd

    Thanks for the link. I could not find "build properties" when i right click on my project, I am using code composer studio v5, while the guide is using v4. please help thank you.

  • In CCS5, right click on project->Properties->CCS General->RTSC.

  • Sasha Slijepcevic said:

    In CCS5, right click on project->Properties->CCS General->RTSC.

    I could not find RTSC. I could only see "Main" in General which contains the family, variant, compiler version and DSP/BIOS version

  • That means you are using DSP/BIOS 5, not SYS/BIOS 6. In DSP/BIOS 5, the platform is usually defined in the call to utils.loadPlatform() somewhere in your TCF script. You should right-click on your tcf script->Open With->DSP/BIOS Configuration Tool. After that, any double-click on that TCF file will automatically open Configuration Tool. There you can see and change your memory layout to make it compatible with the processor or the simulator you are using.

  • thank you. I will try it out