Пн. Окт 26th, 2026

Для контроля FreeRtos  в Eclipse  в проекте storog3 использовал статью

Better FreeRTOS Debugging in Eclipse

Дополнительно надо добавить  freertos_tasks_c_additions.h  https://www.nxp.com/docs/en/quick-reference-guide/MCUXpresso_IDE_FreeRTOS_Debug_Guide.pdf

установил FreeRtos plug-in http://freescale.com/lgfiles/updates/Eclipse/KDS

обновил FreeRtos до 10.0.0 для новых фич

FreeRTOSConfig.h:

Для получения Task Control Block (TCB) 

добавил #define configUSE_TRACE_FACILITY                  1

для получения Task Name
#define configMAX_TASK_NAME_LEN                   16

для получения Runtime information 

#define configGENERATE_RUN_TIME_STATS             1 
#define configGENERATE_RUN_TIME_STATS_USE_TICKS   1
#if configGENERATE_RUN_TIME_STATS == 1

#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() \
do { \
DWT->CTRL |= 1 ; \
DWT->CYCCNT = 0; \
}while(0)

#define portGET_RUN_TIME_COUNTER_VALUE() DWT->CYCCNT;

#endif

 

Queues, Mutex and Semaphore

#define configQUEUE_REGISTRY_SIZE                 10

osMessageQDef(FlashEvent, 4, uint16_t);
osMemoryMessageQId = osMessageCreate(osMessageQ(FlashEvent), NULL);

vQueueAddToRegistry(osMemoryMessageQId, «osMemoryMessageQId»);

 

Stack High Address

#define configRECORD_STACK_HIGH_ADDRESS           1
Дополнительно надо добавить  freertos_tasks_c_additions.h  
https://www.nxp.com/docs/en/quick-reference-guide/MCUXpresso_IDE_FreeRTOS_Debug_Guide.pdf
его можно взять здесь
https://github.com/ErichStyger/mcuoneclipse/blob/master/Examples/MCUXpresso/FRDM-K64F/FRDM-K64F_FreeRTOS_Heap5/freertos/freertos_tasks_c_additions.h

 // Heap Usage
#define configFRTOS_MEMORY_SCHEME 4
#define configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H 1

От sapfir63