program at91sam7 with wiggler(olimex) jtag in IAR

how can i program at91sam7 with wiggler jtag in IAR.

i can debug it in flash & RAM but after discconect the code is gone.

it’s reaally hard to program with SAMBA.

thanks.