2018-07-26 02:18 AM
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.
2018-07-26 04:57 AM
The datasheet marks BOOT0 as dedicated boot pin, so there is no way to do so.
2018-07-26 05:48 AM
See if you can use SYSCFG_CFGR1 to read the memory mapping at boot.
2018-07-26 06:46 AM
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.
2018-07-26 07:26 AM
SYSCFG_CFGR1 shows the state of Boot0 at powerup, not at the moment of the query. That my be enough for your problem.
2018-07-27 12:34 AM
Unfortunately this isn't enough. I have to use GPIO and short them with BOOT0 pin.
Thank You for help.