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.

Support for FreeRTOS on Launchpadxl2-tms57012 using HALCoGen

Other Parts Discussed in Thread: HALCOGEN

Hi,

I am modifying HALCoGen in order to add support for FreeRTOS on the Launchpadxl2-tms57012.

I based my modifications on the following targets (TMS570LS1227ZWT_FREERTOS and TMS570LS1224PGE.

Unfortunately after modifying many files I failed generating all the necessary files.

I have the following errors in HALCoGen into the Output window

**** error: variable not found: getVariableString(SYSTEM, CORE_M3, ...)

**** error: variable not found: getVariableString(SYSTEM, CORE_MPU_TOTAL_REGION, ...)

**** error: variable not found: getVariableString(SYSTEM, CORE_MPU_TASK_REGION_STACK, ...)

**** error: variable not found: getVariableString(SYSTEM, CORE_MPU_TASK_REGION_FIRST, ...)

Does any of you have already faced and solved this problem?

Regards,

Eddy

  • Eddy,

    Hi, what did you modify exactly - to get errors in the HalCoGen output?
  • Hi Anthony,

    I have modified device.xml to add a new device (TMS570LS1224PGE_FREERTOS)
    I have created a TMS570LS1224PGE_FREERTOS.cnf based on the TMS570LS1224PGE, adding all the var.os from TMS570LS1227ZWT_FREERTOS.cnf and the missing var.core* variables. Now only core_m3 is not recognized.
    I have created the file TMS570LS1224PGE_FREERTOS.xml based on TMS570LS1224PGE.xml in the FreeRTOS directory to add both linking files (sys_link_freeRTOS.cmd and sys_link_freeRTOS.ld).

    Recently I have modified var.os_enable.default=1.

    The problem I had is that none of the os_*.c files were generated. They are since I added os.enable.default.
    The last issue are both FreeRTOSConfig.h and os_heap.c have #if without expressions, I assume they should be automatically generated.

    Regards,

    Eddy
  • Eddy,

    I took a stab at it a different way.   Use at your own risk :) but at least blinky works.

    Here's an example freertos blinky for the LAUNCHXL2-TMS57012 launchpad. 

    5707.ls1224_freertos_blinky.zip

    These go into HALCoGen\v04.02.00\config

    2766.device.xml

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/312/1307.TMS570LS1224PGE_5F00_FREERTOS.cnf

    And this goes into HALCoGen\v04.02.00\drivers\FreeRTOS:

    7181.TMS570LS1224PGE_FREERTOS.xml

    These are hacks I did.  I'll ask the HalCoGen team to look at them to see if there are any mistakes but you can try them out.

  • Anthony,

    Thank you for your answer.
    I tried with your files and everything works fine.
    The difference I have noticed with mine is that you disabled the RTI from the FreeRTOS configuration.
    This is the step I had missed to make it work.

    Regards,

    Eddy