Have you taken out the idle hook function? This will cause a crash if the usb task is not running as it tries to send data on the usb as part of the demo.
it’s verry strange. I have found un complete package from this forum from scott miller. I try it and dosen’t work more. I never get back from the restor context. I light up a led in the begining of the macro and another on after it and the second one don’t light up.
if i understood well, you are using the linker scripts from the lwip demo with an AT91SAM7S64.
my guess is this will not work.
the reason is: the SAM7X, for which the ld script was made, has lots more ram and flash. thus, a couple things will be set at addresses that don’t really exist on your SAM7S64 (actually, there might be an address overlap to lower addresses)
so the point is: you have to use a ld script for sam7s64 with the right ram and rom sizes set
It seems you are not configuring the processor flash or clocks.
Take a look at the boot.s file included with the lwIP demo. You will see that it calls a function AT91F_LowLevelInit(). I have added this to the files you sent me and now everything you sent is working.