cancel
Showing results for 
Search instead for 
Did you mean: 

Can i read BOOT0 pin state from program?

tt.353
Associate II

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.

5 REPLIES 5
Uwe Bonnes
Principal III

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

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
tt.353
Associate II

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
Principal III

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
Associate II

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

Thank You for help.