Skip to main content
Visitor II
November 27, 2023
Question

I am unable to connect board in STM programmer

  • November 27, 2023
  • 2 replies
  • 1780 views

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.

    2 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 

    ggowd.1Author
    Visitor II
    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 

    Graduate II
    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.

    ggowd.1Author
    Visitor II
    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