Hi Dor
Projects often have multiple targets (for SRAM and for FLASH). The SRAM is often called "debug" and the FLASH one "release", although debugging in FLASH is also possible.
How you work with the two depends on the debugger environment that you use.
Often the ATMEL SAMBA program is used to program to FLASH, whereby a non-volatile FLASH bit also needs to be set so that it boots from the application rather than the internal boot loader. Therefore you may also find that your code is running from FLASH when the debugger is starting it, but after a manual reset the internal boot loader starts instead because the NV bit has not be set.
See chapter 5 of the following for some more details:
http://www.utasker.com/docs/SAM7X/uTaskerV1-4_SAM7X.PDFSince the SRAM space is much more limited compared to the FLASH it is a good idea to be become proficient with debugging in FLASH as this is often the only way to debug complete project code.
Regards
Mark
http://www.uTasker.com