There is something which catches me out nearly everytime I update my FreeRTOS.
The vesion of the lib_SAM7S256.h is not compatible with the latest ones from Atmel.
In port.c where the rtos tick is installed, the following function call is used:
AT91F_AIC_ConfigureIt( AT91C_ID_SYS, AT91C_AIC_PRIOR_HIGHEST, portINT_LEVEL_SENSITIVE, ( void (*)(void) ) vNonPreemptiveTick );
The convention in the current atmel header file is:
__inline unsigned int AT91F_AIC_ConfigureIt (
AT91PS_AIC pAic, // \arg pointer to the AIC registers
unsigned int irq_id, // \arg interrupt number to initialize
unsigned int priority, // \arg priority to give to the interrupt
unsigned int src_type, // \arg activation and sense of activation
void (*newHandler) () ) // \arg address of the interrupt handler
Where the AIC peripheral is passed in as well.
Is there any chance that you can update the library version in the distribution so that it uses the library functions that are compatible with the current atmel standard.
What happens is that everytime I drop in a new FreeRTOS release into my source tree I end up wondering why it crashes and then I remember that I have to go in and modify the port.c file so that it passes the correct parameters to the configure call.