cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to execute MI Command Error

Thenuk__a
Associate II

Hy!

I'm new to STM32. I'm currently using STM32F103C8T6 board, and it give MI command error (image attached). I have tried using STM32 programmer as well to fix it. Still couldn't. How can i fix this? 

Thenuk__a_1-1721051553812.png

 

Thenuk__a_0-1721051525333.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

@Thenuk__a wrote:

The board i'm using is STM32F103C8T6.


That's just the part number of the chip - you need to say what board you're using

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 


@Thenuk__a wrote:

I'm using ST-Link V2.


That's a clone - not a genuine ST product.

https://community.st.com/t5/stm32-mcus-products/blue-pill-stm32f1-board-gets-programmed-through-arduino-ide-but/m-p/668483/highlight/true#M242662

Check your connections very carefully - different clones have different pinouts!

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

View solution in original post

5 REPLIES 5

@Thenuk__a wrote:

I'm new to STM32. 

 


Welcome to the world of STM32!

Do you have any experience with any other microcontroller(s) ?

 


@Thenuk__a wrote:

I'm currently using STM32F103C8T6 board,


What board, exactly ?

And what ST-Link are you using?

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 


@Thenuk__a wrote:

it give MI command error (image attached).


The important part of the message is here:

AndrewNeil_0-1721052482922.png

So it's not seeing your STM32.

  • Is the target properly connected?
  • Is the target properly powered?
A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Thenuk__a
Associate II

I have used only Arduino. The board i'm using is STM32F103C8T6. I'm using ST-Link V2.

 

WhatsApp Image 2024-07-16 at 11.44.10 AM.jpeg


@Thenuk__a wrote:

The board i'm using is STM32F103C8T6.


That's just the part number of the chip - you need to say what board you're using

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 


@Thenuk__a wrote:

I'm using ST-Link V2.


That's a clone - not a genuine ST product.

https://community.st.com/t5/stm32-mcus-products/blue-pill-stm32f1-board-gets-programmed-through-arduino-ide-but/m-p/668483/highlight/true#M242662

Check your connections very carefully - different clones have different pinouts!

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Thanks. Changed the ST link and it worked 

 

Excellent - please mark that as the solution

https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.