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.

BIOSPSP I2C Sample on ARM9 + SYSBIOS

Other Parts Discussed in Thread: OMAPL138, SYSBIOS

For the I2cSample_Configuration project I have the following settings:

 

When I try to build the I2cSample application, I get the following build output:

**** Build of configuration Debug for project i2cSample ****

C:\ti\ccsv5\utils\bin\gmake -k all
'Building file: ../src/i2cSample_io.c'
'Invoking: TMS470 Compiler'
"C:/ti/ccsv5/tools/compiler/tms470/bin/cl470" -mv5e -g --define=CHIP_OMAPL138 --include_path="C:/ti/ccsv5/tools/compiler/tms470/include" --diag_warning=225 -me --abi=eabi --code_state=32 --preproc_with_compile --preproc_dependency="src/i2cSample_io.pp" --obj_directory="src"  "../src/i2cSample_io.c"
"../src/i2cSample_io.c", line 66: fatal error: could not open source file "xdc/std.h"
1 fatal error detected in the compilation of "../src/i2cSample_io.c".
Compilation terminated.

>> Compilation failure
gmake: *** [src/i2cSample_io.obj] Error 1
'Building file: ../src/i2cSample_main.c'
'Invoking: TMS470 Compiler'
"C:/ti/ccsv5/tools/compiler/tms470/bin/cl470" -mv5e -g --define=CHIP_OMAPL138 --include_path="C:/ti/ccsv5/tools/compiler/tms470/include" --diag_warning=225 -me --abi=eabi --code_state=32 --preproc_with_compile --preproc_dependency="src/i2cSample_main.pp" --obj_directory="src"  "../src/i2cSample_main.c"
"../src/i2cSample_main.c", line 59: fatal error: could not open source file "ti/sysbios/BIOS.h"
1 fatal error detected in the compilation of "../src/i2cSample_main.c".
Compilation terminated.

>> Compilation failure
gmake: *** [src/i2cSample_main.obj] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished *****

The manual doesn't say anything about adjusting include search paths!!!!! Why do I have to do that manually although XDC/RTSC was promised/announced as the ultimate solution???? So far it makes me more troubles than it helps me!

  • Hi Thomas,

    Looking at the snap shot, it looks like you are using the BIOS PSP 2.10.01, am i right?

    In the BIOS PSP 2.10.01, Please refer the user guide (OMAPL138_BIOSPSP_Userguide.pdf) section 1.1.5, which will list all the tool chain against which the PSP has been tested. To start with please use those tool chains and then move forward as per your requirement.

    This PSP has CCSv4 projects and not the CCSv5, so the project available in the PSP cannot be opened directly in CCSv5.

    And also, refer the section 1.2 and 1.3 to know more about the PSP. Set the environment variable (My Computer -> properties -> Advanced -> Environment Variables) and the path (in the config.bld file) as explained in tose sections.  

    Thanks and Regards,

    Sandeep K

  • I have generated a new project for the i2cSample application. It seems like it is building on CCSv5.1 (components from screen shot above) without errors although some warnings might appear.

    Here my project:

    2018.i2cSample.zip

    Important setting I had to do to get it running:

    Properties -> CCSBuild -> XDCtools -> Advanced Options: Additional compiler options: "-DCHIP_OMAPL138"

    Properties -> CCSBuild -> TMS470 Compiler -> Predefined Symbols: Pre-define NAME: CHIP_OMAPL138

    Best regards

    Thomas

  • Thomas,

    Looking at your last post in this thread, I was uncertain whether this issue is now closed or if you were expecting some kind of further response...

    Dave

  • Problem solved with my last post of the sample project.

  • Hi, 
     I tried the project in the 7484.psp_i2c.zip file on the evaluation board but I get an error below:

    C674X_0: File Loader: Data verification failed at address 0xC0000000 Please verify target memory & memory map

    C674X_0: GEL: File: D:\\workspace\psp_i2c\Debug\psp_i2c.out: a data verification error occurred, file load failed.   

    Do any of you know what is the problem? Thank you

  • It looks like you ar trying to load a program to external memory?
    Make sure the memory interface is initialized by a gel-script or an appropriate boot loader.

    Best regards

    Thomas

  • Hi Thomas, I am trying to test the i2c interface on my custom board. Does the program you upload need a gel file? if so can you send it to me. Thank you!