Hi Thomas
I tend to do the following:
1. Load the FLASH using the ATMEL SAMBA program via USB (boot program and application).
2. Debug out of FLASH
3. Load each new version using HTTP from a web browser (SAMB again in emergency when the code doesn't run...)
The use fo the boot loader is described in
http://www.utasker.com/docs/uTasker/BM-Booloader_for_SAM7X.PDFI never found out the way to program from IAR, although it certainly is possible somehow...
To debug from FLASH make sure that the following settings are correct:
- in the linker setting - Format = Debug Information for C-Spy and Module Local Symbols = "Include all"
- in debugger setting I don't set any macro file for use. Under the download option set "Suppress download".
When you connect it should load the C-Spy information containg all debug infomation and reset the device so that it starts and runs from FLASH (where the programm obviously has to be already loaded to).
I don't set run to main until it is clear that all is working - then you can check that it is stepping through the start up code.
If anyone has better information please post here!!
Good luck
regards
Mark