Other Parts Discussed in Thread: UNIFLASH
Tool/software:
Hello,
I need to use command line to perform following operation in that order: Mass Erase of the tagert => Load image
But the load image only seem to work without MassErase operation using DSLite:
C:\ti\uniflash_9.1.0>DSLite.bat --config=C:\Git\rdu_swqt\SWQT\Flash\MSPM0G3107.ccxml -a MassErase -e -f C:\RDU_SW\release_1.2.1.0\Rdu_MainSW_ff_release_1.2.1.0_25-02-25_17h04_ebee1a3_clean.hex Executing the following command: > "C:\ti\uniflash_9.1.0\deskdb\content\TICloudAgent\win\ccs_base\DebugServer\bin\DSLite" flash --config=C:\Git\rdu_swqt\SWQT\Flash\MSPM0G3107.ccxml -a MassErase -e -f C:\RDU_SW\release_1.2.1.0\Rdu_MainSW_ff_release_1.2.1.0_25-02-25_17h04_ebee1a3_clean.hex For more details and examples, please refer to the UniFlash Quick Start guide. DSLite version 20.1.0.3671 Configuring Debugger (may take a few minutes on first launch)... Initializing Register Database... Initializing: CS_DAP_0 Executing Startup Scripts: CS_DAP_0 Initializing: CORTEX_M0P Executing Startup Scripts: CORTEX_M0P Initializing: SEC_AP Executing Startup Scripts: SEC_AP Connecting... CORTEX_M0P: GEL Output: Memory Map Initialization Complete Loading Program: C:\RDU_SW\release_1.2.1.0\Rdu_MainSW_ff_release_1.2.1.0_25-02-25_17h04_ebee1a3_clean.hex Preparing ... 0 of 131072 at 0x0 32752 of 131072 at 0x0: 24% 65504 of 131072 at 0x0: 49% 98256 of 131072 at 0x0: 74% 131008 of 131072 at 0x0: 99% Finished: 99% Setting PC to entry point.: 99% Failed: Timed out waiting for target to halt C:\ti\uniflash_9.1.0>DSLite.bat --config=C:\Git\rdu_swqt\SWQT\Flash\MSPM0G3107.ccxml -b MassErase -e -f C:\RDU_SW\release_1.2.1.0\Rdu_MainSW_ff_release_1.2.1.0_25-02-25_17h04_ebee1a3_clean.hex Executing the following command: > "C:\ti\uniflash_9.1.0\deskdb\content\TICloudAgent\win\ccs_base\DebugServer\bin\DSLite" flash --config=C:\Git\rdu_swqt\SWQT\Flash\MSPM0G3107.ccxml -b MassErase -e -f C:\RDU_SW\release_1.2.1.0\Rdu_MainSW_ff_release_1.2.1.0_25-02-25_17h04_ebee1a3_clean.hex For more details and examples, please refer to the UniFlash Quick Start guide. DSLite version 20.1.0.3671 Configuring Debugger (may take a few minutes on first launch)... Initializing Register Database... Initializing: CS_DAP_0 Executing Startup Scripts: CS_DAP_0 Initializing: CORTEX_M0P Executing Startup Scripts: CORTEX_M0P Initializing: SEC_AP Executing Startup Scripts: SEC_AP Connecting... CORTEX_M0P: GEL Output: Memory Map Initialization Complete Failed: Timed out waiting for target to halt C:\ti\uniflash_9.1.0> C:\ti\uniflash_9.1.0>DSLite.bat --config=C:\Git\rdu_swqt\SWQT\Flash\MSPM0G3107.ccxml -e -f C:\RDU_SW\release_1.2.1.0\Rdu_MainSW_ff_release_1.2.1.0_25-02-25_17h04_ebee1a3_clean.hex Executing the following command: > "C:\ti\uniflash_9.1.0\deskdb\content\TICloudAgent\win\ccs_base\DebugServer\bin\DSLite" flash --config=C:\Git\rdu_swqt\SWQT\Flash\MSPM0G3107.ccxml -e -f C:\RDU_SW\release_1.2.1.0\Rdu_MainSW_ff_release_1.2.1.0_25-02-25_17h04_ebee1a3_clean.hex For more details and examples, please refer to the UniFlash Quick Start guide. DSLite version 20.1.0.3671 Configuring Debugger (may take a few minutes on first launch)... Initializing Register Database... Initializing: CS_DAP_0 Executing Startup Scripts: CS_DAP_0 Initializing: CORTEX_M0P Executing Startup Scripts: CORTEX_M0P Initializing: SEC_AP Executing Startup Scripts: SEC_AP Connecting... CORTEX_M0P: GEL Output: Memory Map Initialization Complete Loading Program: C:\RDU_SW\release_1.2.1.0\Rdu_MainSW_ff_release_1.2.1.0_25-02-25_17h04_ebee1a3_clean.hex Preparing ... 0 of 131072 at 0x0 32752 of 131072 at 0x0: 24% 65504 of 131072 at 0x0: 49% 98256 of 131072 at 0x0: 74% 131008 of 131072 at 0x0: 99% Finished: 99% Setting PC to entry point.: 99% Success
The different Mass Erase Operation seem to work fine when using UniFlash
[27/03/2025, 14:48:13] [INFO] CS_DAP_0: GEL Output: Initiating Device Mass Erase [27/03/2025, 14:48:13] [INFO] CS_DAP_0: GEL Output: Attempting CS_DAP connection [27/03/2025, 14:48:14] [INFO] CS_DAP_0: GEL Output: Attempting SEC_AP connection [27/03/2025, 14:48:14] [INFO] CS_DAP_0: GEL Output: Command Sent [27/03/2025, 14:48:15] [INFO] CS_DAP_0: GEL Output: Start hardware Reset using NRST [27/03/2025, 14:48:15] [INFO] CS_DAP_0: GEL Output: Initiating BOOTRST Board Reset [27/03/2025, 14:48:15] [INFO] CS_DAP_0: GEL Output: Reset line asserted [27/03/2025, 14:48:16] [INFO] CS_DAP_0: GEL Output: Reset line de-asserted [27/03/2025, 14:48:16] [INFO] CS_DAP_0: GEL Output: Board Reset Complete [27/03/2025, 14:48:16] [INFO] CS_DAP_0: GEL Output: Reset done [27/03/2025, 14:48:16] [INFO] CS_DAP_0: GEL Output: SEC_AP Disconnect [27/03/2025, 14:48:16] [INFO] CS_DAP_0: GEL Output: SEC_AP Reconnect [27/03/2025, 14:48:16] [INFO] CS_DAP_0: GEL Output: Command execution completed. [27/03/2025, 14:48:16] [INFO] CORTEX_M0P: GEL Output: Mass Erase executed. Please terminate debug session, power-cycle and restart debug session. [27/03/2025, 14:48:42] [INFO] CS_DAP_0: GEL Output: Initiating Device Factory Reset [27/03/2025, 14:48:42] [INFO] CS_DAP_0: GEL Output: Command Sent [27/03/2025, 14:48:43] [INFO] CS_DAP_0: GEL Output: Start hardware Reset using NRST [27/03/2025, 14:48:43] [INFO] CS_DAP_0: GEL Output: Initiating BOOTRST Board Reset [27/03/2025, 14:48:44] [INFO] CS_DAP_0: GEL Output: Reset line asserted [27/03/2025, 14:48:44] [INFO] CS_DAP_0: GEL Output: Reset line de-asserted [27/03/2025, 14:48:44] [INFO] CS_DAP_0: GEL Output: Board Reset Complete [27/03/2025, 14:48:44] [INFO] CS_DAP_0: GEL Output: Reset done [27/03/2025, 14:48:44] [INFO] CS_DAP_0: GEL Output: SEC_AP Disconnect [27/03/2025, 14:48:44] [INFO] CS_DAP_0: GEL Output: SEC_AP Reconnect [27/03/2025, 14:48:44] [INFO] CS_DAP_0: GEL Output: Command execution completed. [27/03/2025, 14:48:44] [INFO] CORTEX_M0P: GEL Output: Factory Reset executed. Please terminate debug session, power-cycle and restart debug session.
What coul be the cause?