cancel
Showing results for 
Search instead for 
Did you mean: 

Query on Boot0 pin in Stm32

vishwadn
Visitor

Hi,

   I need few clarifications for reprogramming using internal DFU bootloader with Boot0 pin:

1) Can I connect Boot0 pin to any other GPIO and that GPIO will drive Boot0 pin. Initially on power ON, GPIO pin shall be pulled up so that Boot0 is HIGH, and once application is loaded, will drive GPIO to LOW which inturn shall pull Boot0 pin to LOW.

2) If Boot0 is HIGH on startup and there is no reprogramming request from Host, will the control jumps to application after any timeout or will it remain in Boot mode forever?

3) Intention of Step1 above is to control Boot0 pin through application software. 

 

Please clarify above points.

1 REPLY 1

@vishwadn wrote:

1) Can I connect Boot0 pin to any other GPIO and that GPIO will drive Boot0 pin. Initially on power ON, GPIO pin shall be pulled up so that Boot0 is HIGH, and once application is loaded, will drive GPIO to LOW which inturn shall pull Boot0 pin to LOW.oints.


The BOOT pin is sampled before the code starts running - so that's not going to work.

AndrewNeil_0-1740392087608.png

https://www.st.com/resource/en/reference_manual/rm0008-stm32f101xx-stm32f102xx-stm32f103xx-stm32f105xx-and-stm32f107xx-advanced-armbased-32bit-mcus-stmicroelectronics.pdf#page=61

 

 


@vishwadn wrote:

3) Intention of Step1 above is to control Boot0 pin through application software. 


Please give more detail of why you want to do that?

What are you actually trying to achieve?

 

perhaps what you really need is a custom bootloader?