Hardware Reference
In-Depth Information
Figure 3.11 Select New from the File menu to create a new file
After the program is assembled successfully, we are ready to run and debug the program.
The output of the assembly process is an S-record file eg2_13.s19 . The file name has a suffix
s19. The S-record format is a common file format defined by Freescale to allow tools from dif-
ferent vendors to work on the same project.
3.5.6 Downloading the S-Record File onto the Demo Board for Execution
The D-Bug12 provides the following command for the user to download the S-record file
onto the demo board:
load [ * AddressOffset + ]
The load command is used to load S-record objects into memory from an external device.
The , AddressOffset ., if supplied, is added to the load address of each S-record before its data
bytes are placed in memory. Providing an address offset other than zero allows an object code or
data to be loaded into memory at a location other than that for which it was assembled. During
the loading process, the S-record data is not echoed to the control console. However, for each
10 S-records that are successfully loaded, an ASCII asterisk character (*) is sent to the control
console. When an S-record file has been successfully loaded, the D-Bug12 prompt reappears on
the screen.
The load command is terminated when D-Bug12 receives an S9 end-of-file record. If the
object being loaded does not contain an S9 record, D-Bug12 does not output its prompt and
continues to wait for the end-of-file record. Pressing the reset switch returns D-Bug12 to its
command line prompt.
 
Search WWH ::




Custom Search