rtel wrote on Thursday, November 17, 2005:
Can you please check the .mac file that comes with FreeRTOS.org against the one supplied by Atmel. Perhaps it has changed.
The .mac file contains a set of macros that execute at various times during the debug cycle. There is one that executes prior to the code being downloaded, one immediately after, etc.
The .mac files that were originally provided with the development kit contained several problems that could result in the code executing correctly during the first download, but failing on subsequent downloads. This was because the first time the code runs it sets up some peripherals, notably the timer for the RTOS tick. The next time you download the code the macro file should set all the peripherals back to their default state - disabling the timer tick again prior to executing the code (along with some other things). However this was not done and the tick kept ticking during the startup sequence causing problems. There were other issues also, I can’t remember exactly but a search of this forum might turn them up.
1 Program the flash using the JTAG.
2 Power down the board.
3 Remove the JTAG adaptor.
4 Power up again.
and the demo always runs then it is most likely to be the macros that setup the debugger.
Hope this helps! Please let us know if the .mac file supplied by Atmel now contains any changes.