Problem in programming 28379D from Simulink

52 visualizaciones (últimos 30 días)
Krishan Kant
Krishan Kant el 22 de Mayo de 2018
Respondida: Manthan Patel el 17 de Jul. de 2023
Hi All, I am trying to give simple pulse output to GPIO to blink LED in 28379D Launchpad, but it is not working. With the similar configuration setting, F28069 is working. One difference I found is that there was no linker command file for this controller in MATLAB toolbox examples. I've got Embedded Coder Version 6.13(R2017b).
Always giving the following error
The following error occurred during deployment to your hardware board:
Debug Server Scripting (DSS) error:
*** User inputs:
Target Configuration: C:\PROGRA~3\MATLAB\SUPPOR~1\R2017b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/F28379~1.CCX
Program Name: C:\Users\krish\Desktop\PHD~1\PROJEC~1\EMBEDD~1\F28379~1.OUT
Board Name: *
CPU Name: C28xx_CPU1
Hardware Name: TI_Delfino_F2837xD
*** Starting debug session...
C28xx_CPU2: GEL Output:
Memory Map Initialization Complete
C28xx_CPU2: If erase/program (E/P) operation is being done on one core, the other core should not execute from shared-RAM (SR) as they are used for the E/P code. Also, CPU1 will be halted to determine SR ownership for the CPU which will run the Flash Plugin code, after which CPU1 will be set to run its application. User code execution from SR could commence after both flash banks are programmed.
*** 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
C28xx_CPU1: If erase/program (E/P) operation is being done on one core, the other core should not execute from shared-RAM (SR) as they are used for the E/P code. Also, CPU1 will be halted to determine SR ownership for the CPU which will run the Flash Plugin code, after which CPU1 will be set to run its application. User code execution from SR could commence after both flash banks are programmed.
*** Loading the program to the target...
SEVERE: C28xx_CPU1: GEL: Unable to open file: C:\Users\krish\Desktop\PhD!!!!!!!!!!!!!!\Project Work\Embedded Coder Tests\F28379_try_ert_rtw\C:\Users\krish\Desktop\PHD~1\PROJEC~1\EMBEDD~1\F28379~1.OUT
SEVERE: Unable to open file: C:\Users\krish\Desktop\PhD!!!!!!!!!!!!!!\Project Work\Embedded Coder Tests\F28379_try_ert_rtw\C:\Users\krish\Desktop\PHD~1\PROJEC~1\EMBEDD~1\F28379~1.OUT
SEVERE: Error loading "C:\Users\krish\Desktop\PHD~1\PROJEC~1\EMBEDD~1\F28379~1.OUT": Unable to open file: C:\Users\krish\Desktop\PhD!!!!!!!!!!!!!!\Project Work\Embedded Coder Tests\F28379_try_ert_rtw\C:\Users\krish\Desktop\PHD~1\PROJEC~1\EMBEDD~1\F28379~1.OUT
org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Error loading "C:\Users\krish\Desktop\PHD~1\PROJEC~1\EMBEDD~1\F28379~1.OUT": Unable to open file: C:\Users\krish\Desktop\PhD!!!!!!!!!!!!!!\Project Work\Embedded Coder Tests\F28379_try_ert_rtw\C:\Users\krish\Desktop\PHD~1\PROJEC~1\EMBEDD~1\F28379~1.OUT (C:\PROGRA~3\MATLAB\SUPPOR~1\R2017b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~1.JS#129)
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\R2017b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~1.JS:129)
at org.mozilla.javascript.gen.c1.call(C:\PROGRA~3\MATLAB\SUPPOR~1\R2017b\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\R2017b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~1.JS)
at org.mozilla.javascript.gen.c1.exec(C:\PROGRA~3\MATLAB\SUPPOR~1\R2017b\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 "C:\Users\krish\Desktop\PHD~1\PROJEC~1\EMBEDD~1\F28379~1.OUT": Unable to open file: C:\Users\krish\Desktop\PhD!!!!!!!!!!!!!!\Project Work\Embedded Coder Tests\F28379_try_ert_rtw\C:\Users\krish\Desktop\PHD~1\PROJEC~1\EMBEDD~1\F28379~1.OUT
at com.ti.debug.engine.scripting.Memory.loadProgram(Memory.java:932)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)
... 18 more

Respuestas (8)

Venkatesh Chilapur
Venkatesh Chilapur el 29 de Mayo de 2018
Hi,
Please try to connect to board from CCS and see if you are successful. Do you see the device listed under device manager?
Regards,
Venkatesh C

ANDONI PULIDO
ANDONI PULIDO el 2 de Sept. de 2019
I solved the problem unselecting "boot from flash", i hope it be helpfull to somebody!solutexas.png

Antonin
Antonin el 30 de Nov. de 2018
I would start by removing the 14 exclamation marks in the folder name. It looks like the flashing tool doesn't like these.

ANDONI PULIDO
ANDONI PULIDO el 8 de Ag. de 2019
Hi,
I have the same problem...
Can have relation with the code composer version?
Can be a hardware problem of the development board?
Do you know were can i configure the memory directions in simulink?
Thank you,

zia ullah
zia ullah el 14 de Jun. de 2021
The following error occurred during deployment to your hardware board: Debug Server Scripting (DSS) error: *** User inputs: Target Configuration: undefined Program Name: undefined Board Name: unspecified (connect to first board) CPU Name: unspecified (connect to first CPU) Hardware Name: unspecified Boot From Flash: unspecified *** Starting debug session... SEVERE: Cannot read System Setup data from XML file C:\Users\92317\Downloads\mcb_f28379d_ert_rtw\undefined Error parsing file: Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=C:\Users\92317\Downloads\mcb_f28379d_ert_rtw\undefined SEVERE: Could not start server: DebugServer.1: Cannot read System Setup data from XML file C:\Users\92317\Downloads\mcb_f28379d_ert_rtw\undefined Error parsing file: Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=C:\Users\92317\Downloads\mcb_f28379d_ert_rtw\undefined *** Cannot create a valid debug session for Board/CPU=*/*. Make sure this matches only one board and one CPU.

Sangmesh Malge
Sangmesh Malge el 8 de Dic. de 2021
I solved this problem by making two changes.
  1. By unticking "boot from flash" in model setting hardware implementation (MATLAB). AND
  2. Building the project (generated by MATLAB) from CCS.
All the best

GOWTHAM RAJMOHAN
GOWTHAM RAJMOHAN el 15 de Mzo. de 2023
check proper board is selected!
if your using launchpad then select " F280049c lauchpad" avoid selecting "F280049C"

Manthan Patel
Manthan Patel el 17 de Jul. de 2023
Hi All, I using LaunchPad F28003x C2000 board. I'm trying to make a simple simulink model to blink a LED using GPIO pins by giving constant HIGH or LOW. But I'm getting a floowing error.
The following error occurred during deployment to your hardware board:
Error occurred during deployment to the hardware board. Check the 'Download Executable to Hardware' stage above for more details.
This is in 'Download Executable to Hardware'
Initiating the executable load sequence on the target hardware using TI Code Composer Studio.
*** User inputs:
Target Configuration: C:\SOFTWA~1\MATLAB~2\toolbox\c2b\tic2000/CCS_CO~1/F28003~1.CCX
Program Name: C:\Users\MANTHA~1.PAT\DOCUME~1\MATLAB\TI_LED~1.OUT
Board Name: *
CPU Name: unspecified (connect to first CPU)
*** Starting debug session...
*** Debug Session Name: Texas Instruments XDS110 USB Debug Probe_0/C28xx_CPU1
*** Board Name: Texas Instruments XDS110 USB Debug Probe_0
*** CPU Name: C28xx_CPU1
*** Connecting to target...
SEVERE: IcePick_C_0: Error connecting to the target: (Error -2131 @ 0x0) Unable to access device register. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.5.0.00143)
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:\SOFTWA~1\MATLAB~2\toolbox\c2b\TIC200~3/CCS_CO~1/RUNPRO~3.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:\SOFTWA~1\MATLAB~2\toolbox\c2b\TIC200~3/CCS_CO~1/RUNPRO~3.JS:93)
at org.mozilla.javascript.gen.c1.call(C:\SOFTWA~1\MATLAB~2\toolbox\c2b\TIC200~3/CCS_CO~1/RUNPRO~3.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:\SOFTWA~1\MATLAB~2\toolbox\c2b\TIC200~3/CCS_CO~1/RUNPRO~3.JS)
at org.mozilla.javascript.gen.c1.exec(C:\SOFTWA~1\MATLAB~2\toolbox\c2b\TIC200~3/CCS_CO~1/RUNPRO~3.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:644)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)
... 18 more

Community Treasure Hunt

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

Start Hunting!

Translated by