cancel
Showing results for 
Search instead for 
Did you mean: 

ST-Link error "DEV_TARGET_NOT_HALTED" while doing mass erase on NUCLEO-U575ZIQ

Prashant15
Associate

Hello Team

This is regarding, facing failure while doing mass erase operation for flash on the NUCLEO-U575ZIQ Evaluation Board. 
The goal was to do simple project led blinking based on freertos using TFM software base environment.
The regression.sh script execution got failed:

Prashant15_2-1748609146718.png

Due to this issue, unable to flash the software image into the HW with both TFM_UPDATE shell script and STM32Programmer approach.

Further while trying to do the mass erase operation for the flash using STM32Programmer, getting below erros:

17:53:13 : STM32CubeProgrammer API v2.19.0 | Windows-64Bits
17:53:27 : UR connection mode is defined with the HWrst reset mode
17:53:27 : Warning: Device changed, refreshing...
17:53:27 : UR connection mode is defined with the HWrst reset mode
17:53:28 : ST-LINK SN : 004000433233510F39363634
17:53:28 : ST-LINK FW : V3J16M7
17:53:28 : Board : NUCLEO-U575ZI-Q
17:53:28 : Voltage : 3.28V
17:53:28 : SWD freq : 8000 KHz
17:53:28 : Connect mode: Hot Plug
17:53:28 : Reset mode : Software reset
17:53:28 : Device ID : 0x482
17:53:28 : Revision ID : Rev W
17:53:28 : Debug in Low Power mode enabled.
17:53:29 : UPLOADING OPTION BYTES DATA ...
17:53:29 : Bank : 0x00
17:53:29 : Address : 0x40022040
17:53:29 : Size : 48 Bytes
17:53:29 : UPLOADING ...
17:53:29 : Size : 1024 Bytes
17:53:29 : Address : 0x8000000
17:53:29 : Read progress:
17:53:29 : Error: Fail to read Flash Size
17:53:29 : Error: Data read failed
17:53:45 : MASS ERASE ...
17:53:45 : Error: Init function failed
17:53:45 : Error: failed to erase memory
17:53:45 : Error: Mass erase operation failed.Please verify flash protection

Prashant15_4-1748609458537.png


We tried the Option byte write process to resolve this issue as well, but getting issue defined in the log and snap below:
Error: Uploading Option Bytes bank: 0 failed
Error: Reloading Option Bytes Data failed

Prashant15_5-1748609540564.png
So could you please support to resolve this issue.

regards

 

1 REPLY 1
Amine_Jridi
ST Employee

Hello @Prashant15,

 

Could you please try performing a factory reset using the STM32CubeProgrammer GUI and then try again? Also, I recommend switching to  CubeProgrammer v2.20.

Thank you,
Amine


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.