Programming sam7s256 problem

Hi,

I use openocd 0.4.0 in order to program my at91sam7s256 microcontroler. I think i succes this part because i have this message :

“wrote 58989 bytes from file main.bin to flash bank 0 at offset 0x00000000 in 5.203025s (11.072 kb/s)”

and the end of my config file for openocd is :

"#Forces execution of the reset and init events, then quit

init

reset init

shutdown"

But my problem is that the microcontroler doesn’t run the program. I take a look at Csartup.s file but due to the fact that i begin with all that stuff i’m a bit lost.

Here is my Makefile :

"Cstartup.o: Cstartup.s

arm-none-eabi-as -mcpu=arm7tdmi -g -o Cstartup.o Cstartup.s Cstartup_sam7.c

main.o: main.c

arm-none-eabi-gcc -mcpu=arm7tdmi -g -c -o main.o main.c

main.bin: Cstartup.o main.o

arm-none-eabi-ld -Map -n -T ldscript -o main.bin main.o Cstartup.o"

I guess that Cstartup and ldscript files are here to initialise the stack, memory …

But where i tell the microcontroler to begin the main program ?

Is there other specific file for the sam7s256 i miss?

Thanks in advance,

Regards,