Skip to main content
Explorer
October 16, 2024
Solved

Downloadig Hex or elf file in STM32F103 based BluePill Module

  • October 16, 2024
  • 4 replies
  • 5319 views

Welcome to everyone!
This question concerns the STM32F103CBT6 microcontroller , I have given a "BluePill" module equipped with this microcontroller. When I download the hex or elf file with STM Programer, it downloads nicely, no problem, But! however, it catches itself without any precedent and locks itself, and a message appears that it is only available in Reset mode, the program meter is no longer connected to the microcontroller. Could this be eliminated somehow, so that whenever I want to download something, can I do it without any problems? There should be no microcontroller "locking", etc. . Thank you very much in advance for your help Everyone!

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Hello,

    ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

    We suggest to purchase a genuine products and purchase them from known and trusted distributors.

    Thank you for your understanding.

    4 replies

    Super User
    October 16, 2024

    Beware that it is highly unlikely that a "Blue Pill" contains a genuine STM32.

     


    @joseph_lengyel_1972 wrote:

     it catches itself without any precedent and locks itself, and a message appears that it is only available in Reset mode,


    Pardon?

    Please post a screenshot of what you actually see.

    Also what version of CubeProgrammer, what Operating System, etc

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

     

    PS:

    And are you using a genuine ST-Link, or a "clone":

    https://community.st.com/t5/stm32-mcus/how-to-recognize-a-genuine-st-link-v2-versus-a-cloned-one/tac-p/703663/highlight/true#M965

     

    Explorer
    October 16, 2024

    The operating system I use is Windows 10, but it used to do this during Window 7 professional. The STM Programmer I use is the latest version offered by the STM download site. there was an older ST-Link programmer application with it also it shop for prominence ,even after all kinds of updates. I will attach a screenshot of the little text box informing me about this microcontroller "lock". If there is a solution to this ,so that there is no download problem, which I wrote about earlier, eternal gratitude and thanks anyway !

    Super User
    October 16, 2024
    Explorer
    October 16, 2024

     What I'm using  now a pendrive style STLink-2 Programmer , I think It is a "clone"  . Yes  I know exist original     STLink-2 programmer and this programmer look like white  little box with fine ST logo.  .  

    Super User
    October 16, 2024

    @joseph_lengyel_1972 wrote:

      a pendrive style STLink-2   


    As shown in the link I gave, that is definitely a clone - not a genuine ST product.

    The ST logo is fake.

     

    Graduate II
    October 16, 2024

    If you upload broken code, it will fail.

    Start looking at the code. Start debugging the code.

    It might help to post in your native language, attach code files and pictures.

    Your current description of the problem isn't helping diagnose the real issue.

    If all the gear you have is counterfeit it is likely to be difficult experience. Buy a NUCLEO board if your time has value.

    Super User
    October 16, 2024

    @Tesla DeLorean wrote:

    If all the gear you have is counterfeit it is likely to be difficult experience. Buy a NUCLEO board if your time has value.


    ^^^^ This!! ^^^^

    @joseph_lengyel_1972 If you doubt it, see this recent tale of woe resulting from fake gear:

    https://community.st.com/t5/stm32-mcus-products/debug-blue-pill-with-stlink-v3minie/m-p/711316#M258517

    https://community.st.com/t5/stm32-mcus-products/blue-pill-stm32f1-board-gets-programmed-through-arduino-ide-but/td-p/667923

     

    mƎALLEmAnswer
    Technical Moderator
    April 18, 2025

    Hello,

    ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

    We suggest to purchase a genuine products and purchase them from known and trusted distributors.

    Thank you for your understanding.