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.

Start new project SysBios with CCS4

Other Parts Discussed in Thread: SYSBIOS, TMS320F2812

SysBios 6.32.1.38;

XDCtools 3.22.1.21;

CCS 4.2.3;

 

Hi,

I want to build a task example form TI and I am not able to succeed build. I don't modify the actual code. I have the following errors:

js: "C:/Program Files/Texas Instruments/bios_6_32_01_38/packages/ti/sysbios/BIOS.xs", line 208: TypeError: Cannot read property "stackMemory" from null
"C:/Program Files/Texas Instruments/bios_6_32_01_38/packages/ti/sysbios/family/c28/Hwi.xs", line 83
"C:/Program Files/Texas Instruments/bios_6_32_01_38/packages/ti/sysbios/hal/Hwi.xs", line 59
"C:/Program Files/Texas Instruments/bios_6_32_01_38/packages/ti/sysbios/knl/Queue.xs", line 59
"C:/Program Files/Texas Instruments/bios_6_32_01_38/packages/ti/sysbios/knl/Semaphore.xs", line 60
gmake.exe: *** [package/cfg/task_p28L.xdl] Error 1
js: "C:/Program Files/Texas Instruments/xdctools_3_22_01_21/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake: Target `all' not remade because of errors. 

and I don't know why. Someone can help me?

(I try a task example form TI with a DSP/BIOS 5.41.10.36  and it build properly.)

Thanks

Jeremy 

  • Platform: ti.platforms.tms320x28:TMS320F2812

    Code Generation Tool 6.0.1

    There are missing informations to my last post.

  •  

    Hi Jeremy,

    I installed CCSv4.2.3, SYS/BIOS 6.32.01.38, IPC 1.23.01.26, XDCtools 3.22.01.21 and Code Generation tools 6.0.1.  I created all three task example projects using the project wizard in CCSv4.2.3 (they all three use the same platform you mention above --> ti.platforms.tms320x28:TMS320F2812)

    SYS/BIOS --> 28x Examples --> Task example

    SYS/BIOS --> Generic Examples --> Task Example (separate config project)

    SYS/BIOS --> Generic Examples --> Task Mutex Example

    I ran into an initial build error for the frequency for all three examples.  Per the error message, I added the following line to each .cfg file for each example project.

    BIOS.cpuFreq.lo = 100000000;

    I then built all three examples without any issues.  I was unable to reproduce the error that you have seen.  Is there any other information that you could provide that may help figure out your issue?  Can you attach the .c and .cfg file to this thread so I can try to build them with my setup.

    Thanks,

    -Jon

  • 2148.ABC.zip

     

    Hi Jon,

     

    I attach my task example project. At the first build, I had the frequency error, but after I had the list of error written above.

    Thanks

    Jeremy

  • Hi Jeremy,

    I'm seeing several problems in the task.cfg file that was included in your project.  The issue that was giving the initial error was because the following line in task.cfg.

    Program.platform = null;

    By default the project wizard is assigning the generic platform for 2812 to your project and this line was overriding the that and setting the platform to null.   I'm still working through the other changes in your task.cfg file. There are still errors when trying to build even with the line above removed.

    Can you try backing up and replacing your task.cfg file with the attached task.cfg file and let me know if you are able to build the project. 

    Did you make the changes to your task.cfg file or were they from a different project? I would like to understand where the changes came from to your task.cfg file.

    Thanks,

    -Jon

    6114.task.zip

  • Hi Jeremy,

    If you would like to place the task stacks into L01SARAM (I believe that is what you are trying to accomplish in your .cfg file), you can use the task.cfg that I sent and then just modify the TMS320F2812.cmd file in your project as follows.

    Change this:

        .stack               : > M01SARAM | L01SARAM     PAGE = 1
        .ebss               : > M01SARAM | L01SARAM     PAGE = 1
        .esysmem      : > L01SARAM | M01SARAM     PAGE = 1
        .cio                   : > L01SARAM | M01SARAM     PAGE = 1

    to this:

        .stack               : > L01SARAM     PAGE = 1
        .ebss               : > M01SARAM | L01SARAM     PAGE = 1
        .esysmem      : > L01SARAM | M01SARAM     PAGE = 1
        .cio                   : > L01SARAM | M01SARAM     PAGE = 1
        .ebss:taskStackSection       : > L01SARAM     PAGE = 1

    I'm not real clear what else you are trying to accomplish with the other changes in your .cfg file.

    -Jon

     

  • Great! The task file work and my project example build!

    But it's weird because I didn't modify somethings in the task file...

    You resolved my problem!

    Thanks,

    Jeremy