Data Retrieval Capability

Target Deployment Technology

Test programs or instrumented applications need to generate a text file on the host - this is how information is gathered to prepare HCL OneTest Embedded reports.

The Target Deployment Port gathers this report data by obtaining the value of a (char *) global variable, containing regular ASCII codes, from the application or test driver running on the target machine.

The following data retrieval modes are available:

  • Standard: The target uses file system fopen/fwrite functions and the file is moved at the end of the execution, if required.

  • User Mode: The target uses custom code to open the connection to the host, and writes result data to a host machine. The most common method is to use a TCP/IP socket connection for whichHCL OneTest Embedded provides a socket listener as explained in the TDP documentation (SOCKET_UPLOAD). RS232 can also be used.

  • BreakPoint: The target does nothing to open or write data. This mode is used in conjunction with a debugger macros that stop the application when the ASCII buffer is full, dump the buffer, and resume execution. This mode has little impact on the execution behavior because the result data is uploaded when the application terminates (except for runtime tracing).

Data retrieval can be performed in whichever way is most practical for the target. Most known environments allow at least some form of I/O.

At least one form of data retrieval capability is required. If your target can be used in Standard or User Mode, then it is fully supported by HCL OneTest Embedded. If the target can only be used in Breakpoint Mode, you should consider the following requirements:

  • The debugger or simulator must provide access to symbols or the linker must provide map files that provide routine addresses.

  • The environment must have a command or script language that can run commands from a script file. The command/script file can be executed automatically when the debugger starts.

  • There must be a command to stop the debugger. The execution process must be blocked until execution is terminated and the trace file is generated.

  • There must be a way to set software breakpoints and to check that a breakpoint or address is reached.

  • There must be a way to dump the contents of a variable in any format, or to dump a memory buffer and log the value.

If any of these requirements are not met, then HCL OneTest Embedded will not be supported on the platform.

Related Topics

Retrieving Data from the Target Host