Problems loading Simulink program to target TI hardware

조회 수: 7 (최근 30일)
Stephen Lantin
Stephen Lantin 2018년 12월 18일
편집: Ni Rui Cheng 2020년 12월 14일
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
Stephen Lantin
Stephen Lantin 2018년 12월 19일
편집: Stephen Lantin 2018년 12월 19일
Sure; here it is. There are two LEDs, controlled by GPIOs 41 and 69.
Note: The .ccxml file for my setup is one I made in CCSv8 that specifies that I'm using the F28377S and XDS100v2. The "Test Connection" in CCS was successful, so I don't believe this is the issue.
Ni Rui Cheng
Ni Rui Cheng 2020년 12월 11일
편집: Ni Rui Cheng 2020년 12월 14일
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?

댓글을 달려면 로그인하십시오.

답변 (0개)

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by