Flash programming TI LAUNCHXL-F28379D

92 vues (au cours des 30 derniers jours)
Marco Perciavalle
Marco Perciavalle le 23 Avr 2019
Modifié(e) : Tomaso Poggi le 12 Juil 2019
I want to flash F28379D using Simulink. To do so, I check "boot from flash" option in "Hardware Implementation" section ("ToolsRun On Target HardwareOptions").
But when I try to flash it, this error occured:
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\R2018b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/F28379~1.CCX
Program Name: C:\Users\MARCOP~1\DOCUME~1\MATLAB\Examples\TEST_C~2\led_test.out
Board Name: *
CPU Name: C28xx_CPU1
Hardware Name: TI_Delfino_F2837xD
*** Starting debug session...
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.
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...
*** Loading the program to the target...
SEVERE: C28xx_CPU2: Error: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.1.0.00007)
SEVERE: C28xx_CPU2: Unable to determine target status after 20 attempts
SEVERE: C28xx_CPU2: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
SEVERE: C28xx_CPU1: Error occurred during flash operation: Cannot enable while the target is disconnected
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005F444@Data: target is not connected
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not read 0x0007026D@Data: target is not connected
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005F444@Data: target is not connected
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005F444@Data: target is not connected
SEVERE: C28xx_CPU1: Error occurred during flash operation: Failed to run target while trying to execute progw.alg
SEVERE: C28xx_CPU1: Error during Flash programming (Flash algorithm timed out). Operation cancelled.
SEVERE: C28xx_CPU1: Perform a debugger reset and execute the Boot-ROM code (click on the RESUME button in CCS debug window) before erasing/loading the Flash. If that does not help to perform a successful Flash erase/load, check the Reset cause (RESC) register, NMI shadow flag (NMISHDFLG) register and the Boot-ROM status register for further debug.
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not read 0x0007026D@Data: target is not connected
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005F444@Data: target is not connected
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005F444@Data: target is not connected
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not write 0x00050024@Data: target is not connected
SEVERE: C28xx_CPU1: File Loader: Memory write failed: Unknown error
SEVERE: C28xx_CPU1: GEL: File: C:\Users\MARCOP~1\DOCUME~1\MATLAB\Examples\TEST_C~2\led_test.out: Load failed.
SEVERE: File: C:\Users\MARCOP~1\DOCUME~1\MATLAB\Examples\TEST_C~2\led_test.out: Load failed.
SEVERE: Error loading "C:\Users\MARCOP~1\DOCUME~1\MATLAB\Examples\TEST_C~2\led_test.out": File: C:\Users\MARCOP~1\DOCUME~1\MATLAB\Examples\TEST_C~2\led_test.out: Load failed.
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not read register PC: target is not connected
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005F800@Data: target is not connected
org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Error loading "C:\Users\MARCOP~1\DOCUME~1\MATLAB\Examples\TEST_C~2\led_test.out": File: C:\Users\MARCOP~1\DOCUME~1\MATLAB\Examples\TEST_C~2\led_test.out: Load failed. (C:\PROGRA~3\MATLAB\SUPPOR~1\R2018b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~2.JS#134)
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~2.JS:134)
at org.mozilla.javascript.gen.c1.call(C:\PROGRA~3\MATLAB\SUPPOR~1\R2018b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~2.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~2.JS)
at org.mozilla.javascript.gen.c1.exec(C:\PROGRA~3\MATLAB\SUPPOR~1\R2018b\toolbox\target\SUPPOR~1\tic2000/CCS_CO~1/RUNPRO~2.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)
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not write 0x00000@Program: target is not connected
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\MARCOP~1\DOCUME~1\MATLAB\Examples\TEST_C~2\led_test.out": File: C:\Users\MARCOP~1\DOCUME~1\MATLAB\Examples\TEST_C~2\led_test.out: Load failed.
at com.ti.debug.engine.scripting.Memory.loadProgram(Memory.java:932)
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
SEVERE: C28xx_CPU1: Error occurred during flash operation: Cannot enable while the target is disconnected
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005F444@Data: target is not connected
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not read 0x0007026D@Data: target is not connected
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005F444@Data: target is not connected
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005F444@Data: target is not connected
SEVERE: C28xx_CPU1: Error occurred during flash operation: Failed to run target while trying to execute pwrite_en.alg
SEVERE: C28xx_CPU1: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
SEVERE: C28xx_CPU1: Perform a debugger reset and execute the Boot-ROM code (click on the RESUME button in CCS debug window) before erasing/loading the Flash. If that does not help to perform a successful Flash erase/load, check the Reset cause (RESC) register, NMI shadow flag (NMISHDFLG) register and the Boot-ROM status register for further debug.
SEVERE: C28xx_CPU1: Error occurred during flash operation: Could not read 0x0007026D@Data: target is not connected
It seems that flashing works using code composer studio.
Is there anyone can help me? Thanks.

Réponses (3)

Aditya Padmanabha
Aditya Padmanabha le 2 Mai 2019
Hi Marco,
Can you provide the version of MATLAB and Code Composer Studio you are using?
Thanks,
Aditya
  1 commentaire
rfymat
rfymat le 8 Mai 2019
I am getting the same error, I am using MATLAB 2018b and CCS 8.3.0

Connectez-vous pour commenter.


Venkatesh Chilapur
Venkatesh Chilapur le 9 Mai 2019
Hi Marco/Rfymat,
Please can you try installing the CCSv8.2.
And configure support package to use this version and see if it helps.
If you continue to see the issue, try uninstalling the CCSv8.3.
This could be specific to 8.3 vesion of CCS.
We have tested till CCSv8.2 for our current release.
Regards,
Venkatesh C

Tomaso Poggi
Tomaso Poggi le 12 Juil 2019
Modifié(e) : Tomaso Poggi le 12 Juil 2019
I have exactly the same problem here and I am using CCS v9.0.1.0004.
Is there any solution at all to this problem? If I understood correctly it seems that the only way to program the TI LAUNCHXL-F28379D with Simulink is by using a rater old version of CCS (v8.2).
EDIT: I confirm that problem can be solved by installing CCS v8.2. I guess it is not the best solution but at least it wroks.
By the way it official that CCS v9 is not supported by Mathworks/TI: http://software-dl.ti.com/ccs/esd/documents/ccs_matlab.html

Community Treasure Hunt

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

Start Hunting!

Translated by