Skip to main content
Associate II
Jun 29, 2023 2:25 PM UTC
Question

stm32u5 cube programmer fail to download without full chip erase

I want to write firmware to stm32u575 using cube programmer, but when I do download from the erase & programming section, it fails to write.

Of course, I have turned off the "skip flash erase before programming" checkbox.

However, if I run the program in automatic mode with the "full chip erase" checkbox checked, it writes successfully.

With the L4 and G4 that I have used in the past, I was able to write successfully in both cases, but with the U5, it fails.

When I use the U5, I use cube programmer.dll to perform full chip erase before downloading.

,Has this behavior changed since the writing of u5 microcontrollers in the specifications?

I have confirmed that the option byte is factory default.

 

This topic has been closed for replies.

4 replies

ST Technical Moderator
Jun 30, 2023 9:48 AM UTC

Hello @junichi ohashi 

Could you please share the log? Are you flashing secure firmware? It is possible that the firmware needs to erase/reset the chip before programing the flash.

 

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
Associate II
Jul 14, 2023 8:31 AM UTC

sorry.

this problem source is by my circuit design cause there was no problem encounted in stm32 nucleo u575zi-q.

I will look into the cause now.

Explorer
Jun 27, 2024 9:12 PM UTC

@junichi ohashi , were you able to determine the root cause? I am seeing a similar issue but I can only reproduce it on my board and not on the dev kit

Associate II
Jun 28, 2024 3:55 AM UTC

sorry, I haven't found a fundamental solution.