Skip to main content
Visitor II
October 17, 2024
Solved

HAL_Delay is not working properly for stm32 blue pill

  • October 17, 2024
  • 1 reply
  • 1940 views

i'm trying to run a simple blinking led program on my stm32f103c8t6 (after i run it several times before successfully), and it doesn't work, when i fix the delay in 1000 ms the led is always on, when i decrement it to 100, 200, 300 it's working properly, but whenever i go above 400 ms it's not working:

Monssef_0-1729150589677.pngMonssef_1-1729150612727.png

 

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

    Hello @Monssef and welcome to the community,

    "X" Pill board flavors (Blue/Black .. other colors) are not the product of ST. They don't contain genuine STM32 chips for years but just fake ones.

    I suggest you to purchase any of official ST boards such as NUCLEO-F103RB containing genuine STM32 MCUs.

    1 reply

    mƎALLEmAnswer
    Technical Moderator
    October 17, 2024

    Hello @Monssef and welcome to the community,

    "X" Pill board flavors (Blue/Black .. other colors) are not the product of ST. They don't contain genuine STM32 chips for years but just fake ones.

    I suggest you to purchase any of official ST boards such as NUCLEO-F103RB containing genuine STM32 MCUs.

    MonssefAuthor
    Visitor II
    October 17, 2024

    okeyy, but i think all the mcu chips are manufactured by ST because i got already one in a custom pcb and i will rerun the same program in it (even i will struggle to access the pins because i have only the interfaces needed in my project)

    thank you !

     

    Graduate II
    October 17, 2024

    Can you share the project code? I have webact bluepill stm32f103c8t6.