Skip to main content
fDNTI
Associate
December 5, 2018
Question

Why my STM32 doesn't start to run ?

  • December 5, 2018
  • 7 replies
  • 2004 views

After upload my program into a stm32F103C8T6, the program doesn't start. I just use STM32CUBE-MX to configure my mcu, and I just add some blinking on 5 output (push/pull). But after reset my output seems to stay in high inpedance ? Does Mcu start itself ? Do I miss a configuration step in STM32CUBE-MX ?

regards

    This topic has been closed for replies.

    7 replies

    Tesla DeLorean
    Guru
    December 5, 2018

    CubeMX is not a compiler, you need to build the project in a tool chain, and download and debug it from there.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    fDNTI
    fDNTIAuthor
    Associate
    December 5, 2018

    Yes of course, Sorry I didn't mentioned it. I obviously Build project without error, before uploading. I hadn't choice I need .hex file or .bin :)

    Tesla DeLorean
    Guru
    December 5, 2018

    If this is a custom board be wary that BOOT0 needs to be pulled LOW. The chip should run code out of FLASH at reset, and starting a debugger should initiate a "run to main()" to allow you to start your session.

    Recommend stepping the code, and reviewing the peripheral settings for RCC, GPIO, etc through debugger's "Peripheral View"

    Using PA13/PA14 and other SWD/JTAG pins on F1 can interfere with the ability to debug.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    waclawek.jan
    Super User
    December 5, 2018
    fDNTI
    fDNTIAuthor
    Associate
    December 6, 2018

    There's a beginning to everything, but it's not help ! I already done basic steps, this is the reason why I ask help, to have a higher level of help !