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.

PSP Driver Sample Code Problem

Other Parts Discussed in Thread: OMAPL138, OMAP-L138

Hi,

I have downloaded PSP Driver which provides 2 sample application code for UPP. I am using the one which demonstrates the usage of UPP in the loopback mode. I successfully build the project using the OMAPL138_BIOS_Userguide but I don't see any output on executing the sample code.

I followed the post mentioned below and placed the breakpoint but it doesn't hit the breakpoint meaning that it is not working.

http://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/115/t/131052.aspx

Can you please help me figuring out the problem ?

Thanks.

  • Hi Tariq,

    Have you used all the tools as mentioned in "OMAPL138_BIOSPSP_Userguide"?.

    Before building the project, have you tried running the default (UPP)sample appliation binaries that come with the PSP? If not, Please try it. Do you see the same issue?

    Could you also mention which version of the PSP and CCS you are using?

    Best Regards,

    Raghavendra

  • Hi Raghavendra,

    I used all the tools mentioned in userguide. Currently I have the following versions of the tools:

    CCS 4.2.0.10017

    Bios_5_41_07_24

    C6000 Code Generation Tools 6.1.9

    edma3_lld_01_11_01_04

    pspdrivers_01_30_01

    I am using the upp dlb mode example came with the psp driver installation package. Do you mean the .out file with binaries ? How can I run that ? I don't see any thing on the console window after running the code. What should I see if project runs successfully ?

    Regards,

    Tariq

  • Tariq,

    Yes, load the *.out(default executables) and test the sample application.

    All the sample applications in the psp_01_30_01 uses "LOG_printf()" to output print messages onto the console. But these print messages cannot be viewed directly on the CCSv4 console. For this to be viewed in CCSv4, Go to menu Tools --> RTA --> Printf Logs and the messages should be updated. Run the application and wait for a while. Then halt it, and refersh the printf console to view the message logs.

    Hope this helps..


    Best Regards,

    Raghavendra 

  • Raghavendra,

    Yesterday I successfully build the project but today it doesn't built. I have tried many time but the same error message occurs.


    **** Build of configuration Debug for project uppSample ****

    C:\Texas Instruments\ccsv4\utils\gmake\gmake -k all
    'Building file: ../uppsample.tcf'
    'Invoking: TConf Script Compiler'
    "C:/Texas Instruments/xdctools_3_20_03_63/tconf" -b -Dconfig.importPath="C:/Texas Instruments/bios_5_41_07_24/packages;C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evmOMAPL138/upp/build/ccs4/../;" "../uppsample.tcf"
    The current directory is invalid.
    gmake: *** [uppsamplecfg.cmd] Error 1
    gmake: Target `all' not remade because of errors.
    Build complete for project uppSample

  • After reinstalling the Code Generation Tools and PSP Drivers, I am able to build the project though I don't know what was wrong earlier. According to my understanding include path was set correctly but I don't why it was still saying that the current directory is invalid. Please explain this..

    After launching Project Debug Session the cursor doesn't come to the main which can be seen in the snapshot 1. It does show in Disassembly but not in uppSample_main.c file. Moreover, I am unable to set breakpoint which can also be seen in the snapshot 2.

    Thanks for your help.

  • Tariq Siddiqui said:

    After reinstalling the Code Generation Tools and PSP Drivers, I am able to build the project though I don't know what was wrong earlier. According to my understanding include path was set correctly but I don't why it was still saying that the current directory is invalid. Please explain this..

    That could happen if you initially installed Code Generation Tools or PSP Drivers in "C:\Program Files(x86)\Texas Instruments" on Windows 7. Gmake can't deal with parentheses in paths.

  • I didn't install it in Program Files(x86), it is and was installed in Program Files/Texas Instruments.

    What about the problem I asked in second part ? If you had replied to this part, I would have solved this problem. Due to the time difference I get reply already after a day. Now this would further delay this issue.

  • Tariq,

    Do a project clean first, and then rebuild the project.

    BTW, have you tried whatever I suggested in my earlier post?. Because, If the default sample app is working then we can confirm that all is good with the setup.

    Regards,

    Raghavendra

  • Raghavendra,

    I successfully ran the sample application using .out file and I can also see the Printf Logs messages. On importing existing CCS Project for CCS4, I encountered the same error. Error message is shown below. CCS window is also attached here.


    **** Build of configuration Debug for project uppSample ****

    C:\Texas Instruments\ccsv4\utils\gmake\gmake -k all
    'Building file: ../uppsample.tcf'
    'Invoking: TConf Script Compiler'
    "C:/Texas Instruments/xdctools_3_20_03_63/tconf" -b -Dconfig.importPath="C:/Texas Instruments/bios_5_41_07_24/packages;C:/Program Files/Texas Instruments/pspdrivers_01_30_01/packages/ti/pspiom/examples/evmOMAPL138/upp/build/ccs4/../;" "../uppsample.tcf"
    The current directory is invalid.
    gmake: *** [uppsamplecfg.cmd] Error 1
    gmake: Target `all' not remade because of errors.
    Build complete for project uppSample

    CCSv4.2 is installed in C:/Texas Instrument directory where as Code Generation Tools 6.1.9, EDMA 3 and PSP Drivers are installed in Program Files/Texas Instrument directory.

    Regards,

    Tariq


  • Tariq,

    So the default *.out binaries are working then. Good.

    You can import the "uppSmaple" project in CCSv4 either by "Import a Legacy CCSv3.3" or " importing existing CCS/CCE Eclipse Project". 

    Please refer to the following post -

    http://e2e.ti.com/support/embedded/bios/f/355/p/104566/368528.aspx#368528

    I hope this can help resolve the build error.

    Best Regards,

    Raghavendra

  • Raghavendra,

    I will try to do that. Is it good practise to copy project into workspace ? I never do that..

  • Yes its not a good practice. Duplication and confusion! but just want to know if this works?

    Import the project as you do normally(don't select - copy projetcs into workspace tab). After importing, delete the files from the project and add them explicitly as mentioned in the link I shared earlier.

    Let me know the results..

    Regards,

    Raghavendra

  • Yes it helped.

    Thanks Raghavendra.

    Regards,

    Tariq

  • I failed to run PSPDriver uppSample code

    1) I'm using CCS-5.2.1

    2) pspdrivers_01_30_01

    3) OMAP-L138 Logic PD  board

    What I did were

    1)  Import and Copy uppSample project from PSPDriver pkg

    2) Copy all required files to replace the link ones, otherwise I have a failed compilation

    3) Use GEL file OMAPL138_DSP.gel

    After loading, it ran by itself, but not uppSample as I'm not able to set a breakpoint

    I got stuck infinite loop in a function PMI_writeI2C() but I'm able locate that function in the sample. It must be something in BIOS running in the background ?

    I also failed with simple project UartSample too !?!?

    I'm quite aware that Logic PD has LED connected to I2C, but DSP_BIOS is not supposed to blink LED by itself, if that's the case  !?!?

    To verify HW/SW, I created a simple DSPBIOS project, I'm able to compile and load to the board. After loading, the cursor stops at 1st line in Main as expected

    Any idea ?

    ~Duy-Ky

  • I got it work after TCF modified