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?