跳转到主内容
Knowledgebase
Home
Renesas Electronics China - Knowledgebase

How to run a separate application using HEW TargetServer facility?

Latest Updated:09/25/2014

Question:

I constructed an environment for running a separately created application by using the HEW TargetServer facility of the High-performance Embedded Workshop. However, when the function 'GetSourceFiles2 (Gets source file names.)' is called, I get the following message stating that an exception occurred 'The server threw an exception. (Exception from HRESULT: 0x80010105(RPC_E_SERVERFAULT))' and processing stops.

Answer:

The message indicates that the number of characters in the list of source file names registered in the project has exceeded 32 Kbytes.
For example, this phenomenon will occur if the name of a source file (including the path) has 50 characters and 322 or more source files have been registered in a project, because the number of characters in the list of source file names registered in the project is 32 Kbytes or more (the parameter of the function is called p_bstrSouorceFiles and consists of two-byte characters).

To solve this problem, download the latest version of the HEW TargetServer from here.

Extract the downloaded file to overwrite HewTargetServer.exe under the installation folder of the High-performance Embedded Workshop.

Similar problems also occurred with the following functions (and have already been solved in the latest version mentioned above).

(1) For only VC++

No Method Name Parameter Description
1 GetMemory _ppbyBuff Gets a memory data.
2 GetDirectMemory _ppbyBuff Gets a direct memory data.
3 GetQuickWatch bstrByValue
p_eType
bstrVariableAllocation

Gets the value that corresponds to a string character.

4 AddressToSymbol p_bstrSymbolName Converts from address to symbol.
5 GetLineFromAddr p_bstrFileName Gets the source file name and the line number corresponding to the specified address.
6 GetCurrentConfiguration p_bstrCurrentConfigurationName Gets the current build configuration.
7 GetConfigurations p_strConfigurations Gets registered build configurations.
8 GetCurrentSession p_bstrCurrentSessionName Gets the current debug session.
9 GetSessions p_bstrSessions Gets registered debug sessions.
10 GetCurrentProject p_bstrCurrentProjectName Gets the current project./td>
11 GetProjects p_bstrProjectNames Gets all project names.
12 GetSourceFiles p_bstrSourceFiles Gets source file names.
13 GetDownloadModules p_bstrDownloadModules Gets module file names.
14 GetDependentFiles p_bstrDependentFiles Gets dependent file names.
15 GetErrorString _pbstrError Gets an error string occurred in a method call.
16 GetTargetName p_bstrName Gets a target name.

(2) For VB and VC++

No Method Name Parameter Description
1 GetMemory2 p_vMemData Gets a memory data.
2 GetDirectMemory2 p_vMemData Gets a direct memory data.
3 GetQuickWatch2 bstrByValue
bstrTypeName
bstrVarAllocation

Gets the value that corresponds to a string character.

4 AddressToSymbol2 p_bstrSymbolName Converts from address to symbol.
5 GetLineFromAddr2 p_bstrFileName Gets the source file name and the line number corresponding to the specified address.
6 GetWorkSpaceDirectory _pbstrCurrentWorkspaceDirectory Gets the absolute path of the current workspace.
7 GetCurrentConfiguration2 p_bstrCurrentConfigurationName Gets the current build configuration.
8 GetConfigurations2 p_bstrConfigurations Gets registered build configurations.
9 GetCurrentSession2 p_bstrCurrentSessionName Gets the current debug session.
10 GetSessions2 p_bstrSessions Gets registered debug sessions.
11 GetCurrentProject2 p_bstrCurrentProjectName Gets the current project.
12 GetProjects2 p_bstrProjectNames Gets all project names.
13 GetLibraryOptions p_bstrLibraryOption Acquires the library options for the linker in the current project.
14 GetLibraryFilesForConfiguration _pbstrLibraryFiles Gets library options from a specific configuration in a specific project.
15 GetIncludeFileDirectories _pvtIncludeDirectories Gets include file options from a file of a specific configuration in a specific project.
16 GetSourceFiles2 p_bstrSourceFiles Gets source file names.
17 GetDownloadModules2 p_bstrDownloadModules Gets module file names.
18 GetDependentFiles2 p_bstrDependentFiles Gets dependent file names.
19 GetErrorString2 p_bstrError Gets an error string occurred in a method call.
20 GetTargetName2 p_bstrName Gets a target name.
21 GetHewVersion p_bstrHewVersion Gets the version number of the High-performance Embedded Workshop.
22 Command p_bCommandMessage Executes a High-performance Embedded Workshop command.

 

Suitable Products
High-performance Embedded Workshop
TargetServer (COM extension)