SAM-BA monitor problem
You need to erase the chip to put the GPNVM Bit to 0 to boot from the ROM again.
It worked only once because maybe after loading your soft to the flash, the GPNVM Bit was set to 1 (1 means boot from flash).