TI中文支持网
TI专业的中文技术问题搜集分享网站

TMS320F28335: Build结束时报错: (Error -151 @ 0x0) One of the FTDI driver functions used during the connect returned bad status or an error.

Part Number:TMS320F28335Other Parts Discussed in Thread:TI-CGT, CCSTUDIO

你好,

仿真环境为matlab2018a,CCS9.3.

Simulink配置参数如下:

 

Build结束时,报错如下:

<Linking>
"### Created: ../CF_4wD_VCU_0513.out"
"### Invoking postbuild tool "Hex Converter" on "../CF_4wD_VCU_0513.out"…"
C:/PROGRA~3/MATLAB/SUPPOR~1/R2018a/3P778C~1.INS/TIC200~1.INS/TI-CGT~1.LTS/bin/hex2000 -i "../CF_4wD_VCU_0513.out" -o "../CF_4wD_VCU_0513.hex" -order MS -romwidth 16 -q
"### Done Invoking postbuild tool "Hex Converter" …"
"### Successfully generated all binary outputs."
D:\03_Project\CF_VCU\0513Test\CF_4wD_VCU_0513_ert_rtw>exit /B 0
"### Invoking postbuild tool "Download" …"
C:/ti/ccs930/ccs/ccs_base/SCRIPT~1/bin/dss.bat C:\PROGRA~3\MATLAB\SUPPOR~1\R2018a\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~1.JS C:\PROGRA~3\MATLAB\SUPPOR~1\R2018a\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/F28335~2.CCX ../CF_4wD_VCU_0513.out
*** User inputs: Target Configuration: C:\PROGRA~3\MATLAB\SUPPOR~1\R2018a\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/F28335~2.CCX Program Name: ../CF_4wD_VCU_0513.out Board Name: unspecified (connect to first board) CPU Name: unspecified (connect to first CPU)

*** Starting debug session…
*** Debug Session Name: Texas Instruments XDS100v1 USB Emulator_0/C28xx
*** Board Name: Texas Instruments XDS100v1 USB Emulator_0
*** CPU Name: C28xx
*** Connecting to target…
SEVERE: C28xx: Error connecting to the target: (Error -151 @ 0x0) One of the FTDI driver functions used during the connect returned bad status or an error. The cause may be one or more of: no XDS100 is plugged in, invalid XDS100 serial number, blank XDS100 EEPROM, missing FTDI drivers, faulty USB cable. Use the xds100serial command-line utility in the 'common/uscif' folder to verify the XDS100 can be located. (Emulation package 8.4.0.00006)
SEVERE: emulation failure occurred
SEVERE: Error connecting to the target: emulation failure occurred
SEVERE: Cannot perform operation, target is not connected.
SEVERE: Error reseting target: Cannot perform operation, target is not connected.
org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Error reseting target: Cannot perform operation, target is not connected. (C:\PROGRA~3\MATLAB\SUPPOR~1\R2018a\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~1.JS#93)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1693)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:204)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:119)
at org.mozilla.javascript.gen.c1._c0(C:\PROGRA~3\MATLAB\SUPPOR~1\R2018a\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~1.JS:93)
at org.mozilla.javascript.gen.c1.call(C:\PROGRA~3\MATLAB\SUPPOR~1\R2018a\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~1.JS)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
at org.mozilla.javascript.gen.c1.call(C:\PROGRA~3\MATLAB\SUPPOR~1\R2018a\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~1.JS)
at org.mozilla.javascript.gen.c1.exec(C:\PROGRA~3\MATLAB\SUPPOR~1\R2018a\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~1.JS)
at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:503)
at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:425)
at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:391)
at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:382)
at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:179)
at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:100)
at org.mozilla.javascript.Context.call(Context.java:528)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:450)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:162)
at com.ti.ccstudio.apps.internal.scripting.RunScript$1.run(RunScript.java:89)
Caused by: com.ti.ccstudio.scripting.environment.ScriptingException: Error reseting target: Cannot perform operation, target is not connected.
at com.ti.debug.engine.scripting.Target.reset(Target.java:641)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)
… 18 more
"### Done invoking postbuild tool."
### Successful completion of build procedure for model: CF_4wD_VCU_0513
### Creating HTML report file CF_4wD_VCU_0513_codegen_rpt.html
(1): error: generic lexer error: invalid character '\034' in input stream
(1): error: generic lexer error: invalid character '\000' in input stream

…(中间省略几十行)

(73): error: generic lexer error: invalid character '\006' in input stream
Build process completed successfully
其中核心报错部分黄底标出,我试过matlab2018a+CCS10,也报一样的错误。但我同事用同样配置的电脑同样软件环境build就不报错。请大神指点。谢谢
Susan Yang:

关于此,您可以看一下该链接的说明

http://software-dl.ti.com/ccs/esd/documents/ccsv7_debugging_jtag_connectivity_issues.html#host-connection-error

您是在debug时出现的该错误?直接使用CCS内的test connection 结果如何?

,

CHENWEI LI:

谢谢大神,我先试试~

,

Susan Yang:

期待您的反馈

,

CHENWEI LI:

下午检查了下,CCS9里不带XDS100v1仿真器驱动(ccs9自带XDS110),在网上搜索ccs3版本才带XDS100。

在CCS9中把项目的编译器改成了XDS110,但是回到simulink中build,依然报XDS100V1的错误。

报错代码如下:

*** Starting debug session… *** Debug Session Name: Texas Instruments XDS100v1 USB Emulator_0/C28xx *** Board Name: Texas Instruments XDS100v1 USB Emulator_0 *** CPU Name: C28xx

CCS9中设置如下:

任然迷茫中。。。

,

Susan Yang:

您直接在CCS内测试TI例程,是否可以成功?建议首先排除硬件本身的问题

赞(0)
未经允许不得转载:TI中文支持网 » TMS320F28335: Build结束时报错: (Error -151 @ 0x0) One of the FTDI driver functions used during the connect returned bad status or an error.
分享到: 更多 (0)

© 2024 TI中文支持网   网站地图 鲁ICP备2022002796号-1