IRTC, when in the Host mode, will compile an application very quickly. However, when it has been written and debugged, it may be desirable to save the resultant code.
This may be done with HEX-SAVE.
The start and end addresses are calculated and given to HEX-SAVE with a filename. The file extension .HEX is automatically appended to the filename.
Use: $0000 $0FFF HEX-SAVE APPL
The code is saved in the INTELLEC format, and may be copied to a programmer from DOS.
Saved code may be re-loaded into the Host Target image with HEX-LOAD. Again no file extension is required.
A * is shown for every 1k of code loaded, and a checksum of the code is given at the end.
Note: The addresses used by HEX-LOAD and HEX-SAVE are byte addresses not word. To save your total application use;
0 HERE-T HEX-SAVE APPL
Also the word CODE-FILE will create a .HEX file called CODETEST in the Win32For directory with the code range 0 to HERE-T. This may be viewed by the Atmel Studio debugger AvrDebug.exe. The word SEE will try to find the following word in the Target and if compiled shows the CFA of the word, creates CODETEST and runs AvrDebug. For this to work it is necessary to copy AvrDebug.exe into the Win32For directory.