AM2732: FreeRTOS vApplicationDaemonTaskStartupHook not running

Part Number: AM2732

Tool/software:

Hi,

I have imported the default empty FreeRTOS system project offered in the SDK into CCS 20.2.

I have also modified the FreeRTOSConfig.h appropriately to include the startup daemon hook like so:

#define configUSE_DAEMON_TASK_STARTUP_HOOK      (1)
I also verified that:

#define configUSE_TIMERS                        (1)
 
However, when I create that hook function inside my main.c file and try to debug my code i notice it never enters.
void vApplicationDaemonTaskStartupHook(void)
{
    DebugP_log("inside daemon!!\r\n");
}
I noticed that if I try to place a breakpoint inside the function it says the following:
No code is associated with "C:\Users\......\main.c", line 15 in any loaded symbols.
 
It's like as if it is recognized as a user defined function that is never called so it isnt included in the disassembled version of the code so i can't place a breakpoint there.
Best regards,
K.
  • Hi K,

    First of all, there are two FreeRTOSConfig.h in the FreeRTOS porting for AM273x. One for R5F and one for C66x. Which one are you changing?

    Secondly, after you change the configUSE_DAEMON_TASK_STARTUP_HOOK      (1) in  FreeRTOSConfig.h, did you re-build the FreeRTOS library for R5F or C66x?

    gmake  -f makefile.am273x libs

    In order to make the changes effective, the FreeRTOS related libraries have to be re-built.

    Best regards,

    Ming

  • Hi,

    I am using the one for C66x. I didn't rebuild the FreeRTOS related libraries explicitly. I thought building the project in CCS would also do that.

    In which directory exactly do i have to run that gmake command?

    Somewhere in this directory (C:\ti\mcu_plus_sdk_am273x_09_02_00_60\source\kernel\freertos) ?

    Thanks,

    K.

  • Hi K,

    No, the CCS project will not re-build the libraries for you.

    You have to run the "gmake  -f makefile.am273x libs"

    C:\ti\mcu_plus_sdk_am273x_09_02_00_60

    Best regards,

    Ming

  • Hi Ming,

    I just did what you said but i still have the same problem. I cannot add a breakpoint inside vApplicationDaemonTaskStartupHook.

    It says the exact same thing as my first message. I am positive that i have properly configured FreeRTOSConfig.h.

    Do you need any more info from me to help me debug this problem?

    Thanks,

    K.

  • Actually I just fixed it.

    I had to go inside the Linker Options at the properties of my DSP project and change in the File Search Path the included library like so:


    I changed

    freertos.am273x.c66.ti-c6000.debug.lib

    to

    freertos.am273x.c66.ti-c6000.release.lib

    K.