cancel
Showing results for 
Search instead for 
Did you mean: 

Reset problem on STM32F401 discovery board

eigenroot
Associate II
Posted on October 06, 2015 at 06:12

I have a new STM32F401 discovery board, but the on-board ST-LINK stops responding only after a few programming. It shows ''internal command error''. I have to press the reset button when I want to program/debug the code (for ST-LINK to recognize the board), and then have to release the button on-time to let it proceed to program/debug. So I guess the problem has something to do with resetting. I can connect and program the board through ''STM32 ST-LINK Utility'' software without difficulties. After a full chip-wide erase, the ''internal command error'' problem exists. So I think the problem is more related to ST-LINK side. I am using Keil 5. 

How can I solve this problem? 

#stm32f4 #discovery #stlink
2 REPLIES 2
Posted on October 06, 2015 at 06:31

Guess you'd want to double check the ''Connect and Reset Options'' for the debugger.

You'd want to avoid coding things that interfere with the SWD pins, or putting the device into a low power mode.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
eigenroot
Associate II
Posted on October 06, 2015 at 07:34

Your answer really helps. I have a __WFI() call in the main() function. The ST-LINK works properly after I remove it. Thanks!