Other Parts Discussed in Thread: UNIFLASH, , CCSTUDIO
Tool/software: Code Composer Studio
Hello everyone,
I have written a small Java program, which is utilizing the DSS API from Uniflash 3.4.1.00012
This small program updates both the M3 and the C28 cores of a F28M36P63C2 microcontroller with a Texas Instruments XDS100v2 USB Debug Probe. However in some cases the C28 core update fails with the following error:
SEVERE: C28xx_0: Error during Flash programming (Flash algorithm returned error code). Operation cancelled.
SEVERE: C28xx_0: File Loader: Memory write failed: Unknown error
SEVERE: C28xx_0: GEL: File: C:\program_c28.out: Load failed.
SEVERE: File: C:\program_c28.out: Load failed.
SEVERE: Error loading “C:\program_c28.out”: File: C:\program_c28.out: Load failed.
com.ti.ccstudio.scripting.environment.ScriptingException: Error loading “C:\program_c28.out”: File: C:\program_c28.out: Load failed.
Here is the code snipet, which does the update.:
ScriptingEnvironment env = ScriptingEnvironment.instance(); DebugServer debugServer; DebugSession dsM3; DebugSession dsC28; try { debugServer = (DebugServer) env.getServer("DebugServer.1"); if (null != debugServer) { debugServer.setConfig(target_cfg_path); dsM3 = debugServer.openSession("Texas Instruments XDS100v2 USB Debug Probe_0/Cortex_M3_0"); dsC28 = debugServer.openSession("Texas Instruments XDS100v2 USB Debug Probe_0/C28xx_0"); dsM3.target.connect(true); dsM3.flash.erase(); dsM3.memory.loadProgram(file_path_m3); dsM3.memory.verifyProgram(file_path_m3); dsC28.target.connect(true); dsC28.flash.erase(); dsC28.memory.loadProgram(file_path_c28); // <--The problem occurs during this call dsC28.memory.verifyProgram(file_path_c28); dsC28.target.runAsynch(); dsC28.target.disconnect(); dsM3.target.runAsynch(); dsM3.target.disconnect(); } } catch (Exception e){}
On my PC it works fine most of the time. However on customer PCs and on Virtual PCs with the combination of some microcontroller instances the problem reported above occurs.
Do you have any idea what could cause this problem, or could you give me any hint regarding to this?
Thank you in advance!
Best regards,
Tamas