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.

Reconfiguring and building FreeRTOS

Part Number: AM2632

Tool/software:

What is the procedure for reconfiguring and building the FreeRTOS kernel within the SDK? 

I am using SDK 10_01_00_31. I have put gmake in my path and the build starts but I get an error as below.  Are them some configuration items I need to set up? Paths?

$ gmake -f makefile.am263x.r5f.ti-arm-clang
C:/ti/ccs1281/ccs/utils/cygwin/mkdir -p obj/am263x/ti-arm-clang/release/r5f/freertos/
 Compiling: freertos.am263x.r5f.ti-arm-clang.release.lib: FreeRTOS-POSIX/FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c
C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-armllvm_4.0.1.LTS/bin/tiarmclang -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mthumb -Wall -Werror -g -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -Wno-extra  -Os -Oz -flto  -IC:/ti/ccs1281/ccs/tools/compiler/ti-cgt-armllvm_4.0.1.LTS/include/c -IC:/ti/mcu_plus_sdk_am263x_10_01_00_31/source -IFreeRTOS-Kernel/include -Iportable/TI_ARM_CLANG/ARM_CR5F -Iconfig/am263x/r5f -IFreeRTOS-POSIX/include -IFreeRTOS-POSIX/include/private -IFreeRTOS-POSIX/FreeRTOS-Plus-POSIX/include -IFreeRTOS-POSIX/FreeRTOS-Plus-POSIX/include/portable   -DSOC_AM263X   -MMD -o obj/am263x/ti-arm-clang/release/r5f/freertos//FreeRTOS_POSIX_mqueue.obj FreeRTOS-POSIX/FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c
FreeRTOS-POSIX/FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c:223:13: warning: call to undeclared function 'xQueueCreate'; ISO C99 and later do not support implicit function
      declarations [-Wimplicit-function-declaration]
  223 |             xQueueCreate( pxAttr->mq_maxmsg, sizeof( QueueElement_t ) );
      |             ^
FreeRTOS-POSIX/FreeRTOS-Plus-POSIX/source/FreeRTOS_POSIX_mqueue.c:222:38: error: incompatible integer to pointer conversion assigning to 'QueueHandle_t' (aka 'struct QueueDefinition *')
      from 'int' [-Wint-conversion]
  222 |         ( *ppxMessageQueue )->xQueue =
      |                                      ^
  223 |             xQueueCreate( pxAttr->mq_maxmsg, sizeof( QueueElement_t ) );
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
makefile.am263x.r5f.ti-arm-clang:160: recipe for target 'FreeRTOS_POSIX_mqueue.obj' failed
gmake: *** [FreeRTOS_POSIX_mqueue.obj] Error 1

  • I ended up re-installing the SDK, and the base build worked.  Not sure why.  I will close this and post additional questions if they arise.

  • Hi Tom,

    Did you change some configuration in FreeRTOSConfig.h? Glad to know it worked, but my suspicion is that maybe something changed in the default config file but was not completely enabled/disabled (for e.g. some MACRO enabled for a feature but the function calls it requires are not present/configured).

    Regards,
    Shaunak