Skip to main content
ggowd.1
Associate III
November 27, 2023
Question

I am unable to connect board in STM programmer

Hello Team,

I am unable to connect STM32H745 DISC board to STM programmer to erase the code, Also in STM cube ide software unable flash code, can you confirm how to check the read protection.

PLEASE find attachment encloser. 

 

Best Regards,
Gagan Gowda 

 

This topic has been closed for replies.

4 replies

ST Employee
November 27, 2023

Hello @ggowd.1, 

Check that your STLink firmware is up to date. Try "Connect under reset" mode.

Also check this article 

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.
ggowd.1
ggowd.1Author
Associate III
November 28, 2023

Hello @Sarra.S 

I did wrong setting in LDO/SMPS then shorted BOOT0 and VDD now able to connect and erase code. Removed short connection between BOOT0 and VDD. When debugging code, the control is at error handler is there any changes to be done at my end??

 

Find error below

while((__HAL_RCC_GET_FLAG(RCC_FLAG_D2CKRDY) != RESET) && (timeout-- > 0));
 if ( timeout < 0 )
 {
 Error_Handler();
 }

Best Regards,
Gagan Gowda 

Tesla DeLorean
Guru
November 27, 2023

If the code gets the LDO/SMPS settings wrong, there is a method to connect BOOT0 pad to VCC and power cycle the board a couple of time. When able to connect mass erase to remove your code.

You'd need to pull the schematic to double check the resistor pad. There's probably a post or tutorial on this. Dig a little.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
ggowd.1
ggowd.1Author
Associate III
November 28, 2023

Hello @Tesla DeLorean 

Yes, I did wrong setting in LDO/SMPS then shorted BOOT0 and VDD now able to connect and erase code. Removed short connection between BOOT0 and VDD. When debugging code, the control is at error handler is there any changes to be done at my end??

 

Find error below

while((__HAL_RCC_GET_FLAG(RCC_FLAG_D2CKRDY) != RESET) && (timeout-- > 0));
 if ( timeout < 0 )
 {
 Error_Handler();
 }

Best Regards,
Gagan Gowda