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.

No lab files for C281x on C2000 teaching rom

Other Parts Discussed in Thread: CCSTUDIO

I recently downloaded the C2000 Teaching Rom from TI's website. When attempting Module 3 for the C281x it states that I need to include a file called lab2.c for the project. This file doesn't appear to have been included with the zip file. Reading further modules I find that other lab exercises are based upon this c code. I was wondering if anyone has a copy of lab2.c for the C281x if they could send it to me or post the code online.

  • Geroge

    for some reason the old 281x files didn't make it to the lastest CD-ROM. I have attached the solution files for all 281x chapters.

    Regards

     

     

    281x_Solution.zip
  • Hello,

     

    i use the solution (Lab2), but i have errors

    i use code composer v3.1

    and thank you

  • What exactly are your errors?

  • Hello,

    Thank you for your help,

    when I use the solution lf Lab2, I have those errors:

    ------------------------------  Lab2.pjt - Debug  ------------------------------
    [DSP281x_GlobalVariableDefs.c] "C:\CCStudio_v3.1\C2000\cgtools\bin\cl2000" -g -fr"C:/Documents and Settings/Jamel/Bureau/Debug" -i"C:/tidcs/c28/DSP281x/v120/DSP281x_headers/include" -i"../include" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"../../../../../../Documents and Settings/Ja/Bureau/Debug.lkf" "DSP281x_GlobalVariableDefs.c"

    [Lab2_solution_temp.c] "C:\CCStudio_v3.1\C2000\cgtools\bin\cl2000" -g -fr"C:/Documents and Settings/Ja/Bureau/Debug" -i"C:/tidcs/c28/DSP281x/v120/DSP281x_headers/include" -i"../include" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"../../Debug.lkf" "Lab2_solution_temp.c"
    "Lab2_solution_temp.c", line 87: error: struct "DEV_EMU_REGS" has no field "M0RAMDFT"
    "Lab2_solution_temp.c", line 88: error: struct "DEV_EMU_REGS" has no field "M1RAMDFT"
    "Lab2_solution_temp.c", line 89: error: struct "DEV_EMU_REGS" has no field "L0RAMDFT"
    "Lab2_solution_temp.c", line 90: error: struct "DEV_EMU_REGS" has no field "L1RAMDFT"
    "Lab2_solution_temp.c", line 91: error: struct "DEV_EMU_REGS" has no field "H0RAMDFT"
    5 errors detected in the compilation of "Lab2_solution_temp.c".

    >> Compilation failure

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

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

    and, When I remove ''M0, M1,L0,L1,H0RAMDFT'', I have:

    ------------------------------  Lab2.pjt - Debug  ------------------------------
    [DSP281x_GlobalVariableDefs.c] "C:\CCStudio_v3.1\C2000\cgtools\bin\cl2000" -g -fr"C:/Documents and Settings/Ja/Bureau/Debug" -i"C:/tidcs/c28/DSP281x/v120/DSP281x_headers/include" -i"../include" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"../../../../../../Documents and Settings/Jamel/Bureau/Debug.lkf" "DSP281x_GlobalVariableDefs.c"

    [Lab2_solution_temp.c] "C:\CCStudio_v3.1\C2000\cgtools\bin\cl2000" -g -fr"C:/Documents and Settings/Ja/Bureau/Debug" -i"C:/tidcs/c28/DSP281x/v120/DSP281x_headers/include" -i"../include" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"../../Debug.lkf" "Lab2_solution_temp.c"

    [Linking...] "C:\CCStudio_v3.1\C2000\cgtools\bin\cl2000" -@"Debug.lkf"
    <Linking>

    undefined                        first referenced
     symbol                              in file
    ---------                        ----------------
    _InitSysCtrl                     C:\Documents and Settings\Jamel\Bureau\Debug\Lab2_solution_temp.obj
    _SpeedUpRevA                     C:\Documents and Settings\Jamel\Bureau\Debug\Lab2_solution_temp.obj
    >>   error: symbol referencing errors - './Debug/Lab2.out' not built

    >> Compilation failure

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

     

     

  • (1) From the solutions zip file "lab2.zip" you should use the file "Lab2.c" and not the file "Lab2_solution_temp.c" as part of the project.

    (2) In File "Lab2.c" please delete the function, prototype and function call of function "SpeedUpRevA". This function was required for the first lot of samples in hte early days of the 2812. For all following silicon revisions this function can be removed.