This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

[ST-Link STM32F4] Random Internal Command Errors

I have been using Keil u5, ST-Link/V2's, and STM32F405's for various projects for a few years, but roughly two months ago I started getting "Internal Command Error" popups when trying to flash boards which otherwise work fine.

These errors are extremely fickle, and seem to have a mind of their own. They occur out of nowhere, and are not fixed by my usual methods of pulling the boot pin high or attempting to connect under reset. Likewise, swapping to different ST-Links, different code, or even different computers doesn't fix these errors.

Well, to say they aren't fixed by any of the above would be a lie - in general, some combination of the above generally lets me program a board. After enough tries of various setups, I can usually get a flash off (my favorite thus far has been swapping from one ST-Link to another, having both fail, then swapoing back and getting a successful flash). However, taking hours to unreliably flash a board is just not acceptable, and it's high time I find a fix for this error.

I have absolutely no idea what could be causing these errors, and have tried updating the firmware of pretty much everything involved to no success. Unless the only way out is to downgrade my ST-Link firmware (in which case I wouldn't mind a link, although I doubt that's it as ones I never updated have been doing this as well), I'm completely out of ideas.

If anyone has seen anything like this before, or has any suggestions to help fix this issue, I'd really appreciate the help.

Thanks.

0