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.

omapl137 timer

Dear sir,

I am working with standard code given by texas " C:\Program Files\Texas Instruments\quickStartOMAPL1x_rCSL\OMAPL1x\rCSL_examples\evmOMAPL137\DSP_examples\timer\TIMER_led_blink_frequency_dspL137\src"

I have created new project (not RTS) ,added headers and linkers

•Include:"C:\Program Files\Texas Instruments\quickStartOMAPL1x_rCSL\OMAPL1x\support\includes“
•Linker:"C:\Program Files\Texas Instruments\quickStartOMAPL1x_rCSL\OMAPL1x\support\cmd\OMAPL137_DSP.cmd"
But still, am getting errors like "boolean and other fikes" not defined.
I just imported the same timer .ccs project file from that location and extracted and i include the file which is in the standard example(TIMER_led_blink_frequency_dspL137) to my newly created project......i checked each any every properties of it and change it to my project...
(in stanard example predefined symbol=OMAPL137  but in my project by default it is "omapl137 is in lower case,i changed to upper case)...here is my code and error attachment.
  • The legacy SW was designed to work with expected location so , we need to install the SW package default location.
    If not, we need to change the CCS properties to change the default location to your current location.

    Also, if you want to create a CCS project (like TI example) with the TI SW package, you need to setup everything like .cmd file, library location and include path etc.,

    Always make use of our TI wiki pages where we have huge documentation.


    I have created new project (not RTS) ,added headers and linkers

    Try to understand the existing example's CCS settings and properties then try to create a new CCS project.
    Let me try your attached example and reply to you.
  • Hi Titus,

    As per my knowledge,i have installed all texas softwares in default locaiton only and am not at all changing any parameters(location of installaiton).I have done comparing with the standard project and my project i found..

    In standard project --->>>in resource->linked resource,i have four things .But in my project ---->>in the same place ,i have NOTHING.please see the attachment.  .

    In standard project --->>>in Buitld->c6000 compiler->optimization->optimization leve=3,But in my project ---->>in the same place ,i have NONE,I changed to 3.

    In standard project --->>>in general->variant->generic c6747 device.but in my had omapl137.i changed to generic c6747 device.

    In standard project --->>>IN BUILD->variables,it was OMAPL1x_DIR,But in my project ---->>in the same place ,i have NOTHING.but i changed to it.

    but result is same.....wat to do with this...

    thank you....

  • The following things needs to be done to build your project successfully.

    1) Need to define "OMAPL137" in CCS properties settings.

    2) Need to add the "intvecs.asm" file and "OMAPL137_DSP.cmd" file.

    3) The default library built in COFF format so we need to create a project with COFF format and not in ELF format.

    I'm able to build your project.

    **** Build of configuration Debug for project time ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all

    'Building file: ../OMAPL1x_common.c'

    'Invoking: C6000 Compiler'

    "C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --include_path="C:/ti/quickStartOMAPL1x_rCSL/OMAPL1x/support/includes" --define=OMAPL137 --define=omapl137 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="OMAPL1x_common.pp"  "../OMAPL1x_common.c"

    'Finished building: ../OMAPL1x_common.c'

    ' '

    'Building file: C:/ti/quickStartOMAPL1x_rCSL/OMAPL1x/rCSL_examples/evmOMAPL137/DSP_examples/timer/TIMER_led_blink_frequency_dspL137/src/intvecs.asm'

    'Invoking: C6000 Compiler'

    "C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --include_path="C:/ti/quickStartOMAPL1x_rCSL/OMAPL1x/support/includes" --define=OMAPL137 --define=omapl137 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="intvecs.pp"  "C:/ti/quickStartOMAPL1x_rCSL/OMAPL1x/rCSL_examples/evmOMAPL137/DSP_examples/timer/TIMER_led_blink_frequency_dspL137/src/intvecs.asm"

    'Finished building: C:/ti/quickStartOMAPL1x_rCSL/OMAPL1x/rCSL_examples/evmOMAPL137/DSP_examples/timer/TIMER_led_blink_frequency_dspL137/src/intvecs.asm'

    ' '

    'Building file: ../main.c'

    'Invoking: C6000 Compiler'

    "C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6740 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --include_path="C:/ti/quickStartOMAPL1x_rCSL/OMAPL1x/support/includes" --define=OMAPL137 --define=omapl137 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"

    'Finished building: ../main.c'

    ' '

    'Building target: time.out'

    'Invoking: C6000 Linker'

    "C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6740 --abi=coffabi -g --define=OMAPL137 --define=omapl137 --display_error_number --diag_warning=225 --diag_wrap=off -z --stack_size=0x800 -m"time.map" --heap_size=0x800 -i"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/lib" -i"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --reread_libs --define=DSP_CORE=1 --warn_sections --display_error_number --diag_wrap=off --xml_link_info="time_linkInfo.xml" --rom_model -o "time.out" "./OMAPL1x_common.obj" "./intvecs.obj" "./main.obj"  -l"libc.a" -l"C:\ti\quickStartOMAPL1x_rCSL\OMAPL1x\support\cmd\OMAPL137_DSP.cmd"

    <Linking>

    'Finished building target: time.out'

    ' '

    3426.time.zip

    You have to change the CCS include and library section as per your location (I've modified for my location)

  • Hi Titus,

    I have two doubts,requesting to clarify both.

    1)I was trying the way what u said,but i am getting different errors,like

    L1P memory range overlaps existing memory range SHDSPL1PRAM

     L2 memory range overlaps existing memory range SHDSPL2RAM

    1D memory range overlaps existing memory range SHDSPL1DRAM

    what do you mean by this,would i need to incease or decrese or change the memory range....?.....

    2)I have collected the zip file what u attached in last conversion,as u said changed the path of "intvecs.asm" file and "OMAPL137_DSP.cmd" file,as well as INCLUDE files,in compiler section of properties,but still i am getting error like

    cannot find file:c\program,but my program not all include this path,still it is showing this,what is the reason.

    and other error is ,

    C:\\Users\\naseer\\AppData\\Local\\Temp\\050883", line 22: error #10008-D:
    cannot find file "Files\Texas",     no where my program related to this path,then why it is showing this path.

    I downloaded the the zip file,and extracted.Then i deleted older one with the same name in workspace and copied this (your zip downloaded)program to workspace and imported.

     

  • 1) Delete the OMAPL137.cmd file from your project and do Rebuild the project.
    2) Try to Rebuild the project (it may have some older location from earlier build)
  • Hi Titus,
    1)Thanks for your promt reply with long conversation,It works fine after removing the "OMAPL137.cmd",what was the reason........?i dint get why i got this errors.

    L1P memory range overlaps existing memory range SHDSPL1PRAM

    L2 memory range overlaps existing memory range SHDSPL2RAM

    1D memory range overlaps existing memory range SHDSPL1DRAM

    2)I did rebuild,but result is same.....with same errors.....

    thank you
  • 1) Its due to you have used multiple *.cmd file, if you look into library setting, already "OMAPL137_DSP.cmd" file is used.
    2) I don't what you have done to this project, so not able to predict the issue here.

  • Hi Titus,
    thanks for your support,i learnt a lot from u.
  • Super. Sounds good.
    Thanks for the update.