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.

Need help about FreeRTOS with TMS570

Other Parts Discussed in Thread: TMS570LS0432, HALCOGEN

 Hello,

I'd like to get started with some simple example of RTOS (no necessary FreeRTOS) for TMS570LS0432 board. But, unfortunately, I wasn't able to find any working example. So maybe someone could point me to some kind of tutorial video or at least article.

Regards,

And thanks in advance.

  • Hello Vytautas,

    I have forwarded your post to one of our experts.  They will respond back soon.

  • Hi

    Download Latest HALCoGen version from below Link and Install.

    http://www.ti.com/tool/halcogen

    Once HALCoGen is installed you can find two FreeRTOS blinky example in the default install folder.

    C:\ti\Hercules\HALCoGen\v03.05.02\examples\TMS570LS31x\example_freeRTOSBlinky.c and example_freeRTOSRestrictedTask.c

    Regards
    Prathap

  • Hi Prathap,

    So I have HalCoGen 3.05.00 installed at the moment.   There is a TMS570LS0432PZ_FREERTOS project template available.

    Is the suggestion to:

       a) create a project using this TMS570LS0432PZ_FREERTOS template

       b) copy the example_freeRTOSBlinky.c file into the new project as a replacement for the sys_main.c file?

    In order to run on the 0432 instead of the 3137?

    -Anthony

  • Hi Anthony,

    Yes, you got it right.

    Thanks for making my post more understandable.

    Regards
    Prathap

  •  Hey everyone,

    Thanks for fast response. But I didn't want to verify the answer before I get the example running.
    So I tried doing everything as description in .c file says, but eventually I got into some kind of error of HalCoGen.

    New project for "TMS570LS0432PZ_FREERTOS".

    When I go to "TMS570..->Interrupts" and enable IRQ "Dispatch Mode". All the rest of properties are untouched, just to show the error that occurs.

    I get these errors in CCS 5.4:

    #10010 errors encountered during linking; "trinti1.out" not built

    <a href="file:/C:/ti54/ccsv5/tools/compiler/dmed/HTML/10234.html">#10234-D</a>  unresolved symbols remain

     unresolved symbol _isrStub, first referenced in ./source/sys_intvecs.obj

     

    And I can't go on with running this example.

     

    Regards,

    Vytautas

  • Hi Vytautas,

    Are you using HALCoGen 3.05.02?

    The new project for TMS570LS0432PZ_FREERTOS on 3.05.02 should not have this issue.

    Please seelct the "Vector mode" fro IRQ as in the image

     

    Regards
    Prathap

  • Hello,

    I've managed to run "example_freeRTOSBlinky", although description of how to run it, isn't exactly right. As pointed out by Prathap- you don't have to enable dispatch mode and you don't have to change any handler names. In fact the only thing I had to change, was enabling GIO driver and generate code. Another thing I was missing, that althoug you enable GIO drivers, you are controlling NHET channels.

    Thanks for everyone's patience.

    Regards,

    Vytautas 

     

     

  • Hi Prathap,

    I have HalCoGen 3.05.02. When I create new project only TMS570LS1227ZWT_FREERTOS project template available. I'd like uses TMS570LS1227PGE and FREERTOS . How can I do it?

    Regards, And thanks in advance

  • Agoda,

    The TMS570LS1227ZWT and PGE are both the same silicon - the package is the only difference.

    With the PGE you will see 2 main differences:

      a) have to run at a slower frequency, see table 3.3 in the datasheet SPNS162A,  "Switching Characteristics over Recommended Operating Conditions..."

      b) there are a lot fewer IO

    Since (b) is something you'd get to later as you start to turn on peripherals in HalCoGen,  you should be able to simply create a *ZWT_FREERTOS project, but then change the clock frequency down to 160MHz -- and you'll be up and running at least.

    -Anthony