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.

<strong>Tornado</strong> 2.0<br />

User’s Guide<br />

■<br />

■<br />

■<br />

■<br />

WDB banner (INCLUDE_WDB_BANNER)<br />

VIO driver (INCLUDE_WDB_VIO)<br />

WDB task creation (INCLUDE_WDB_START_NOTIFY)<br />

WDB user event (INCLUDE_WDB_USER_EVENT)<br />

These components are in the development tool components>WDB agent<br />

components>WDB agent services folder path.<br />

You can also reduce the maximum number of WDB breakpoints with the<br />

WDB_BP_MAX parameter of the WDB breakpoints component. And if you are using<br />

a serial connection, you can set the INCLUDE_WDB_TTY_TEST parameter to<br />

FALSE.<br />

If you are using a communication path which supports both system and task mode<br />

agents, then by default both agents are started. Since each agent consumes target<br />

memory (for example, each agent has a separate execution stack), you may wish to<br />

exclude one of the agents from the target system. You can configure the target to<br />

use only a task-mode agent or only a system-mode with the WDP task debugging or<br />

WDB system debugging options (which are in the folder path development tool<br />

components>WDB agent components>select WDB mode).<br />

Configuring the Target Agent for Exception Hooks<br />

If your application (or BSP) uses excHookAdd( ) to handle exceptions, host tools<br />

will still be notified of all exceptions (including the ones handled by your exception<br />

hook). If you want to suppress host tool notifications, you must exclude the<br />

component WDB exception notification. When this component is excluded, the target<br />

server is not notified of target exceptions, but the target will still report them in its<br />

console. In addition, if an exception occurs in the WDB task, the task will be<br />

suspended and the connection between the target server and the target agent will<br />

be broken.<br />

Starting the Agent Before the Kernel<br />

By default, the target agent is initialized near the end of the VxWorks initialization<br />

sequence. This is because the default configuration calls for the agent to run in task<br />

mode and to use the network for communication; thus, wdbConfig( ) must be<br />

called after kernelInit( ) and usrNetInit( ). (See VxWorks Programmer’s Guide:<br />

Configuration and Build for an outline of the overall VxWorks initialization<br />

sequence.)<br />

142

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

Saved successfully!

Ooh no, something went wrong!