Skip to main content
Visitor II
July 10, 2023
Solved

STM32 Blue Pill code to run a code once and display in serial monitor

  • July 10, 2023
  • 1 reply
  • 747 views

I am using CubeIDE to code on my STM32 Blue Pill to display a string on my serial monitor but it is only available on loop. Is there any way to print it on serial monitor once ??

And how can I read values from the serial monitor and use as an input value ??

    This topic has been closed for replies.
    Best answer by Peter BENSCH

    This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. 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 recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

    This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

    Thank you for your understanding.

    Regards
    /Peter

    1 reply

    Peter BENSCH
    Peter BENSCHBest answer
    Technical Moderator
    April 25, 2025

    This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. 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 recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

    This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

    Thank you for your understanding.

    Regards
    /Peter