Skip to main content
Associate
November 21, 2024
Question

STM32H533CET6 File download error

  • November 21, 2024
  • 1 reply
  • 1139 views

Hi everyone,

 

I have problems programming the STM32H533CET6, I get a file download error.

 

 

Error: failed to download Segment[0]
Error: failed to download the File
Encountered Error when opening C:\ST\STM32CubeIDE_1.16.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.400.202404281720\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Shutting down...
Exit.

 

 

 

I can read the memory and delete it. But I can't download any program. I have already verified that the memory is not protected and the trusted zone is disabled. I also checked the connections according to AN5711.


I tried the “Normal”, “hot plug” and the different reset modes in STM32Programmer.

Nothing works.

Does anyone have an idea what could be the problem?

I use:
ST-link v2
CubeIde: V1.16.1
Programmer: V2.17

Thank you.

1 reply

Technical Moderator
November 21, 2024

Hello @Erik_Valente ,

This article will help you in case you are using a custom external loader:

Custom external loader "failed to download segment... - STMicroelectronics Community

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
Associate
November 21, 2024

Hi, Imen

Thank you for your response. Let me tell you that I am not using an external loader. I chose this H533 to use FD CAN, but I can't even set a port to high ( without delay).
I tried overwriting HAL Tick, as mentioned in the post you mentioned, without success. I get the same result.

Any other idea?

Thanks.