I am having trouble changing some definitions in the FreeRTOSConfig.h without actually editing that file. As explained in section 7.2.3 in UM-B-044, I should be able to override these default values by placing new definitions in custom_config_qspi.h, but when I place "#define configCHECK_FOR_STACK_OVERFLOW 0
" in there and then clean and compile, I get this warning:
Description Resource Path Location Type
"configCHECK_FOR_STACK_OVERFLOW" redefined FreeRTOSConfig.h /fs-firmware/sdk/free_rtos/include line 151 C/C++ Problem
I also get a related error when I remove "void vApplicationStackOverflowHook( OS_TASK pxTask, char *pcTaskName )
" from main.c.
Here is a link to a similar question, but it doesn't appear that it was answered.
Thank you,
Keywords:
Device:
Hi patfry,
Regarding the FreeRTOS definitions, all of them should be in the FreeRTOSconfig.h header file, and not in the custom_config_qspi.h. If the definitions are included in the custom_config_qspi.h, then they will be double defined.
Regarding the error that you get it is expected, because all the hook functions that are associated with FreeRTOS,should not be removed. If you want you can modify the existing code or you can exclude them from the header file. But, it is strongly recommended to not remove them because these functions are called internally from the FreeRTOS Kernel.
Thanks, PM_Dialog