Skip to main content
Associate II
July 15, 2024
Solved

Failed to execute MI Command Error

  • July 15, 2024
  • 2 replies
  • 2856 views

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

 

    Best answer by Andrew Neil

    @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!

    2 replies

    Andrew Neil
    Super User
    July 15, 2024

    @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__aAuthor
    Associate II
    July 16, 2024

    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

    Andrew Neil
    Andrew NeilBest answer
    Super User
    July 16, 2024

    @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.
    Thenuk__aAuthor
    Associate II
    August 1, 2024

    Thanks. Changed the ST link and it worked