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.

DSP2834x_Headers_BIOS.cmd in a sys/bios project

Has anybody tried to use DSP2834x_Headers_BIOS.cmd or similar bios.cmd file in a sys/bios project  ?

It does not get recognized or I do not know how to use it. I get

Severity and Description    Path    Resource    Location    Creation Time    Id
unresolved symbol _GpioCtrlRegs

 

  • Sunil,
    I built some simple SYS/BIOS examples for 28027 for which I used
    DSP2802x_Headers_BIOS.cmd. I am using CCS 4.2.0.10018 and BIOS 6.30. I added that file manually after creating a new CCS project. Does that file show on your command line?

    Here is my linker command line and the output:

    'Invoking: Linker'

    "E:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.8/bin/cl2000" --silicon_version=28 -g --diag_warning=225 --large_memory_model --unified_memory -z -m"cmdtest.map" --stack_size=0x300 --warn_sections -i"E:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.8/lib" -i"E:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.8/include" --reread_libs --rom_model -o "cmdtest.out" "./main.obj" -l"rts2800_ml.lib" "../28027_RAM_lnk.cmd" "../DSP2802x_Headers_BIOS.cmd"

    <Linking>

    'Finished building target: cmdtest.out'

    ' '

    Build complete for project cmdtest

  • Sasha,

    I do see the cmd file in my command line. Here is my output.

    'Building target: hvps.out'

    'Invoking: Linker'

    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/bin/cl2000" --silicon_version=28 -g --diag_warning=225 --large_memory_model --unified_memory --float_support=fpu32 -z -m"hvps.map" --stack_size=0x300 --warn_sections -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/lib" -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c2000/include" --reread_libs --rom_model -o "hvps.out" -l"./configPkg/linker.cmd" "../DSP2834x_Headers_BIOS.cmd" "./hvps.obj" -l"rts2800_fpu32.lib"

    <Linking>

     

    undefined first referenced

    symbol in file

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

    _GpioCtrlRegs ./hvps.obj

    _GpioDataRegs ./hvps.obj

     

    error: unresolved symbols remain

    Your command line shows that you are also using ...RAM_lnk.cmd while I am using linker.cmd. How come?

  • You also need to include the DSP28xxx_GlobalVariableDefs.c file in your project to get the actual peripheral register structure definitions.

    Mark

  • Mark,

    Thank you. You are right. I included the c file and now finally my LED blinks !