Skip to main content
Explorer
June 12, 2023
Question

STM32F205REY can not debug/program the program

  • June 12, 2023
  • 2 replies
  • 2090 views

Hi, all

i use STM32F205REYx, (WLCSP64+2 package ), and use SWD (ST-Link V2 ) to debug/program the code, the circuit is as the attached file, but it always shows the GDB error as the following message

"Target Reset error

Error in initializing ST-LINK device.

Reason: Failed to reset target"

what is the possible reason?

Best Regards

    This topic has been closed for replies.

    2 replies

    Super User
    June 13, 2023


    _legacyfs_online_stmicro_images_0693W00000dDe0rQAC.png 

    NRST should not be tied to VDD as it prevents the chip from resetting. The chip literally pulls the line down internally when it wants to reset.


    _legacyfs_online_stmicro_images_0693W00000dDe0hQAC.png 

    Generally NRST should also be tied to the debugger to allow it to recover from a bad state, although it isn't strictly necessary.

    cchan.21Author
    Explorer
    June 13, 2023

    Dear, all

    thanks' for your help. i'll try to check these reason that Mr. HA.5 suggested.

    Beside, from Mr. TDK, thank's for your suggestion, but i had used the circuit (directly connect NRST to VDD) in the past several projects( while these project is use STM32F412), and they can debug/program/work fine. This is the first time i use STM32F205RETx with package WLCSP64+2 in my project.

    So is it something different between F412 to F205 in the SWD debug port?

    Graduate II
    June 13, 2023

    Tying NRST to a supply or driving with a push-pull driver, is a very common way of breaking ARM MCU