rtel wrote on Saturday, March 18, 2006:
I have not actually tried it but I think the following procedure will get you pretty close:
1) Copy the demo/lwIP_Demo_Rowley_ARM7 directory to a new directory called something like demo/Rowley_SAM7S.
2) From within CrossStudio open the rtosdemo workspace in the new Rowley_SAM7S directory.
3) In the project explorer right click on the rtosdemo project, select properties from the pop up menu, select the built tab of the pop up windows, and set the target processor to the one you are using. In the same pop up window select the linker tab and set the memory map file to the one for the processor you are using.
4) Back in the project explorer window, delete the following files from the build:
i) The entire lwIP folder.
This leaves you with just the flash tasks for a simple starting point.
5) The file partest.c contains the code that writes to the LED’s on the board. The code for this is therefore dependent on the EK you are using. Open up partest.c and write the function to initialise, set and LED and toggle an LED to use the correct ports for your target board. If you are using the same EK as per the FreeRTOS SAM7S IAR demo then look at the partest.c file that comes with this demo for most of the code you need. Test that the partest.c code works in isolation (just create a main() function that calls these functions so you know they work before you try and use them with the rtos).
6) Take the FreeRTOSConfig.h file from the IAR SAM7S demo and copy all the #defines into the FreeRTOSConfig.h file in your new Rowley_SAM7S directory. Don’t just replace the file as it might contain other settings you require.
7) Open port.c and replace the included header file AT91SAM7X256.h with the correct header for your processor.
Try compiling and see how you go. The Rowley tools have an excellent debugger so you should be able to isolate any problems fairly easily.