I want to use freeRTOS together with the AT91SAM9263 controller. At the moment I always get a data abort error at this position:
vPortStartFirstTask
portRESTORE_CONTEXT
It seams that there`s somehting not defined - but I don`t know what… At the starting point, I use one sample project from freeRTOS, and made only a few changes according to this controller.
Here`s my main-function:
int main( void )
{
/* Setup the ports. */
prvSetupHardware();
/* Setup the IO required for the LED’s. */
vParTestInitialise();
vStartLEDFlashTasks( mainFLASH_PRIORITY );
vTaskStartScheduler();
return(0);
The scheduler will be started.
I hope someone could give me some hints to find this error…
Do you set the SAM9 into Supervisor mode before calling main()? It must be in Supervisor mode before portRESTORE_CONTEXT is called doing this before main() is called in normally the easiest way of achieving this.
everything is working fine now: the problem was the dbug interface (which was not installed and therefore the default printf() call in the IdleTaks generates an data abort).