Skip to main content
Associate II
June 29, 2023
Question

stm32u5 cube programmer fail to download without full chip erase

  • June 29, 2023
  • 2 replies
  • 1719 views

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.

 

2 replies

Technical Moderator
June 30, 2023

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 Accept as Solution on the reply which solved your issue or answered your question.Best regards,FBL
Associate II
July 14, 2023

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
June 27, 2024

@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
June 28, 2024

sorry, I haven't found a fundamental solution.