02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2<br />

Setup and Startup<br />

2.5 Host-Target Communication Configuration<br />

<strong>Tornado</strong> host tools such as the shell and debugger communicate with the target<br />

system through a target server. A target server can be configured with a variety of<br />

back ends, which provide for various modes of communication with the target<br />

agent. On the target side, VxWorks can be configured and built with a variety of<br />

target agent communication interfaces.<br />

Your choice of target server back end and target agent communication interface is<br />

based on the mode of communication that you establish between the host and<br />

target (network, serial, and so on). In any case, the target server must be configured<br />

with a back end that matches the target agent interface with which VxWorks has<br />

been configured and built. See Figure 2-4 for a detailed diagram of host-target<br />

communications.<br />

The default configurations for both the VxWorks target agent and <strong>Tornado</strong> target<br />

servers are for a network connection. If you are using a network connection, you<br />

can proceed with booting your target (2.6 Booting VxWorks, p.45).<br />

2<br />

! WARNING: If you are using a connection other than network (the default), you<br />

must rebuild VxWorks with the appropriate target agent communication interface,<br />

and configure a target server with the corresponding back end, before you can use<br />

<strong>Tornado</strong> tools with your target. See 4.6 Configuring the Target-Host Communication<br />

Interface, p.137 and 2.5 Host-Target Communication Configuration, p.31.<br />

All of the standard back ends included with <strong>Tornado</strong> connect to the target through<br />

the WDB target agent. Thus, in order to understand the features of each back end,<br />

you must understand the modes in which the target agent can execute. These<br />

modes are called task mode, system mode, and dual mode.<br />

■<br />

■<br />

In task mode, the agent runs as a VxWorks task. Debugging is performed on a<br />

per-task basis: you can isolate the task or tasks of interest without affecting the<br />

rest of the target system.<br />

In system mode, the agent runs externally from VxWorks, almost like a ROM<br />

monitor. This allows you to debug an application as if it and VxWorks were a<br />

single thread of execution. In this mode, when the target run-time encounters<br />

a breakpoint, VxWorks and the application are stopped and interrupts are<br />

locked. One of the biggest advantages of this mode is that you can single-step<br />

through ISRs; on the other hand, it is more difficult to manipulate individual<br />

tasks. Another drawback is that this mode is more intrusive: it adds significant<br />

interrupt latency to the system, because the agent runs with interrupts locked<br />

when it takes control (for example, after a breakpoint).<br />

31

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!