Hi, I working on STM32F4 Discovery with FreeRTOS ver 9. I use xTaskGetTickCount to see how long my task is working on. But xTaskGetTickCount always returns 0. This is my task code
Sounds like the tick interrupt is not running. Is it installed? See the first question of the FAQ page “my application does not run, what could be wrong?”. I think there is a link to the page in the comments at the top of each source file.
No I don’t have any warnings. Sorry for the Typo. Actually tamp1 & tamp2 is temp1 & temp2. And I’m sorry, I don’t get what do you mean about installed? Do you mean Tick is installed? correct me if I’m wrong
Question is if the SysTick interrupt / its ISR is properly installed.
Note that this is port / BSP specific.
For STMF4 ie. Cortex-M4 architecture you have to prepare the exception vector table containing the interrupt handlers used by your application.
It should at least contain the entries required by FreeRTOS to run.
These are defined in your FreeRTOSConfig.h:
/* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS standard names. */
#define vPortSVCHandler SVC_Handler
#define xPortPendSVHandler PendSV_Handler
#define xPortSysTickHandler SysTick_Handler