Skip to main content
Associate II
July 16, 2024
Solved

Cannot flash firmware through UART

  • July 16, 2024
  • 7 replies
  • 3755 views

pic1.PNGpic2.PNGpic3.PNG

 

Finally after a long struggle, I was able to get into the system memory by changing to CP2102 ttl wire. Now I have another problem. Any solution to fix this? 

The PCROP_PDP bit is unchecked also.

This topic has been closed for replies.
Best answer by mƎALLEm

Hello,

The tool you are using is very old and obsolete. Please use STM32CubeProgrammer  instead.

Refer also to this article on how to use the tool in bootloader mode with an example:

https://community.st.com/t5/stm32-mcus/how-to-use-stm32cubeprogrammer-to-access-the-usart-bootloader-on/ta-p/49608

Hope it helps.

7 replies

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
July 16, 2024

Hello,

The tool you are using is very old and obsolete. Please use STM32CubeProgrammer  instead.

Refer also to this article on how to use the tool in bootloader mode with an example:

https://community.st.com/t5/stm32-mcus/how-to-use-stm32cubeprogrammer-to-access-the-usart-bootloader-on/ta-p/49608

Hope it helps.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
AbijithAuthor
Associate II
July 16, 2024

I have been using the STM32 CubeProgrammer also and it's able to work there. Except when I change Option Bytes via UART it hangs but that isn't a problem. 

I got another question. Is it possible to power the board via the VIN pins rather than the microUSB?
I have to connect the microUSB always and later connect to the bootloader via UART. Else, if I just connect via UART it doesn't work.

mƎALLEm
ST Technical Moderator
July 16, 2024

Hello,

As you are talking about VIN pin I suppose you are using an ST board. Yes you can but you need to refer to the User Manual of the board and check the power supply section and check the usage restrictions.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Douglas MILLER
ST Employee
July 16, 2024

This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.