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.

Changing configTICK_RATE_HZ on FreeRTOS prevents anything from working.



Hi,

So I am using FreeRTOS adn the example has the following:

#define configTICK_RATE_HZ                  ( ( portTickType ) 1000 )

However i need to collect data faster so that I can perform some signal processing. But it seems whenever I change this from 1000 (increases), whether it be to 50000 or to just 1001 the whole system just breaks.

The only place this value is used is in the port.c file of Free RTOS.

/*
 * Setup the systick timer to generate the tick interrupts at the required
 * frequency.
 */
void prvSetupTimerInterrupt( void )
{
	/* Configure SysTick to interrupt at the requested rate. */
	*(portNVIC_SYSTICK_LOAD) = ( configCPU_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
	*(portNVIC_SYSTICK_CTRL) = portNVIC_SYSTICK_CLK | portNVIC_SYSTICK_INT | portNVIC_SYSTICK_ENABLE;
}

Why is 1000 so special that this all falls apart if I change it?