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.

Stellaris and FreeRTOS support

Hello,

we are working on stellaris project with LM3s9b92 and LM3s9b96  microcontrollers and we are using FreeRTOS. We'd like to migrate to Code Composer but our projects are uncompilable. I think that the problem is that FreeRTOS is not ported to CCS, output:

-obj_directory="FreeRTOS"  "../FreeRTOS/tasks.c"
"C:\DOCUME~1\honza\LOCALS~1\Temp\0099211", ERROR!   at line 3107: [E0200]
         Bad term in expression
        ldr r0, =ulKernelPriority        

...

6 Assembly Errors, No Assembly Warnings

Errors in Source - Assembler Aborted

 

Is there a known way to compile project based on FreeRTOS by CCS?

 

Jan

  • Jan,

    Unfortunately FreeRTOS has not yet been ported for the CCS compiler.  He has a bunch of assembly code in it that is toolchain specific.

     

    Best you could do would be to configure CCS to use gcc.

     

    Regards,

    John

  • Hi John and thanks for your answer.. I have few more of them:

    Are there plans to port FreeRTOS for CCS compiler? If yes than what is the schedule?

    I also would like to configure CCS to use gcc but I don't know how. Can you advice me please?

    (and a sub-question: does it make sense to configure gcc? Can I use other TI tools then or do I need to implement also gdb functionality etc.?)

     

    Best regards,

    Jan

  • The FreeRTOS port would be done by FreeRTOS.org.  No schedule at the moment.

     

    There is some information on using gcc in CCS here:

    http://tiexpressdsp.com/index.php/GCC_-_Create_a_project

     

    The CCS debugger can debug gcc output so no need to configure gdb.

     

    Regards,

    John

     

  • Hi John,

    it's me once more. I followed the guide on the web, but I'm still not able to successfully compile the program. I was trying both cygwin and code sourcery and results are the same - Code Composer prints the message:

    Build error
    (Exec error:Launching failed)

     

    (even if I set a complete path for compiler - C:/Program...../gcc (g++, as, ld) )

     

    I don't know what to set up to get it working. Can you help with this? Can you help with setting up gcc for LM3S9B96?

     

    Jan

  • Jan,

    I stumbled upon this error when I was testing the procedure before adding it to the page. I had another gcc compiler (DJGPP in my case) in the path of my windows machine, and somehow Eclipse was picking up <gcc.exe> that belonged to DJGPP instead of <arm-none-linux-gnueabi-gcc.exe> that belonged to CodeSourcery specified in the Project -> Build Properties.

    When I removed the other compiler from the PATH the error went away.

    I imagine if this could be caused by a hardcoded name inside the make utility or Eclipse.

    Hope this information helps,

    Rafael

     

  • Hi Bizi,

    Rohit Here,

    Am totally new to Rtos.

    Am seeking some help for RTOS IN LM3S9B96, could you please aid me how to start  with  a demo application , to toggle gpio.

     Am using ccs5.3, ccs4.2 also.

    Would be a great help if u guide me how to open a demo project  in cc3 4.2 or 5.3 , and successfully compile it

    Waiting for your earliest reply.

    Rohit

  • Hi Bizi,

    Rohit Here,

    Am totally new to Rtos.

    Am seeking some help for RTOS IN LM3S9B96, could you please aid me how to start  with  a demo application , to toggle gpio.

     Am using ccs5.3, ccs4.2 also.

    Would be a great help if u guide me how to open a demo project  in cc3 4.2 or 5.3 , and successfully compile it

    Waiting for your earliest reply.

    Rohit

  • Hello Rohit,

    I'm sorry but I haven't been working with CCS or LuminaryMicro chips in last 3 years. I don't even have the build environment settled up. I switched to another platform and RTOS a long time ago...


    I guess you could still request the support from TI guys...


    Regards,
    Jan