2025-02-24 12:05 AM
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.
2025-02-24 02:10 AM - edited 2025-02-24 02:15 AM
@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.
@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?