Problems loading Simulink program to target TI hardware
Afficher commentaires plus anciens
I am trying to build, load, and run a simple LED blinker program built in Simulink on a TI F28377S via a Spectrum XDS100v2 JTAG emulator. Although Simulink successfully connects to the target, it appears to timeout when loading the program. I have attached dialogue from the Diagnostic Viewer:
*** Starting debug session...
*** Debug Session Name: Texas Instruments XDS100v2 USB Debug Probe_0/C28xx_CPU1
*** Board Name: Texas Instruments XDS100v2 USB Debug Probe_0
*** CPU Name: C28xx_CPU1
*** Connecting to target...
C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
*** Loading the program to the target...
SEVERE: Timed out after 180000ms
SEVERE: Error loading "../../ledtest.out": Timed out after 180000ms
org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Error loading "../../ledtest.out": Timed out after 180000ms (C:\PROGRA~3\MATLAB\SUPPOR~1\R2018b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~1.JS#97)
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.call1(OptRuntime.java:66)
at org.mozilla.javascript.gen.c1._c0(C:\PROGRA~3\MATLAB\SUPPOR~1\R2018b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~1.JS:97)
at org.mozilla.javascript.gen.c1.call(C:\PROGRA~3\MATLAB\SUPPOR~1\R2018b\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\R2018b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~1.JS)
at org.mozilla.javascript.gen.c1.exec(C:\PROGRA~3\MATLAB\SUPPOR~1\R2018b\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 loading "../../ledtest.out": Timed out after 180000ms
What issues might be causing the .out file load error?
I have already tried:
- commenting out most of code (timeout)
- setting simulation time to Inf (timeout)
- checking physical connections (timeout)
- running with F2837x_FLASH folder from CCS in the include section (MATLAB crashed, timed out when repeated)
- Changing CPU clock from 200 MHz to 100 MHz in the config ed (timeout)
Best,
Stephen
3 commentaires
Birdman
le 19 Déc 2018
Can you share your Simulink model as a mdl file?
Stephen Lantin
le 19 Déc 2018
Modifié(e) : Stephen Lantin
le 19 Déc 2018
Ni Rui Cheng
le 11 Déc 2020
Modifié(e) : Ni Rui Cheng
le 14 Déc 2020
hello sir, sorry i'm pretty new about this. how do you set the simulink to connect F28377s with simulink via xds100v2? may I have your target configuration .ccxml?
Réponses (0)
Catégories
En savoir plus sur Texas Instruments C2000 Processors dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!