This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I ran the DVT example go.bat that came with CCS v5.3. Looks like it finished properly, but I couldn't find the profiling output file: FunctionProfile_cycle.CPU.csv. Can anybody help?
Below is the log of running this example code:
C:\Program Files\Texas Instruments\ccsv5\ccs_base\scripting\examples\DVTExamples>go.bat
traceSetFileLevel: ENTRY sLevel: ALL
traceSetFileLevel: RETURN
getServer: ENTRY sServerName: DebugServer.1
getServer: Getting definition for: DebugServer.1
getServer: Constructing server
getServer: RETURN com.ti.debug.engine.scripting.DebugServer@8ebb5a
setConfig: ENTRY sConfigurationFile: ../C64/tisim_c64xpcpube.ccxml
setConfig: RETURN
openSession: ENTRY sPattern: .*
start: ENTRY
start: Firing: onServerStarting()
start: Connecting to XPCOM DebugServer
start: Initializing DebugServer using specified configuration: "C:\Program Files\Texas Instruments\ccsv5\ccs_base\scripting\examples\C64\tisim_c64xpcpube.ccxml"
waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@f23491 timeout: 240000 (ms)
<init>: CPU Name: TMS320C64+
<init>: PartNum:
<init>: Family: 320
<init>: SubFamily/MajorISA: 64
<init>: Revision/MinorISA: 105
<init>: Platform: SIMULATOR
<init>: Processor ID: 1342280521
isConnected: ENTRY
isConnected: Target is connected
isConnected: RETURN true
getLogFileConfig: ENTRY
getLogFileConfig: RETURN Success
configureLogFile: ENTRY sFileName: C:\Program Files\Texas Instruments\ccsv5\ccs_base\scripting\examples\DVTExamples\logfile.rtd nFileSize: 0 nFileFull
Mode: 1 nFileOpenMode: 2
isConnected: ENTRY
isConnected: Target is connected
isConnected: RETURN true
isEnabled: ENTRY
isEnabled: RETURN 0
configureLogFile: RETURN Success
configureRTDX: ENTRY nMode: 1 nBufferSize: 64600 hsEmuPin: 0 nBufferCount: 4
isConnected: ENTRY
isConnected: Target is connected
isConnected: RETURN true
isEnabled: ENTRY
isEnabled: RETURN 0
configureRTDX: RETURN Success
waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@f23491
start: Firing: onServerStarted()
start: Searching for devices
listDevices: ENTRY
listDevices: Found debuggable device: C64x+ CPU Cycle Accurate Simulator, Big Endian/TMS320C64+
listDevices: RETURN
start: RETURN
openSession: Searching for device exactly matching name: .*
openSession: No exact name matches found. Searching for device matching regular expression: .*
open: Initializing RTDX: "RTDXServer.1"
getServer: ENTRY sServerName: RTDXServer.1
getServer: Getting definition for: RTDXServer.1
getServer: Constructing server
getServer: RETURN com.ti.debug.engine.scripting.RTDXServer@dbf04d
openSession: ENTRY sDebugSession: C64x+ CPU Cycle Accurate Simulator, Big Endian/TMS320C64+
getServer: ENTRY sServerName: DebugServer.1
getServer: Getting cached server: DebugServer.1
getServer: RETURN com.ti.debug.engine.scripting.DebugServer@8ebb5a
openSession: ENTRY session: com.ti.debug.engine.scripting.DebugSession@17d80e9
openSession: RETURN com.ti.debug.engine.scripting.RTDXSession@9a44d6
openSession: RETURN
openSession: RETURN C64x+ CPU Cycle Accurate Simulator, Big Endian/TMS320C64+
getServer: ENTRY sServerName: DVTServer.1
getServer: Getting definition for: DVTServer.1
getServer: Constructing server
start: ENTRY
getCurrentDirectory: ENTRY
getCurrentDirectory: RETURN C:\Program Files\Texas Instruments\ccsv5\ccs_base\scripting\examples\DVTExamples
start: RETURN
getServer: RETURN com.ti.dvt.engine.scripting.DVTServer@10dbef1
loadProgram: ENTRY sFileName: ../C64/interpreter/Debug/interpreter.out
load: Requesting program load
waitUntil: ENTRY timeout: 240000 (ms)
setupBeforeRun: ENTRY emuPin: 0
exists: ENTRY sSymbol: _RTDX_JTAGONLY
exists: Getting symbol package
exists: Looking-up symbol
exists: RETURN false
exists: ENTRY sSymbol: _RTDX_HPONLY
exists: Getting symbol package
exists: Looking-up symbol
exists: RETURN false
exists: ENTRY sSymbol: _RTDX_ICEONLY
exists: Getting symbol package
exists: Looking-up symbol
exists: RETURN false
exists: ENTRY sSymbol: RTDX$$MSG
exists: Getting symbol package
exists: Looking-up symbol
exists: RETURN false
getConfigMode: ENTRY
getConfigMode: RETURN 1
getConfigMode: ENTRY
getConfigMode: RETURN 1
exists: ENTRY sSymbol: rtdxCioOutputChannel
exists: Getting symbol package
exists: Looking-up symbol
exists: RETURN false
waitUntil: RETURN
load: Program load successful
getBoolean: ENTRY
getBoolean: RETURN true
waitForHaltIfPropertySet: Waiting for halt
waitUntil: ENTRY timeout: 240000 (ms)
log: Target has halted at 0x00008CFC
waitUntil: RETURN
loadProgram: RETURN
Error: break at 10008cfc not found, clear ignored
run: ENTRY
go: Requesting target execution
waitUntil: ENTRY timeout: 240000 (ms)
*********** READING INPUT FILE ../prog_1.nsm ***********
Started Decoding...
MOVI A 100
MOVI B 200
ADD A B
MULT A B
SUB A B
WRITE A
A = 59800
WRITE B
B = 200
Stopped Decoding...
*********** READING INPUT FILE ../prog_2.nsm ***********
Started Decoding...
MOVI A 400
MOVI C 200
SUBI C 100
MULTI A 10
DIV A C
WRITE A
A = 40
WRITE C
C = 100
Stopped Decoding...
log: Target has halted at 0x0000CF80
waitUntil: RETURN
run: RETURN
halt: ENTRY
halt: Target already halted
halt: RETURN
Data exported to: C:\Program Files\Texas Instruments\ccsv5\ccs_base\dvt_3.3.0.201209281235\FunctionProfile\solutions\FunctionProfile_cycle.CPU.csv
terminate: ENTRY
terminate: Unregistering this session from the DVTServer
disposeAndUnload: Stopping DVTServer
terminate: RETURN
stop: ENTRY
stop: RETURN
terminate: ENTRY
terminate: Firing: onSessionTerminating()
getServer: ENTRY sServerName: RTDXServer.1
getServer: Getting cached server: RTDXServer.1
getServer: RETURN com.ti.debug.engine.scripting.RTDXServer@dbf04d
terminate: Terminating RTDXSession: C64x+ CPU Cycle Accurate Simulator, Big Endian/TMS320C64+
terminate: ENTRY
terminate: Unregistering this session from the parent Server
terminate: RETURN
terminate: Unregistering this session from the DebugServer
terminate: Firing: onSessionTerminated()
disposeAndUnload: Firing: onServerStopping()
disposeAndUnload: Stopping DebugServer
terminate: ENTRY
terminate: RETURN
terminate: ENTRY
terminate: RETURN
waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@f23491 timeout: 240000 (ms)
Error: break at 1000c000 not found, clear ignored
Error: break at 1000cf80 not found, clear ignored
waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@f23491
disposeAndUnload: Firing: onServerStopped()
terminate: RETURN
stop: ENTRY
stop: RETURN
traceEnd: ENTRY
traceEnd: Flushing and closing file stream
traceEnd: Removing handler java.util.logging.FileHandler@1cd8bf7
traceEnd: RETURN
DVTScript Done!
C:\Program Files\Texas Instruments\ccsv5\ccs_base\scripting\examples\DVTExamples>
Thanks,
Jianzhong
Jianzhong,
Did you make sure to check the output location? It is a rather unusual location, therefore my question.
C:\Program Files\Texas Instruments\ccsv5\ccs_base\dvt_3.3.0.201209281235\FunctionProfile\solutions\FunctionProfile_cycle.CPU.csv
One more detail: I see you have CCS installed under C:\Program Files directory. If your PC is running Windows 7, it prevents writing to any of the Program Files subdirectories, therefore this may explain why you get no output files.
I ran the same script and it successfully created the output file, therefore it should work.
Hope this helps,
Rafael
Hi Rafael,
Thank you for your support. After I changed the path for output file, I was able to locate it.
Regards,
Jianzhong