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.

CCS/RM44L520: Latest HALCoGen 4.07 have some problem when generate the project RM44L520 with FreeRTOS 9.0

Part Number: RM44L520
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

First Thanks to the newest HALCoGen 4.07 release, I can produce the RM44L520 with FreeRTOS project. But I guess your side didn't take proficient test on it. After I check "use Timers"  option on Tab OS and generate a project, then build in my CCS 7.1, problem happens as below:

undefined first referenced
symbol in file
--------- ----------------
MPU_xTimerCreate ./source/sys_main.obj
xQueueCreateMutexStatic ./source/os_mpu_wrappers.obj
xTimerPendFunctionCall ./source/os_mpu_wrappers.obj

 

I guess the root cause is that in os_mpu_wrappers.h define as below line, and it always take effect

#define xTimerCreate MPU_xTimerCreate

But the implement on the MPU_xTimerCreate() is NOT included in any file generated.

#define xTimerCreate MPU_xTimerCreate

  • I guess the solution should as below:( The Statement in RED is new added after generated by HALCoGEN). I guess the bug is thanks to your tester and developer didn't take sufficient test on this version. Please try to re-test it ^_^

    /* Gong H add below statement */

    #if( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_TIMERS == 1 ) )

       TimerHandle_t MPU_xTimerCreate( const char * const pcTimerName, const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void * const pvTimerID, TimerCallbackFunction_t pxCallbackFunction )

       {

       TimerHandle_t xReturn;

       BaseType_t xRunningPrivileged = prvRaisePrivilege();

           xReturn = xTimerCreate( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction );

           portRESET_PRIVILEGE( xRunningPrivileged );

           return xReturn;

       }

    #endif

    /*----------------------------------------------------------------------------*/

    #if( INCLUDE_xTimerPendFunctionCall == 1 ) /* Gong H add the Compile Switcher, only compile here if INCLUDE_xTimerPendFunctionCall is used */

    BaseType_t MPU_xTimerPendFunctionCall( PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, TickType_t xTicksToWait )

    {

    BaseType_t xReturn;

    BaseType_t xRunningPrivileged = prvRaisePrivilege();

    xReturn = xTimerPendFunctionCall( xFunctionToPend, pvParameter1, ulParameter2, xTicksToWait );

    portRESET_PRIVILEGE( xRunningPrivileged );

    return xReturn;

    }

    #endif

    /*----------------------------------------------------------------------------*/

    #if( configSUPPORT_STATIC_ALLOCATION == 1 ) /* Gong H Add the Compile Switcher */

    QueueHandle_t MPU_xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue )

    {

    QueueHandle_t xReturn;

    BaseType_t xRunningPrivileged = prvRaisePrivilege();

    xReturn = xQueueCreateMutexStatic( ucQueueType, pxStaticQueue );

    portRESET_PRIVILEGE( xRunningPrivileged );

    return xReturn;

    }

    #endif

  • Except this, other errors found in RM44L520 FreeRTOS Version9.0 after I use HALCoGEN 4.07. I switch back to HALCoGEN 4.06.1. I will not use latest version before you push a stable version.

  • Hello Gong,

    I am sorry you are experiencing some difficulties with the latest release. I have forwarded your post to our Halcogen lead so they may respond to the points you have raised.
  • Not surprisingly I've seen the same issue with the RM57L, I've also noticed that the about screen still shows 04.06.00 (I've double checked that I'm not running the old one).

  • Hi David,

    I am sorry you are facing issues with the latest version of HALCoGen. Thank you for pointing this out. We will be fixing these issues in our next release.

    Can you let us know what other errors you faced while using this version.

    Thanks and Regards,

    Veena

  • Nothing else to report. However I'll continue to use 04.06.01 until your next release.