主题中讨论的其他部分:UNIFLASH,CCStudio
工具/软件:Code Composer Studio
大家好,
我编写了一个小型Java程序,它利用了Uniflash 3.4 .1.0.0012万 的DSS API
此小型程序使用 德州仪器(TI) XDS100v2 USB调试探头更新F28M36P63C2微控制器的M3和C28内核。 但是,在某些情况下,C28核心更新失败,并出现以下错误:
严重:C28xx_0:闪存编程期间出错(闪存算法返回错误代码)。 操作已取消。
严重:C28xx_0:文件加载器:内存写入失败:未知错误
严重:C28xx_0:gel:文件:c:\program_c28.out:加载失败。
SEVERE:文件:C:\program_c28.out:加载失败。
严重:加载“C:\program_c28.out”时出错:文件:c:\program_c28.out:加载失败。
com.ti.CCStudio.scripting.environment.ScriptingException: Error loading“C:\program_c28.out”: file: c:\program_c28.out:load failed.
下面是 执行 更新的代码片段:
ScriptingEnvironment env = ScriptingEnvironment.instance(); DebugServer debugServer; DebugSession dsM3; DebugSession dsC28; try { debugServer =(DebugServer) env.getServer("DebugServer.1"); 如果(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); //<--此调用期间出现问题 dsC28.memory.verifyProgram(file_path_c28); dsC28.target.runAsynch(); dsC28.target.disconnect(); dsM3.target.runAsynch(); dsM3.target.disconnect(); } 捕获(异常e){}
在我的PC上,大多数情况下工作正常。 但是,在客户PC和虚拟PC上,如果结合 了某些微控制器实例,则会出现上述问题。
您是否有任何想法可能导致此问题,或者您是否可以给我任何有关此问题的提示?
提前感谢您!
此致,
Tamas