Cannot override FreeRTOSConfig.h definitions

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
patfry
Offline
Last seen:1 year 6 months ago
加入:2017-02-02 16:00
Cannot override FreeRTOSConfig.h definitions

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,

Device:
PM_Dialog
Offline
Last seen:5 days 18 hours ago
工作人员
加入:2018-02-08 11:03
Hi patfry,

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