cancel
Showing results for 
Search instead for 
Did you mean: 

After disabling Read Out Protection, the STM32CubeProgrammer was frozen.

LeonSu
Associate III

Hello Everyone!

STM32CubeIDE version: 1.19.0

STM32CubeProgrammer version: 2.18.0

MCU: NUCLEO-STM32U575ZI-Q

I tried to use USBX DFU to update the firmware on the STM32U575ZI. The DFU mode was detected by STM32CubeProgrammer. However, when I clicked the connection button and disabled Read Out Protection, STM32CubeProgrammer was frozen as shown in the following picture

LeonSu_0-1765962324590.png 

Moreover, I tried to use DfuSe Demo to update the firmware. It erased the flash (I double‑checked this with STM32CubeProgrammer), but it could not write data to the MCU, as shown in the following picture.

LeonSu_1-1765963407322.png

 

Could anyone provide us with some suggestions?

We will be grateful for any help you can provide.

 

reference:

STM32Cube\Repository\STM32Cube_FW_U5_V1.8.0\Projects\STM32U5G9J-DK2\Applications\USBX\Ux_Device_DFU

 

 

5 REPLIES 5
STOne-32
ST Employee

Dear @LeonSu ,

Are you using the Factory embedded bootloader or the DFU IAP example in main flash ?, if it is the second case - it may happen that the DFU code (in charge of the operation) Erased itself and whole flash so Both Tools will hang as the firmware of DFU also is erased.    To check that, please share setup of the DFU code used ( Hex file ) and also the new Application ( hex code - such as Application2.Dfu.. or like)  .

let us know if it helps.

STOne-32.

Thanks @STOne-32, for your reply.

The file "U575ZI_DFU_Bootloader.7z" is my DFU setup code, and "U575ZI_Application02.7z" is an application.

Please let me know if you need any further information. Thank you again.

STOne-32
ST Employee

Dear @LeonSu ,

Is that possible use the Internal ST factory bootloader instead for Programming and check if working fine ?

I do not see a particular issue the attached files, however my remarks are :

  1. Check first if it not a Hardware issue linked to right USB configuration and Crystal HSE with your application
  2. if (working) = issue is in the DFU file programmed at address 0x0800_0000 and need to debug

Adding @FBL  for help.

Regards,

STOne-32

FBL
ST Employee

Hi @LeonSu 

Would you try to reproduce using latest version of CubeProg 2.21?

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.




Best regards,
FBL
LeonSu
Associate III

Hello @STOne-32  and @FBL 

@STOne-32 

1. I entered DFU mode by connecting PH3_BOOT0 to VDD, and then used STM32CubeProgrammer to update the firmware U575ZI_Application02. The update works well, as shown in the following picture.

LeonSu_0-1766124163344.png

2. The Nucleo-U575ZIQ does not set up the HSE crystal, so I chose the LSE crystal as shown in following picture.

LeonSu_1-1766124741330.png

 

My USB configurations are shown as follows

USBX

(1) Mode

LeonSu_2-1766124872554.png

(2) Configuration

LeonSu_3-1766124966014.png

LeonSu_4-1766125063811.png

LeonSu_6-1766125140660.png

 

@FBL 

After updating CubeProg to the latest version, I updated the U575ZI firmware (U575ZI_Application02) in DFU(USBX DFU) mode. However, the device still does not work properly.

Thank you both once again