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.

CCS/MSP430G2553: DSS: LoadProgram doesn´t work using script using scripting console in CCSv7

Part Number: MSP430G2553
Other Parts Discussed in Thread: CCSTUDIO, , MSP-FET

Tool/software: Code Composer Studio

Good day,

I have the following problem. I am working on my fist DDS scripts to automate our SW debugging and testing. When I run my script through Windows CMD line (  c:\TI\ccsv7\ccs_base\scripting\bin> dss test_script.js) everything works fine, but when I try to do the same using CCS Scripting console (call loadJSFile C:\Users\Malinowski\ti\workspace\scriptingtst\test_script.js ) script stuck at the line with loadProgram line and return following messages.

Error messages:

MSP430: Trouble Writing Memory Block at 0xc000 on Page 0 of Length 0x24c: Could not write device memory
MSP430: File Loader: Verification failed: Target failed to write 0xC000
MSP430: GEL: File: C:/Users/Malinowski/ti/workspace/scriptingtst/Debug/scriptingtst.out: Load failed.

Script:

// 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)

// 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("C:/Users/Malinowski/ti/workspace/scriptingtst/BreakpointsTestLog.xml")

// Log everythin
script.traceSetConsoleLevel(TraceLevel.ALL)
script.traceSetFileLevel(TraceLevel.ALL)

// Test log message
script.traceWrite("SUCCESS: :)")

// Create a debug server
var debugServer = script.getServer("DebugServer.1")

// Set the device ccxml
debugServer.setConfig( "C:/Users/Malinowski/ti/workspace/scriptingtst/targetConfigs/MSP430G2553.ccxml" )

// Open a debug session
debugSession = debugServer.openSession(".*")

// Connect to the target
debugSession.target.connect()

// Load the program
script.setScriptTimeout(15000)
debugSession.memory.loadProgram( "C:/Users/Malinowski/ti/workspace/scriptingtst/Debug/scriptingtst.out" )

Others:

MCU: MSP430G2553

debugger: MSP-FET

Thanks in advance for your help :).

Have a nice day.

Radim