Int Labview
Int Labview
TRACE32 Directory
TRACE32 Index
Overview .................................................................................................................................. 3
Version 24-May-2016
This document describes the installation process and the basic use of the LabVIEW Virtual Instruments
(version 8.3 and later) for TRACE32.
Overview
The LabVIEW Virtual Instruments for TRACE32 contains an interface that gives the LabVIEW internal VIs
access to external hardware debuggers. Virtual Instruments for TRACE32 allows the LabVIEW application
to interact with the program running on the embedded target.
The TRACE32 Software contains an interface for external control of TRACE32. Virtual Instruments for
TRACE32 give the LabVIEW application possibility to control the hardware debugger and program run by
the debugger.
The LabVIEW application makes use of the Virtual Instruments for TRACE32 through the T32_LabView.dll
providing the TRACE32 API interface. The DLL contains the TRACE32 function calls via UDP/IP socket
interface to the specified TRACE32 instance, after processing them, returns them using the same way.
The library with Virtual Instruments for TRACE32 contains several block diagrams to communicate directly
with TRACE32 and several controls simplifying the use of the Virtual Instruments.
Follow these steps to install the VIs for TRACE32 and configure TRACE32:
1. Close TRACE32.
2. Close LabVIEW.
4. Start LabVIEW.
5. Open the new blank VI file and select the Window -> Show Block Diagram from menu. Click
the right mouse button to see the functions palette and next select User Libraries and Virtual
Instruments for TRACE32.
6. VIs for TRACE32 communications with TRACE32 through T32API over UDP local port.
Choose free port (for example 20000 - default for T32_Init.vi) and set it as below.
In case of using more than one TRACE32 simultaneously, please remember to set different API port
numbers for each TRACE32 configuration.
If, for some reason T32Start is not used, API port number can be set in “config.t32“ configuration file.
This file can be found in local TRACE32 directory. Please add following lines to this file:
RCL=NETASSIST
PACKLEN=1024
PORT=20000
Due to internals issues, please place empty lines between added section and other sections (entries)
in this file.
The following section contains detailed descriptions of all elements included in Virtual Instruments for
TRACE32.
Trace32_Init.vi connects LabVIEW to TRACE32 and creates a “T32_Handle”. Ensure that all subsequent
TRACE32 VIs are connected to this handle; especially take care in conditional executions, that the handle
connections are continuous. TRACE32 VIs for LabVIEW older than 2011 may break, if no handle is
connected. VIs for LabVIEW version 2011 and above check the handle and throw an error if the handle is
missing.
Trace32_Terminate.vi closes the connection between TRACE32 and LabVIEW. Call this in any case; an
attempt to call Trace32_Init.vi without having the connection closed before will throw an error.
Trace32_Init.vi
Creates a connection between LabVIEW and TRACE32. Must be called before any other VI will try to
connect to TRACE32.
Connector Pane
u32 Device - specifies TRACE32 device. Currently there are only two values defined:
0x0 - Basic operating system of the TRACE32 (“::“); disables all device specific
commands.
u32 Port - defines the UDP port to use. If omitted, the default value (20000) is set. Be
sure that these settings fit to the RCL settings in the “config.t32“ file.
u32 Package length - specifies the maximum data package length and can not be
bigger than 1024 and must fit to the value defined in the “config.t32“ file. Default
value is 1024.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
T32_Handle - TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Deletes connection between LabView and TRACE32. It is called when connection to TRACE32 should be
terminated. After this operation T32_Handle is no longer valid.
Connector Pane
T32_Handle - TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32. After this operation is no longer valid.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_AddBreakpoint.vi
Connector Pane
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_ClrBreakpoint.vi
Connector Pane
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Connector Pane
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_MemoryRead.vi
Reads data from target memory. The size of the data block is not limited.The access parameter defines
the memory access class and access method.
Connector Pane
Emulation memory access - Set for emulation memory access (E:, dual port
access).
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
0 Data access, D:
1 Program access, P:
12 AD
13 AP
15 USR
2 CP0
3 ICEbreaker
4 ETM
5 CP14
6 CP15
7 ARM logical
8 THUMB logical
9 ARM physical
10 THUMB physical
11 ETB
14 DAP
2 SPR
3 DCR
5 PMR
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_MemoryWrite.vi
Writes data to target memory. The size of the data block is not limited. This function should be used to
access variables and make other not time critical memory writes. The access flags define the memory
access class and access method.
Connector Pane
Emulation memory access - Set for emulation memory access (E:, dual port
access).
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_ReadCpuRegister.vi
Reads numerical value from the CPU register. Use the same register names as in TRACE32 CPU registers
window.
Connector Pane
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
Register name - Name of the CPU register. Use the same register names as in
TRACE32 CPU registers window.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_WriteCpuRegister.vi
Writes numerical value to the CPU register. Use the same register names as in TRACE32 CPU registers
window.
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
Register name - Name of the CPU register. Use the same register names as in
TRACE32 CPU registers window.
u32 Register value - Contains new value to write to the CPU register.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_ReadVariable.vi
Returns the contents of the hll expression as an integer. Use the same variable names as in application
on TRACE32.
Connector Pane
Emulation memory access - Set for emulation memory access (access class E:, aka
dual port access)
False - Disable emulation memory access (default)
True - Enable emulation memory access
u32 T32_Handle in - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
Variable name - Name of the variable. Use the same variable names as in application
on TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Writes numerical value to the variable. Use the same variable names as in application on TRACE32.
Connector Pane
Emulation memory access - Set for emulation memory access (access class E:, aka
dual port access)
False - Disable emulation memory access (default)
True - Enable emulation memory access
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
Variable name - Name of the variable. Use the same variable names as in application
on TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_ReadVariableFloat.vi
Returns the contents of the hll expression as a float. Use the same variable names as in application on
TRACE32.
Connector Pane
Emulation memory access - Set for emulation memory access (access class E:, aka
dual port access)
False - Disable emulation memory access (default)
True - Enable emulation memory access
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_WriteVariableFloat.vi
Writes numerical float value to the variable. Use the same variable names as in application on TRACE32.
Connector Pane
Emulation memory access - Set for emulation memory access (access class E:, aka
dual port access)
False - Disable emulation memory access (default)
True - Enable emulation memory access
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
Variable name - Name of the variable. Use the same variable names as in application
on TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Returns the contents of the hll expression as a double. Use the same variable names as in application on
TRACE32.
Connector Pane
Emulation memory access - Set for emulation memory access (access class E:, aka
dual port access)
False - Disable emulation memory access (default)
True - Enable emulation memory access
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
Variable name - Name of the variable. Use the same variable names as in application
on TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_WriteVariableDouble.vi
Writes numerical double value to the variable. Use the same variable names as in application on TRACE32.
Connector Pane
Emulation memory access - Set for emulation memory access (access class E:, aka
dual port access)
False - Disable emulation memory access (default)
True - Enable emulation memory access
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
Variable name - Name of the variable. Use the same variable names as in application
on TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_GetState.vi
Use this VI to get the main state of the ICE. TRACE32 ICE can have four different states.
Connector Pane
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_GetSymbol.vi
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
Symbol - Name of the symbol. Use the same symbol names as in application on
TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_GetSymbolFromAddress.vi
Connector Pane
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Connector Pane
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_GetSourceFileName.vi
Evaluates absolute address to the source file name with path and source file line number.
Connector Pane
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_PracticeCmd.vi
With this VI a PRACTICE command is passed to TRACE32 for execution. Any valid PRACTICE command is
allowed, including the start of a PRACTICE script (*.cmm) via the DO command.
Connector Pane
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI , error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Connector Pane
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Returns the run-state of PRACTICE. Use this command to poll for the end of a PRACTICE started via
’Trace32_PracticeCmd.vi’ or ’Trace32_PracticeScript.vi’.
Connector Pane
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
u32 T32_Handle out - TRACE32 handle. Created by T32_Init and required by all VIs
for TRACE32.
Practice message - Contents the last TRACE32 message from the message line.
1 - General Information
2 - Error
8 - Status Information
16 - Error Information
32 - Temporary Display
64 - Temporary Information
0 - Not running
1 - Running
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_RunControl.vi
Connector Pane
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
0 - Step
1 - Step over
2 - Go next
3 - Go return
4 - Go up
5 - Go
6 - Break
7 - Mode
8 - Reset
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Trace32_System.vi
Connector Pane
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32.
0 - System Down
1 - System Up
2 - System No Debug
3 - System Go
4 - System Attach
5 - System Stand By
6 - Set CPU
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Connector Pane
u32 T32_Handle in- TRACE32 handle. Created by T32_Init and required by all VIs for
TRACE32. After this operation is no longer valid.
error in - describes error conditions that occur before this VI or function runs. The
default is no error. If an error occurred before this VI or function runs, the VI or
function passes the error in value to error out. This VI or function runs normally only if
no error occurred before this VI or function runs. If an error occurs while this VI or
function runs, it runs normally and sets its own error status in error out.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
error out - contains error information. If error in indicates that an error occurred before
this VI, error out contains the same error information. Otherwise, it describes the error
status that this VI produces.
source - specifies the origin of the error and is, in most cases, the name
of the VI or function that produced the error. The default is an empty
string.
Controls can be used by the special VIs in order to simplify usage of instructions or commands, where they
are required.
Trace32_RunCmd.ctl
Connector Pane
0 - Step
1 - Step over
2 - Go next
3 - Go return
4 - Go up
5 - Go
6 - Break
7 - Mode
8 - Reset
Trace32_SystemCmd.ctl
Connector Pane
0 - System Down
1 - System Up
2 - System No Debug
3 - System Go
4 - System Attach
5 - System Stand By
6 - Set CPU
Trace32_OperationBreakpoint.ctl
Connector Pane
Connector Pane
Trace32_Error.ctl
Connector Pane
0 - Initialization failed.
1 - Termination failed.
17 - System error.
In this quick start You will see how to create an application that will display content of memory from
embedded target.
1. Start LabView.
6. Run the SimpleReadMemory VI on LabView. LabView will read the four bytes from memory and
will display the contents of memory in Value indicator on Front Panel.