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.

Compilation Errors for the C6713

Other Parts Discussed in Thread: CCSTUDIO

Hello guys,

I have a quick question about running CCS v 3.1 with the C6713 DSK.

I was building a project this past week, and when I ran the project, it did not complete the build.

Does anyone know how I can fix this?

You can see the error from the Debug Log file below.

Thanks!


-------------------------  rtdx_matlabFFT.pjt - Debug  -------------------------
[c6713dskinit.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/CCStudio_v3.1/myprojects/rtdx_matlabFFT/Debug" -i"C:/CCStudio_v3.1/C6000/dsk6713/include/" -d"CHIP_6713" -mv6710
-@"../myprojects/rtdx_matlabFFT/Debug.lkf" "c6713dskinit.c"

[intvecs.asm] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/CCStudio_v3.1/myprojects/rtdx_matlabFFT/Debug" -i"C:/CCStudio_v3.1/C6000/dsk6713/include/" -d"CHIP_6713" -mv6710 -@"../myprojects/rtdx_matlabFFT/Debug.lkf" "intvecs.asm"
*** MESSAGE! line 20: INFO -- Compiling for JTAG RTDX by default.

[rtdx_matlabFFT.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/CCStudio_v3.1/myprojects/rtdx_matlabFFT/Debug" -i"C:/CCStudio_v3.1/C6000/dsk6713/include/" -d"CHIP_6713" -mv6710 -@"Debug.lkf" "rtdx_matlabFFT.c"

[Linking...] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -@"Debug.lkf"
<Linking>
>> warning: creating output section .intvecs without SECTIONS specification
>> warning: creating output section .rtdx_text without SECTIONS specification
>> warning: creating output section .rtdx_data without SECTIONS specification
>> warning: creating output section .pinit without SECTIONS specification
>> warning: entry point symbol _c_int00 undefined

undefined                        first referenced
 symbol                              in file
---------                        ----------------
_MCBSP_read                      C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_IRQ_nmiEnable                   C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_MCBSP_getXmtEventId             C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_IRQ_reset                       C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_DSK6713_init                    C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_DSK6713_AIC23_setFreq           C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_MCBSP_start                     C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_MCBSP_rrdy                      C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_IRQ_globalEnable                C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_IRQ_globalDisable               C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_IRQ_map                         C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_MCBSP_config                    C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_MCBSP_xrdy                      C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_MCBSP_write                     C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_IRQ_enable                      C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_DSK6713_AIC23_codecdatahandle   C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_DSK6713_AIC23_openCodec         C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\c6713dskinit.obj
_c_int00                         C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\intvecs.obj
__strasg                         C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\rtdx_matlabFFT.obj
_puts                            C:\CCStudio_v3.1\myprojects\rtdx_matlabFFT\Debug\rtdx_matlabFFT.obj
__auto_init                      C:\CCStudio_v3.1\C6000\rtdx\lib\rtdx.lib
_RTDX_interrupt_mask             C:\CCStudio_v3.1\C6000\rtdx\lib\rtdx.lib
_memcpy                          C:\CCStudio_v3.1\C6000\rtdx\lib\rtdx.lib
_atexit                          C:\CCStudio_v3.1\C6000\rtdx\lib\rtdx.lib
>>   error: symbol referencing errors - './Debug/rtdx_matlabFFT.out' not built

>> Compilation failure

Build Complete,
  2 Errors, 5 Warnings, 0 Remarks.

  •  

    You are missing BSL (board support library - dsk6713bsl.lib) and CSL (chip support library - csl6713.lib). You need to add this libraries to your project. You probably have them in your computer so you could search for them.

    CSL can be downloaded at:

    http://focus.ti.com/docs/toolsw/folders/print/sprc090.html

    BSL comes when you buy the C6713 DSK.

    You are also missing RTS (run-time support library - rts6700.lib). You need to add this one as well. It is part of the Code generation Tools. Should be at C:\CCStudio_v3.3\C6000\cgtools\lib or C:\Program Files\Texas Instruments\C6000 Code Generation Tools 6.x.xx\lib depending on the version you are using and the place you installed it.

     

     

  • Hello.

    I added the files that you suggested.  Here are the results of running the project:


    Compiler options: -g  -ml3 (or -m13 used in Advanced Category for the "Memory Models: Far Calls and Data" setting)


    -------------------------  rtdx_matlabFFT.pjt - Debug  -------------------------
    [c6713dskinit.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/CCStudio_v3.1/myprojects/rtdx_matlabFFT/Debug" -i"C:/CCStudio_v3.1/C6000/dsk6713/include" -d"CHIP_6713" -ml3 -mv6710 -@"../myprojects/rtdx_matlabFFT/Debug.lkf" "c6713dskinit.c"

    [intvecs.asm] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/CCStudio_v3.1/myprojects/rtdx_matlabFFT/Debug" -i"C:/CCStudio_v3.1/C6000/dsk6713/include" -d"CHIP_6713" -ml3 -mv6710 -@"../myprojects/rtdx_matlabFFT/Debug.lkf" "intvecs.asm"
    *** MESSAGE! line 20: INFO -- Compiling for JTAG RTDX by default.

    [rtdx_matlabFFT.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"C:/CCStudio_v3.1/myprojects/rtdx_matlabFFT/Debug" -i"C:/CCStudio_v3.1/C6000/dsk6713/include" -d"CHIP_6713" -ml3 -mv6710 -@"Debug.lkf" "rtdx_matlabFFT.c"

    [Linking...] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -@"Debug.lkf"
    <Linking>
    >> warning: creating output section .intvecs without SECTIONS specification
    >> warning: creating output section .rtdx_text without SECTIONS specification
    >> warning: creating output section .rtdx_data without SECTIONS specification
    >> warning: creating output section .pinit without SECTIONS specification
    >> warning: creating .stack section with default size of 400 (hex) words.
       Use
                -stack option to change the default size.
    >> warning: creating .sysmem section with default size of 400 (hex) words.
     
                Use -heap option to change the default size.

    undefined                        first referenced
     symbol                              in file
    ---------                        ----------------
    _RTDX_interrupt_mask             C:\CCStudio_v3.1\C6000\rtdx\lib\rtdx.lib
    >>   error: symbol referencing errors - './Debug/rtdx_matlabFFT.out' not built

    >> Compilation failure

    Build Complete,
      2 Errors, 6 Warnings, 0 Remarks.

    I am not sure what is causing the errors and these warnings. Do you know how I can fix the errors and warnings.

    Thanks.

  • Please see page 4 of the document:

    http://focus.ti.com/lit/an/spra895/spra895.pdf

    If you are using DSP/BIOS, you can put the mask at your DSP/BIOS Configuration File. If you are not, you can just add a line in your cmd file:

    _RTDX_interrupt_mask = 0x0;

    Looking at the warnings, it seems that you are not creating any sections in your cmd. You are probably not using DSP/BIOS. Please take a look at the cmd file for one of our examples and compare with your to see what is missing.

     

     

     

  • I have kind of same problem I get:

    Loader: One or more sections of your program falls into a memory region that is not writable.  These regions will not actually be written to the target.  Check your linker configuration and/or memory map.
    Trouble Setting Breakpoint with the Action "Terminate Program Execution" at 0x23c0: Error 0x0000000A/-1176 Error during: Memory, Break Point,  The IM memory request is not serviced by the HW memory system.  This could be caused by the memory address specified does not exist in the specified  memory/cache level.    Sequence ID: 7 Error Code: -1176 Error Class: 0x0000000A
    Trouble Removing Breakpoint with the Action "Terminate Program Execution" at 0x23c0: Error 0x00000008/-2044 Error during: Break Point,  No breakpoint at 0x000023C0   Sequence ID: 8 Error Code: -2044 Error Class: 0x00000008
    Trouble Writing Register: Error 0x00000006/-1176 Error during: Memory, Register,  The IM memory request is not serviced by the HW memory system.  This could be caused by the memory address specified does not exist in the specified  memory/cache level.    Sequence ID: 6 Error Code: -1176 Error Class: 0x00000006
    Trouble Setting Breakpoint with the Action "Process CIO" at 0x2120: Error 0x0000000A/-1176 Error during: Memory, Break Point,  The IM memory request is not serviced by the HW memory system.  This could be caused by the memory address specified does not exist in the specified  memory/cache level.    Sequence ID: 7 Error Code: -1176 Error Class: 0x0000000A
    Trouble Setting Breakpoint with the Action "Terminate Program Execution" at 0x23c0: Error 0x0000000A/-1176 Error during: Memory, Break Point,  The IM memory request is not serviced by the HW memory system.  This could be caused by the memory address specified does not exist in the specified  memory/cache level.    Sequence ID: 7 Error Code: -1176 Error Class: 0x0000000A

    but this is when I try to load my .out file. the project that I am trying to run is actually the volume example in the CCS tutorial, also it has these two warning when I build the project:

     

    [Linking...] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"Debug.lkf"
    <Linking>
    >> warning: creating .stack section with default size of 400 (hex) words.
       Use
                -stack option to change the default size.
    >> warning: creating .sysmem section with default size of 400 (hex) words.
     
                Use -heap option to change the default size.

     

  • mohsen said:
    Loader: One or more sections of your program falls into a memory region that is not writable.  These regions will not actually be written to the target.  Check your linker configuration and/or memory map.

    Are you sure you're actually writing to valid memory? Have you defined a memory map in your GEL file? One of these two (or maybe both) is preventing the CCS loader from writing to the DSP.

    mohsen said:
    >> warning: creating .stack section with default size of 400 (hex) words.
       Use
                -stack option to change the default size.
    This warning is self-explanatory. Inside your linker command file you can add a switch -stack 0x400 (or some other size) to get rid of it. The same goes with the heap option as well.