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.

Trying to run "Digital Signal Processing and Applications with the OMAP-L138 eXperimenter" examples on the C6748LCDK and CCS6.1

Other Parts Discussed in Thread: OMAP-L138

Having seen a number of posts and documents stating it was possible to run examples from this text on the C6748LCDK, I bought the book, LCDK and XDS100V2 and had a go.

1)I downloaded the LCDK code examples from the Wiley ftp site: ftp.wiley.com/.../signal_processing

2)As per the document found here: http://e2e.ti.com/group/universityprogram/educators/f/776/t/223997

I downloaded the zip file 1020489B_CCSv4-2-4_with_SOM-M1_BSL_WS.zip

I am assuming this collection of files available from TI is similar to the BSL supplied by Logic PD to purchasers of the OMAP-L138 eXperimenter. I wouldn't be surprised if differences between these BSLs is one of the issues.

3)I created a new project (including a main.c) in CCS with the target set as "LCDKC6748" and the  connection set to "Texas Instruments XDS100V2 USB Debug Probe" as per my specific hardware.

This step created a file  LCDK6748.ccxml which I ASSUME has the correct details as I couldn't find one that looked appropriate in the downloads listed above.

I copied this file to "c:\User\Your_ID\user\CCSTargetConfigurations" as per step 9 on page 10 of the text book.

4)I also copied the file "c6748.gel" from the download "1020489B_CCSv4-2-4_with_SOM-M1_BSL_WS.zip" above to the directory "c:\User\Your_ID\user\CCSTargetConfigurations"

as per step 10 on page 10 of the text book.

5) I set my .ccxml file as default as per step 11 on page 10 of the text book.

6)At this stage I can launch the debugger and I can debug my very basic program and my variables change etc. I have to assume things are working up to this point.

7)Steps 14-16 in the textbook work well with my input signal appearing at the output. Again things appear to be working.


8) The problems start in the "link the support files to project" section on page 16 of the text:


I add "L138_LCDK_aic3106_init.c" "L138_LCDK_aic3106_init.h" "linker_dsp.cmd" and "vectors_intr.asm" from  the "LCDK\L138_support" directory of the ftp download mentioned above as per the text book.

I also add "LCDK\L138_support" and "LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\inc" to the "#include search path" for the project as per the text.

I also add "LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\lib\evmomapl138_bsl.lib" to the "include library file" field for the project as per the text.

9) Now I try and debug my code with the following errors appearing:

**** Build of configuration Debug for project L138_sine48_buf_intr ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building target: L138_sine48_buf_intr.out'
'Invoking: C6000 Linker'
"C:/ti/bin/cl6x" -mv6740 --abi=eabi -g --define=c6748 --display_error_number --diag_warning=225 --diag_wrap=off -z -m"L138_sine48_buf_intr.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/lib" -i"C:/ti/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="L138_sine48_buf_intr_linkInfo.xml" --rom_model -o "L138_sine48_buf_intr.out" "./L138_LCDK_aic3106_init.obj" "./vectors_intr.obj" "../C6748.cmd" "../linker_dsp.cmd"  -l"libc.a" -l"C:\LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\lib\evmomapl138_bsl.lib"
<Linking>
"../linker_dsp.cmd", line 8: error #10264: dsp_l2_ram memory range overlaps existing memory range SHDSPL2RAM
"../linker_dsp.cmd", line 9: error #10264: shared_ram memory range overlaps existing memory range SHRAM
"../linker_dsp.cmd", line 10: error #10264: external_ram memory range overlaps existing memory range DDR2
warning #10373-D: library "C:\LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\lib\evmomapl138_bsl.lib" contains TI-COFF object files which are incompatible with the ELF output file.  Ensure you are using the proper library.
warning #10373-D: library "C:\LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\lib\evmomapl138_bsl.lib" contains TI-COFF object files which are incompatible with the ELF output file.  Ensure you are using the proper library.

 undefined   first referenced                        

  symbol         in file                             
>> Compilation failure
 ---------   ----------------                        
 _interrupt4 ./vectors_intr.obj                      
 main        C:\ti\lib\rts6740_elf.lib<args_main.obj>

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "L138_sine48_buf_intr.out" not built
gmake: *** [L138_sine48_buf_intr.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

I have tried numerous combinations of the steps above and tried to compile at each stage. So far I have determined:

A)The errors relating to the "ram memory range" are due to a clash between "linker_dsp.cmd" as above and "C6748.cmd" which is created by CCS as part of the new project process. Removing "C6748.cmd" from the project gives different errors.

Removing "linker_dsp.cmd" and leaving "C6748.cmd" seems to prevent these errors.

B) The ""C:\LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\lib\evmomapl138_bsl.lib"" errors appear to be due to the inclusion of that library. I can't find any other libraries in any of the downloads above that provide different results.

I would sincerely appreciate any help in getting these code examples, particularly "L138_loop_edma_triple", running.

  • Hi James,

    Could you attach the "linker_dsp.cmd" file.

    Have you downloaded the starterware for C6748 ?

    We have starterware package for C6748 and examples given for McASP.

    software-dl.ti.com/.../index_FDS.html

    processors.wiki.ti.com/.../StarterWare

    processors.wiki.ti.com/.../StarterWare_McASP
  • Titus,

    Thanks for getting back to me. Here is "linker_dsp.cmd": The forum will not let me attach it as .cmd so I saved as .txt.

    /cfs-file/__key/communityserver-discussions-components-files/791/0211.linker_5F00_dsp.txt

    On reviewing my post I realized the error messages didn't display correctly. I'll try again:

    **** Build of configuration Debug for project L138_sine48_buf_intr ****
    
    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
    'Building target: L138_sine48_buf_intr.out'
    'Invoking: C6000 Linker'
    "C:/ti/bin/cl6x" -mv6740 --abi=eabi -g --define=c6748 --display_error_number --diag_warning=225 --diag_wrap=off -z -m"L138_sine48_buf_intr.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/lib" -i"C:/ti/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="L138_sine48_buf_intr_linkInfo.xml" --rom_model -o "L138_sine48_buf_intr.out" "./L138_LCDK_aic3106_init.obj" "./L138_sine48_buf_intr.obj" "./vectors_intr.obj" "../C6748.cmd"  -l"libc.a" -l"C:\LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\lib\evmomapl138_bsl.lib" 
    <Linking>
    warning #10373-D: library "C:\LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\lib\evmomapl138_bsl.lib" contains TI-COFF object files which are incompatible with the ELF output file.  Ensure you are using the proper library.
    warning #10373-D: library "C:\LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\lib\evmomapl138_bsl.lib" contains TI-COFF object files which are incompatible with the ELF output file.  Ensure you are using the proper library.
    warning #10247-D: creating output section ".vecs" without a SECTIONS specification
    
     undefined                  first referenced            
      symbol                        in file                 
     ---------                  ----------------            
     AIC3106_writeRegister      ./L138_LCDK_aic3106_init.obj
     EVMOMAPL138_lpscTransition ./L138_LCDK_aic3106_init.obj
     EVMOMAPL138_pinmuxConfig   ./L138_LCDK_aic3106_init.obj
     GPIO_getInput              ./L138_LCDK_aic3106_init.obj
     GPIO_setDir                ./L138_LCDK_aic3106_init.obj
     USTIMER_init               ./L138_LCDK_aic3106_init.obj
     _interrupt4                ./vectors_intr.obj          
     vectors                    ./L138_LCDK_aic3106_init.obj
    
    
    >> Compilation failure
    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "L138_sine48_buf_intr.out" not built
    gmake: *** [L138_sine48_buf_intr.out] Error 1
    gmake: Target `all' not remade because of errors.
    
    **** Build Finished ****
    

    I was keen to get the textbook examples working if possible- even if only to get something out of the $160 purchase price!

    I also figured someone in TI had looked at the text and examples when I found this: http://e2e.ti.com/group/universityprogram/educators/f/776/t/223997

    Thanks a lot,

    James

  • Hi James,


    undefined first referenced
    symbol in file
    --------- ----------------
    AIC3106_writeRegister ./L138_LCDK_aic3106_init.obj
    EVMOMAPL138_lpscTransition ./L138_LCDK_aic3106_init.obj
    EVMOMAPL138_pinmuxConfig ./L138_LCDK_aic3106_init.obj
    GPIO_getInput ./L138_LCDK_aic3106_init.obj
    GPIO_setDir ./L138_LCDK_aic3106_init.obj
    USTIMER_init ./L138_LCDK_aic3106_init.obj
    _interrupt4 ./vectors_intr.obj
    vectors ./L138_LCDK_aic3106_init.obj


    This error seems to me that you have missed the library path for this APIs, e.g: "EVMOMAPL138_lpscTransition"

    Provide the correct library path in CCS properties for your project. For more info please visit

    processors.wiki.ti.com/.../Include_paths_and_options


    Regards,
    Shankari.

  • I got the textbook examples running after some work.

    It all came down to the includes. Here is how:

    Include the following in Project Properties->C6000 Compiler->Include Options

    "\LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\inc" and "\LCDK\L138_support" These paths refer to the files from the zip file "LCDK_files_CCSv5.zip" downloadable from the wiley FTP site at "ftp://ftp.wiley.com/sci_tech_med/signal_processing/"

    Include the following in Project Properties->C6000 Linker ->File Search Path

    ""\LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\lib\evmomapl138_bsl.lib"" This path refers to files from the same ZIP file above.

    This got it working for me.

  • Hi james,

    I am glad that you got it working.

    Thanks for closing the thread.

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------