cancel
Showing results for 
Search instead for 
Did you mean: 

hello, i have a problem in debugging my stm32F0 series nucleo board. can anyone help me out

Anuraag P
Associate II
Posted on January 24, 2018 at 06:51

When I am trying to flash to controller, I am getting an error 'Internal Command Error' and then it says 'Flashing is failed in Cortex M0'. So, what could be the problem?

8 REPLIES 8
Posted on January 24, 2018 at 09:47

The debugger can talk to the chip or loses connectivty. Check you have the right pins connected and device doesn't power down. On the PC side make sure you have picked the right debugger and flash algorithm. 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
Evangelist
Posted on January 24, 2018 at 10:42

Anuraag P wrote:

I am getting an error 'Internal Command Error'

Where, exactly, are you getting that error?  What software are you using? What hardware are you using?

Has it ever worked, or is this a 'new' problem?

Anuraag P wrote:

it says 

What says?

Posted on January 24, 2018 at 11:34

I am using Keil software for flashing the code. It is a new problem. When I tried to write some application it started behaving in this way..

Posted on January 24, 2018 at 11:36

it says in the sense a popup is coming on the screen. let me post you the screen shot.L

Posted on January 24, 2018 at 12:01

Anuraag P wrote:

 the screen.

There you go again.

Remember that we cannot see your screen - so we have no idea what you're doing, or what tools you are using unless you clearly state these things in your post!

(Yes, you have now revealed that you are using Keil - but that was not in your initial post).

Posted on January 24, 2018 at 12:02

Anuraag P wrote:

I am using Keil software for flashing the code.

So what happens if you use the ST-Link Utility?

ie, is this a fundamental issue, or is it just something to do with Keil...

Posted on January 24, 2018 at 15:20

The use of Keil was inferred.

Would agree ST-LINK Utilities would be a good test. If code meddles with debug pin use 'connect under reset' options or strap BOOT0 low.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on January 24, 2018 at 15:27

'Connect under reset' should also help if the code is going to sleep