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.

Way to compile CSLR changes in psp drivers

Other Parts Discussed in Thread: OMAPL138

Hi,

I am using the lib files in "pspdrivers_02_10_01\packages\ti\psp\platforms\evmOMAPL138\lib" for my project.

(CCS4, SYS/BIOS 6_21_03_21, CGT 6.1.20, pspdrivers 02_10_01, xdc 3_16_03_36)

I made some changes in soc_OMAPL138.h in cslr of psp drivers "pspdrivers_02_10_01\packages\ti\psp\cslr".

I compiled uing "xdc clean -PR ." and "xdc -PR ." in "pspdrivers_02_10_01\" but getting following errors.

======== .libraries [./packages/ti/psp/blkmedia] ========
cl674 src/blkmedia.c ...
"src/blkmedia.c", line 78: fatal error: could not open source file "ti/rtfs/ebs/include/rtfs.h"
1 fatal error detected in the compilation of "src/blkmedia.c".
Compilation terminated.

>> Compilation failure
gmake[1]: *** [package/lib/lib/DA830/Debug/ti.psp.blkmedia.filesystem/src/blkmedia.o674] Error 1
xdctools_3_16_03_36\gmake.exe: *** [packages/ti/psp/blkmedia,.libraries] Error 2

What is the procedure to compile platforms\evmOMAPL138\lib files if there are any changes in cslr folder.

thanks, Durga

  • Hi Durga,

    I am sorry, but everything looks jumbled in here. Going step by step -

    If you have done any changes in the soc_OMAPL138.h file, or any files(*.h) inside cslr folder, you just have to clean your project and rebuild it completely. Yes, you have used the right commands though but please make sure to go through the Userguides(placed in top level docs folder) before digging into the PSP.

    If you refer section 1.1.4 of OMAPL138_BIOSPSP_Userguide, it lists all the drivers supported by PSP on the OMAPL138. It does not include 'blkmedia'!

    Secondly, if you are trying to build any driver(for instance blkmedia) ensure all the required tools are installed appropriately and the environment variables are set correctly. If you refer section 1.3.3 page 17 of DA830_BIOSPSP_Userguide under examples, lists the XDCPATH paths to be included. Ensure 'rtfs path' is also included in it!.  This might solve your build error.

    Hope this helps.

     

    Best Regards,

    Raghavendra


  • Hi Raghvendra,

    Here is what I want to do.

    1. I am using library files in "pspdrivers_02_10_01\packages\ti\psp\platforms\evmOMAPL138\lib". I did some some changes in "pspdrivers_02_10_01\packages\ti\psp\platforms\evmOMAPL138\src". So I did "xdc -PR ." in "pspdrivers_02_10_01\packages\ti\psp\platforms\evmOMAPL138" and it worked.

    2. Now I want to make some changes in "pspdrivers_02_10_01\packages\ti\psp\cslr". Now what it the procedure to get the cslr changes in my project?

     a. Are you telling that I should just rebuild my project? With this changes in cslr will be reflected in platform\evmOMAPL138\lib file?
     b. Or should I do "xdc -PR ." in "pspdrivers_02_10_01\packages\ti\psp\platforms\evmOMAPL138" again?
     c. Or should I do "xdc -PR ." in "pspdrivers_02_10_01\"?

     With step b, I dont see the effect of cslr changes in my project when I run the project.
     With step c, I am getting the error mentioned in my first post.

    Please clarify.

    thanks, Durga

  • Hi Durga,

    durga temp said:
    c. Or should I do "xdc -PR ." in "pspdrivers_02_10_01\"?

    - This option is correct, which builds the entire PSP. But since yor are getting an error message, you have to resolve it accordingly..

    durga temp said:

    ======== .libraries [./packages/ti/psp/blkmedia] ========
    cl674 src/blkmedia.c ...
    "src/blkmedia.c", line 78: fatal error: could not open source file "ti/rtfs/ebs/include/rtfs.h"
    1 fatal error detected in the compilation of "src/blkmedia.c".
    Compilation terminated.

    It is unable to find the rtfs header files. For this make sure the rtfs path is included in the XDCPATH environment variable as mentioned in my first post(3rd paragraph). This should solve the build error.

    For changes in cslr header file to take effect, you will have to re build(all the modules which takes its references) the driver, platforms, and finally the application. Building the entire PSP would be fine, but time consuming though since it builds all the drivers and examples. So, build the driver required by your application first and then platforms, followed by the application. Sorry if i have not been clear enough in my first post.

    Hope this helps..   

     

    Best Regards,

    Raghavendra

     

  • Hi Raghavendra,
    Thank you for the help.

    thanks, Durga