nobody wrote on Tuesday, August 29, 2006:
I have been creating an AT91SAM7S256 port using WinARM (GCC) and I have it running to the point where it gets to vPortISRStartFirstTask() in portISR.c which executes the macro portRESTORE_CONTEXT(). However, once it gets to this point I don’t know where it goes. It doesn’t appear to be executing any of the tasks that have been created (basically the IAR SAM7S demo application). I haven’t seen it get to any of the tasks (I have been using the LEDs to show me where it is since I don’t know how to use the debugger yet). I’ve tested the WinARM Hello example source within this port and that works fine (LEDs flash, timers run, UART0 works). I figure that this must be close to working, but maybe it is jumping to a wrong address? I tried disabling all tasks except the IDLE task that gets created in vTaskStartScheduler() in tasks.c, but it still won’t jump to prvIdleTask().
Any suggestions? Any ideas on how to use a SAM-ICE/J-LINK (Segger) with the AT91SAM7S-EK board to debug? Once I’ve got this code working I will submit it back to FreeRTOS and WinARM for assimilation.