cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F205REY can not debug/program the program

cchan.21
Associate II

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

3 REPLIES 3
TDK
Guru


_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.

If you feel a post has answered your question, please click "Accept as Solution".
cchan.21
Associate II

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?

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..