2025-12-17 1:31 AM
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
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.
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
2025-12-17 2:12 AM
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.
2025-12-17 6:10 PM
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.
2025-12-18 5:25 AM
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 :
Adding @FBL for help.
Regards,
STOne-32
2025-12-18 5:52 AM
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.
2025-12-18 10:32 PM
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.
2. The Nucleo-U575ZIQ does not set up the HSE crystal, so I chose the LSE crystal as shown in following picture.
My USB configurations are shown as follows
USBX
(1) Mode
(2) Configuration
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