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.
Tool/software: Code Composer Studio
Hello,
I am trying to prepare a DSS script to verify various functions of firmware. Till now everything was working good, but suddenly I am facing a problem to set the variable value. The expression
var temp = 31;
debugSession.expression.evaluate("i="+temp)
does not set the value i to 31. Even if it sets, but when I give "debugSession.target.run();" instruction, the script behavior is not as expected and does not show the result as per variable set in previous instructions.
Please help me to resolve this issue.
Thanks,
Rakesh Modi
Hi Rakesh,
Based on your small code snippet, I don't see anything wrong. Everything works in my environment. Make sure that the target is halted and the variable is in scope when you try to evaluate the expression. If you are still having issues, please provide a small test case. This would include the dss script and the project it is for.
Thanks
ki
Hello Ki,
Thanks for your reply. I am not able to send the entire firmware, but here I have attached c file, which contains functions on which I want to run attached DSS script.
The issue is "debugSession.target.run();" statement does not give expected output, but "debugSession.target.sourceStep.over();" statement gives proper result. In both the case breakpoint is at the same location. So I don' understand the reason behind this behavior. Please see attached C code and DSS script.
static void SendGatewayMessage(uint8_t * message, bool thirdChannelDelay) { uint8_t ret; if ( RFSendGatewayPacket(message, TagConfigFlash.ChannelB, TagConfigFlash.Config.TxPowerGateway, thirdChannelDelay) != SUCCESS) { __asm__("lable_incTXLong:"); TAGUpdateBatteryCounters(COUNTER_TXLONG); SW_RESET(); } CC110xIdle(); ret = CC110xWaitForState(CC110X_STATE_IDLE); __asm__("lable_retCC110xWaitForState:"); if (ret == SUCCESS) { RFSendConfigChange(RFChannelChange, (Tag.TagType == AssetTag) ? TagConfigFlash.ChannelC : TagConfigFlash.ChannelA, NULL); } else { TAGUpdateBatteryCounters(COUNTER_TXLONG); SW_RESET(); } TAGUpdateBatteryCounters(COUNTER_TXSHORT); } ERR_STATUS RFSendGatewayPacket(uint8_t * packet, uint8_t txChannel, int8_t txPower, bool delayThirdChannel) { uint8_t ret = ERR_FAIL, loop = 3; while(ret && loop) { ret = SUCCESS; CC110xIdle(); if (CC110xWaitForState(CC110X_STATE_IDLE) == SUCCESS) { RFSendConfigChange(RFChannelChange, txChannel, NULL); CC110xSetTxPower(txPower); if (delayThirdChannel == TRUE) { // This is to wait for the gateway to send the command on the 3rd channel // TODO: This should be driven by an interrupt. Only utilized by RT/GP on gateway receive // so not a big deal. DelayForMS(540); #ifdef USE_WDT WDTCTL = WDT_ARST_1000; //Set to using ACLK (VLO) and ~1000ms #endif } if( StartChirp() == OK ) { if (RFTxPacket(packet, ((SEND_MESSAGE_HEADER*)packet)->Length + 1) != OK) { LEDFlashChirpFail(); ret = ERR_FAIL; } if (modeAfterTX == 0x00) CC110xWaitForState(CC110X_STATE_IDLE); else CC110xWaitForState(CC110X_STATE_RX); } else { LEDFlashChirpFail(); ret = ERR_FAIL; } } else { LEDFlashChirpFail(); ret = ERR_FAIL; } loop--; } __asm__("lable_retRFSendGatewayPacket:"); //TMPLFM-2708 return ret; }
// Import the DSS packages into our namespace to save on typing importPackage(Packages.com.ti.debug.engine.scripting); importPackage(Packages.com.ti.ccstudio.scripting.environment); importPackage(Packages.java.lang); /******************Variable Declaration*******************************/ var saveMem = 0; var data; var PCLocation; var returnval; var SUCCESS = 0; var ERR_FAIL = 1; var fileName = "SendGatewayMessage" var current_dir = java.lang.System.getProperty("user.dir"); var log_file = current_dir+"/logs/" + fileName + ".xml"; /**********************************************************************/ // Create our scripting environment object - which is the main entry point into any script and // the factory for creating other Scriptable ervers and Sessions var script = ScriptingEnvironment.instance(); // Create a log file in the current directory to log script execution script.traceBegin(log_file, "DefaultStylesheet.xsl"); // Log everything script.traceSetConsoleLevel(TraceLevel.INFO); script.traceSetFileLevel(TraceLevel.INFO); /****************************Function Define**********************/ //End Debug Session and exit function endDebugSession() { i=0; //Restore configuration settings var x for (x in data) { debugSession.memory.writeData(Memory.Page.PROGRAM, 0x100A+i, data[x], 16); i = i+2; } debugSession.target.disconnect(); debugServer.stop(); script.traceEnd(); System.exit(1); } function restartTarget() { // Restart, and go to main. If the target is configured to go to main on restart, then restarting // should be sufficient. Otherwise we will need to also set a breakpoint at main and run to it. debugSession.target.restart(); addressMain = debugSession.symbol.getAddress("main"); if (debugSession.memory.readRegister("PC") != addressMain) { var bp = debugSession.breakpoint.add(addressMain); debugSession.target.run(); } if(saveMem == 0) { //Save the tag configuration settings data = debugSession.memory.readData(Memory.Page.PROGRAM, 0x100A, 16, 16); saveMem = 1; } } function verifyBPLocation(Address, testNum) { debugSession.breakpoint.add(Address); debugSession.target.run(); var PCLocation = debugSession.memory.readRegister("PC"); if (PCLocation != Address) { script.traceWrite("Test"+testNum+" Failed!!"+PCLocation+" "+Address); endDebugSession(); } } /**************************Function Define End*********************/ var config_file = java.lang.System.getenv("TARGET_CONFIG_PATH")+"MSP430G2553.ccxml"; var file_to_flash = java.lang.System.getenv("FILE_TO_FLASH_PATH")+"RFindTagRailLocator.out"; print("ccxml_file="+config_file); print("file_to_flash="+file_to_flash); /********************Initialization******************************/ // Get the Debug Server and start a Debug Session debugServer = script.getServer("DebugServer.1"); debugServer.setConfig(config_file); debugSession = debugServer.openSession(".*"); script.traceWrite("**********************************************************"); script.traceWrite("Script File: "+fileName+".js"); debugSession.target.connect(); // Change timeout from the default (infinite) to 150 seconds script.setScriptTimeout(150000); script.traceWrite("This test verifies the SendGatewayMessage function"); // Load a program // (ScriptingEnvironment has a concept of a working folder and for all of the APIs which take // path names as arguments you can either pass a relative path or an absolute path) debugSession.memory.loadProgram(file_to_flash) debugSession.breakpoint.removeAll(); ///********************************Test 1**************************************/ script.traceWrite("If RFSendGatewayPacket function returns ERR_FAIL, TAGUpdateBatteryCounters \ function executes, which updates the TXLONG counter."); restartTarget(); var breakpointLocation = debugSession.symbol.getAddress("SendGatewayMessage"); verifyBPLocation(breakpointLocation, 1); breakpointLocation = debugSession.symbol.getAddress("RFSendGatewayPacket"); verifyBPLocation(breakpointLocation, 1); breakpointLocation = debugSession.symbol.getAddress("lable_retRFSendGatewayPacket"); verifyBPLocation(breakpointLocation, 1); debugSession.expression.evaluate("ret=1"); /*****************************Problem Area******************************/ The below two line statements are not working. /**********************************************************************/ //breakpointLocation = debugSession.symbol.getAddress("lable_incTXLong"); //verifyBPLocation(breakpointLocation, 1); //This line is not working /**********************************************************************/ //Replaced above two statements with below code /***********************Replacement Start******************************/ do { breakpointLocation = debugSession.symbol.getAddress("lable_incTXLong"); debugSession.target.sourceStep.over(); PCLocation = debugSession.memory.readRegister("PC"); }while(PCLocation != breakpointLocation) script.traceWrite("RFSendGatewayPacket function returns ERR_FAIL"); /*********************Replacement End************************************/ breakpointLocation = debugSession.symbol.getAddress("lable_TXLongCount"); verifyBPLocation(breakpointLocation, 1); script.traceWrite("TAGUpdateBatteryCounters function has updated TXLONG count"); script.traceWrite("Test1 Passed!!"); endDebugSession();
Rakesh Modi
Rakesh Modi said:The issue is "debugSession.target.run();" statement
Are you talking about the call in line 69 of the script? If your replace it with a step, it works?
Also please enable full verbose logging and provide the generated log after your try to evaluate the expression.
Thanks
ki
Hello Ki,
Yes, I am talking about the line #69 in the script. Yes, if I replace it with step it works. I have attached a log here for failure case. Let me know if you require more information.
c:\ti\processor_sdk_rtos_c665x_5_01_00_11\bin>%DSS_SCRIPT_DIR%\dss.bat SendGatewayMessage.js traceSetFileLevel: ENTRY sLevel: ALL traceSetFileLevel: RETURN ccxml_file=E:\Rfind\hardware\RFindTag\trunk\Project\targetConfigs\MSP430G2553.ccxml file_to_flash=E:\Rfind\hardware\RFindTagRailLocator\trunk\Project\Debug\RFindTagRailLocator.out getServer: ENTRY sServerName: DebugServer.1 getServer: Getting definition for: DebugServer.1 getServer: Constructing server getServer: RETURN com.ti.debug.engine.scripting.DebugServer@10444d3 setConfig: ENTRY sConfigurationFile: E:\Rfind\hardware\RFindTag\trunk\Project\targetConfigs\MSP430G2553.ccxml setConfig: RETURN openSession: ENTRY sPattern: .* start: ENTRY start: Firing: onServerStarting() start: Connecting to XPCOM DebugServer start: Initializing DebugServer using specified configuration: "E:\Rfind\hardware\RFindTag\trunk\Project\targetConfigs\MSP430G2553.ccxml" waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 timeout: infinite <init>: CPU Name: MSP430 <init>: PartNum: MSP430G2xx3 <init>: Family: 430 <init>: SubFamily/MajorISA: 0 <init>: Revision/MinorISA: 0 <init>: Platform: EMULATOR <init>: Processor ID: 1803550720 waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 start: Firing: onServerStarted() start: Searching for devices listDevices: ENTRY listDevices: Found debuggable device: TI MSP430 USB1/MSP430 listDevices: RETURN start: RETURN openSession: Searching for device exactly matching name: .* openSession: No exact name matches found. Searching for device matching regular expression: .* openSession: RETURN TI MSP430 USB1/MSP430 ********************************************************** Script File: SendGatewayMessage.js connect: ENTRY isConnected: ENTRY isConnected: Target is not connected isConnected: RETURN false connect: Requesting target connect waitUntil: ENTRY timeout: infinite log: Target is now connected waitUntil: RETURN isConnected: ENTRY isConnected: Target is connected isConnected: RETURN true connect: RETURN setScriptTimeout: ENTRY nTimeout: 150000 setScriptTimeout: Timeout is 150000ms setScriptTimeout: RETURN This test verifies the SendGatewayMessage function loadProgram: ENTRY sFileName: E:\Rfind\hardware\RFindTagRailLocator\trunk\Project\Debug\RFindTagRailLocator.out load: Requesting program load waitUntil: ENTRY timeout: 150000 (ms) MSP430: Flash/FRAM usage is 10249 bytes. RAM usage is 277 bytes. waitUntil: RETURN load: Program load successful getBoolean: ENTRY ID: AutoRunToLabelOnRestart getBoolean: RETURN true waitForHaltIfPropertySet: Waiting for halt waitUntil: ENTRY timeout: 150000 (ms) log: Target has halted at 0xD43A waitUntil: RETURN loadProgram: RETURN removeAll: ENTRY removeAll: Getting breakpoint manager removeAll: Removing 0 breakpoint(s) removeAll: RETURN If RFSendGatewayPacket function returns ERR_FAIL, TAGUpdateBatteryCounters function executes, which updates the TXLONG counter. restart: ENTRY restart: Requesting target restart waitUntil: ENTRY timeout: 150000 (ms) waitUntil: RETURN restart: Target restarted getBoolean: ENTRY ID: AutoRunToLabelOnRestart getBoolean: RETURN true waitForHaltIfPropertySet: Waiting for halt waitUntil: ENTRY timeout: 150000 (ms) log: Target has halted at 0xD43A waitUntil: RETURN restart: RETURN getAddress: ENTRY sSymbol: main getAddress: Getting symbol package getAddress: Looking-up symbol getAddress: Getting address getAddress: RETURN 0xd43a readRegister: ENTRY sRegister: PC readRegister: Getting register information getPageCount: ENTRY getPageCount: RETURN 1 readRegister: PC is a 16 bit core register eval: Requesting evaluation of expression: "PC" waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 timeout: 150000 (ms) waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 waitUntil: ENTRY timeout: 150000 (ms) onEvent: Evaluated expression: PC waitUntil: RETURN readRegister: RETURN 0xd43a readData: ENTRY nPage: 0 nAddress: 0x100a nTypeSize: 16 nNumValues: 16 bSigned: false readData: Validating page getPageCount: ENTRY getPageCount: RETURN 1 readData: Validating start address readData: Getting memory object from debug session readData: Setting start address: 0x100a readData: Setting buffer length: 32 readData: Requeting memory read of 16 value(s) from target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN readData: Generating 16 element Java array from raw memory buffer readData: RETURN [0]=0x0, [1]=0x460a, ...(12 hidden values)..., [14]=0xffff, [15]=0xffff getAddress: ENTRY sSymbol: SendGatewayMessage getAddress: Getting symbol package getAddress: Looking-up symbol getAddress: Getting address getAddress: RETURN 0xd6d0 add: ENTRY nAddress: 54992 add: Getting breakpoint manager add: Assigning address location createAtLocation: Creating new breakpoint addAndEnable: Adding breakpoint addAndEnable: Enabling breakpoint add: RETURN 13 run: ENTRY go: Requesting target execution waitUntil: ENTRY timeout: 150000 (ms) log: Target has halted at 0xD6D0 waitUntil: RETURN run: RETURN readRegister: ENTRY sRegister: PC readRegister: Getting register information getPageCount: ENTRY getPageCount: RETURN 1 readRegister: PC is a 16 bit core register eval: Requesting evaluation of expression: "PC" waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 timeout: 150000 (ms) waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 waitUntil: ENTRY timeout: 150000 (ms) onEvent: Evaluated expression: PC waitUntil: RETURN readRegister: RETURN 0xd6d0 getAddress: ENTRY sSymbol: RFSendGatewayPacket getAddress: Getting symbol package getAddress: Looking-up symbol getAddress: Getting address getAddress: RETURN 0xd05e add: ENTRY nAddress: 53342 add: Getting breakpoint manager add: Assigning address location createAtLocation: Creating new breakpoint addAndEnable: Adding breakpoint addAndEnable: Enabling breakpoint add: RETURN 15 run: ENTRY go: Requesting target execution waitUntil: ENTRY timeout: 150000 (ms) log: Target has halted at 0xD05E waitUntil: RETURN run: RETURN readRegister: ENTRY sRegister: PC readRegister: Getting register information getPageCount: ENTRY getPageCount: RETURN 1 readRegister: PC is a 16 bit core register eval: Requesting evaluation of expression: "PC" waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 timeout: 150000 (ms) waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 waitUntil: ENTRY timeout: 150000 (ms) onEvent: Evaluated expression: PC waitUntil: RETURN readRegister: RETURN 0xd05e getAddress: ENTRY sSymbol: lable_retRFSendGatewayPacket getAddress: Getting symbol package getAddress: Looking-up symbol getAddress: Getting address getAddress: RETURN 0xd0f8 add: ENTRY nAddress: 53496 add: Getting breakpoint manager add: Assigning address location createAtLocation: Creating new breakpoint addAndEnable: Adding breakpoint addAndEnable: Enabling breakpoint add: RETURN 18 run: ENTRY go: Requesting target execution waitUntil: ENTRY timeout: 150000 (ms) log: Target has halted at 0xD0F8 waitUntil: RETURN run: RETURN readRegister: ENTRY sRegister: PC readRegister: Getting register information getPageCount: ENTRY getPageCount: RETURN 1 readRegister: PC is a 16 bit core register eval: Requesting evaluation of expression: "PC" waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 timeout: 150000 (ms) waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 waitUntil: ENTRY timeout: 150000 (ms) onEvent: Evaluated expression: PC waitUntil: RETURN readRegister: RETURN 0xd0f8 evaluate: ENTRY sExpression: ret=1 eval: Requesting evaluation of expression: "ret=1" waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 timeout: 150000 (ms) waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 waitUntil: ENTRY timeout: 150000 (ms) onEvent: Evaluated expression: ret=1 waitUntil: RETURN evaluate: RETURN 0x1 getAddress: ENTRY sSymbol: lable_incTXLong getAddress: Getting symbol package getAddress: Looking-up symbol getAddress: Getting address getAddress: RETURN 0xd720 add: ENTRY nAddress: 55072 add: Getting breakpoint manager add: Assigning address location createAtLocation: Creating new breakpoint addAndEnable: Adding breakpoint addAndEnable: Enabling breakpoint add: RETURN 21 run: ENTRY go: Requesting target execution waitUntil: ENTRY timeout: 150000 (ms) log: Target has halted at 0xD6D0 waitUntil: RETURN run: RETURN readRegister: ENTRY sRegister: PC readRegister: Getting register information getPageCount: ENTRY getPageCount: RETURN 1 readRegister: PC is a 16 bit core register eval: Requesting evaluation of expression: "PC" waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 timeout: 150000 (ms) waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 waitUntil: ENTRY timeout: 150000 (ms) onEvent: Evaluated expression: PC waitUntil: RETURN readRegister: RETURN 0xd6d0 Test1 Failed!!54992 55072 writeData: ENTRY nPage: 0 nAddress: 0x100a nValues: 0x0 nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x100a writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN writeData: ENTRY nPage: 0 nAddress: 0x100c nValues: 0x460a nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x100c writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN writeData: ENTRY nPage: 0 nAddress: 0x100e nValues: 0x250 nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x100e writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN writeData: ENTRY nPage: 0 nAddress: 0x1010 nValues: 0x502 nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x1010 writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN writeData: ENTRY nPage: 0 nAddress: 0x1012 nValues: 0x258 nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x1012 writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN writeData: ENTRY nPage: 0 nAddress: 0x1014 nValues: 0x514 nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x1014 writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN writeData: ENTRY nPage: 0 nAddress: 0x1016 nValues: 0x43c nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x1016 writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN writeData: ENTRY nPage: 0 nAddress: 0x1018 nValues: 0xff08 nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x1018 writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN writeData: ENTRY nPage: 0 nAddress: 0x101a nValues: 0xffff nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x101a writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN writeData: ENTRY nPage: 0 nAddress: 0x101c nValues: 0x22ef nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x101c writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN writeData: ENTRY nPage: 0 nAddress: 0x101e nValues: 0x505 nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x101e writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN writeData: ENTRY nPage: 0 nAddress: 0x1020 nValues: 0x1404 nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x1020 writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN writeData: ENTRY nPage: 0 nAddress: 0x1022 nValues: 0xffff nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x1022 writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN writeData: ENTRY nPage: 0 nAddress: 0x1024 nValues: 0xffff nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x1024 writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN writeData: ENTRY nPage: 0 nAddress: 0x1026 nValues: 0xffff nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x1026 writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN writeData: ENTRY nPage: 0 nAddress: 0x1028 nValues: 0xffff nTypeSize: 16 writeData: Validating page writeData: Validating start address writeData: Getting memory object from debug session writeData: Setting start address: 0x1028 writeData: Setting buffer length: 2 writeData: Filling buffer writeData: Writing 1 value(s) to target writeData: Requesting memory write of 1 value(s) to target waitUntil: ENTRY timeout: 150000 (ms) onEvent: Memory request complete waitUntil: RETURN writeData: RETURN disconnect: ENTRY disconnect: Requesting target disconnect waitUntil: ENTRY timeout: 150000 (ms) onEvent: Target is now disconnected waitUntil: RETURN disconnect: RETURN stop: ENTRY stop: 1 Debug Session(s) still active. stop: Terminating DebugSession: TI MSP430 USB1/MSP430 terminate: ENTRY terminate: Firing: onSessionTerminating() terminate: Unregistering this session from the DebugServer terminate: Firing: onSessionTerminated() disposeAndUnload: Firing: onServerStopping() disposeAndUnload: Stopping DebugServer waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 timeout: 150000 (ms) terminate: ENTRY terminate: RETURN waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1d81730 disposeAndUnload: Firing: onServerStopped() terminate: RETURN stop: RETURN traceEnd: ENTRY traceEnd: Flushing and closing file stream traceEnd: Removing handler java.util.logging.FileHandler@fe1a55 traceEnd: RETURN c:\ti\processor_sdk_rtos_c665x_5_01_00_11\bin>
Thanks,
Rakesh Modi
Hi Rakesh,
I took a look at the logs. I do see that the test failed. But it looks like the expression was evaluated correctly. The root cause of the failure is likely not because of the expression evaluation.
To debug further, I would need a test case. It doesn't have to be your actual application, source files, and script. Something stripped down and simplified is fine.
Thanks
ki
Hello,
I haven’t heard back from you, hence this issue is being closed. If you wish to continue the discussion, please post a reply with an update below (or create a new thread).
Thanks,
ki