Hi All
In case anyone has any difficulties with loading code or debugging with IAR5.4 there is now have an improved project setup here:
www.uTasker.com/software/V1.4/IAR5_SAM7X.zipBelow is a description of the important settings as used there and also generally valid:
**********************************************************************************************************
1) I set the macro files (in Debugger Setup) to be taken from settings the IAR program directory
arm\examples\Atmel\resources\iar\at91sam7x-ek-flash.mac(for RAM debug the file
arm\examples\Atmel\resources\iar\at91sam7x-ek-sram.mac)
2) For the device description file (same dialog) I took it from
arm\config\debugger\Atmel\ioat91sam7x2563) In the download dialogue click “Use flash loader”. Then edit the configuration with
Memory Range – Start
0x100000 End
0xFFFFFFFFRelocate Offset
0Set overwrite default flash loader path with
arm\config\flashloader\Atmel\AT91SAM7XC256-EK\flash-at91sam7xc256.xmlAs extra parameter set
--flashFor the SRAM debug case I didn’t set anything in the Download dialog (all off)
Note that the paths above are referenced to the IAR program directory (eg. in my case
c:\Programs\IAR Systems\Embedded Workbench 5.4\)
They can be referencing using like
$TOOLKIT_DIR$ before the
\config\... part to keep it install independent.
**********************************************************************************************************
Regards
Mark