Skip to main content
tt.353
Associate
July 26, 2018
Question

Can i read BOOT0 pin state from program?

  • July 26, 2018
  • 5 replies
  • 1594 views

Hello.

Can i read state of BOOT0 pin in STM32F030F4P6?

My uC always turn on with BOOT0 GND, but i need to have dual purpose pin BOOT0 and have possibility to read only state of this pin.

    This topic has been closed for replies.

    5 replies

    Uwe Bonnes
    Chief
    July 26, 2018

    The datasheet marks BOOT0 as dedicated boot pin, so there is no way to do so.

    Tesla DeLorean
    Guru
    July 26, 2018

    See if you can use SYSCFG_CFGR1 to read the memory mapping at boot.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    tt.353
    tt.353Author
    Associate
    July 26, 2018

    I just think that if i can set BOOT1 by software that is also possible to read BOOT0 throught some registers.

    I check SYSCFG and it stays all 0 even if i pull up BOOT0 pin.

    It looks that i have to short pin 1 (boot0) and 2 and then read state.

    Uwe Bonnes
    Chief
    July 26, 2018

    SYSCFG_CFGR1 shows the state of Boot0 at powerup, not at the moment of the query. That my be enough for your problem.

    tt.353
    tt.353Author
    Associate
    July 27, 2018

    Unfortunately this isn't enough. I have to use GPIO and short them with BOOT0 pin.

    Thank You for help.