2023-03-25 10:29 AM
My idea is that:I want to put a resistor and a capacitor on BOOT0 pin.
When normal code is running and i will go to update the firmware, i will send a command to USB. When MCU will receive this command, MCU will set BOOT0 pin to high state and charge the capacitor. After that MCU will runs an autoreset command.
Could be it works?
How much time BOOT0 pin must be stay high for entering in boot mode?
Thank you for all.
Solved! Go to Solution.
2023-03-25 12:36 PM
Your Idea BOOT0 capacitor may work only for combined pins with PIO. But if you can control this with prepared code, then this is complication. More simple is jump from code directly into bootloader , when you need it.
Second choice is when you use USB only for update, then connect VBUS to BOOT0 over R...
2023-03-25 11:43 AM
if you can power off/on the thing, could use my way:
boot0 pin has pulldown to gnd. ok, and resistor to 5v usb pin.
so when usb is plugged in at power up, bootloader starting...
if not , normal start. if connect usb later, can use it by program normal,
because bootloader check is only some clocks after reset/power up.
2023-03-25 12:36 PM
Your Idea BOOT0 capacitor may work only for combined pins with PIO. But if you can control this with prepared code, then this is complication. More simple is jump from code directly into bootloader , when you need it.
Second choice is when you use USB only for update, then connect VBUS to BOOT0 over R...
2023-03-25 01:43 PM
Which STM32 ?
2023-03-26 02:04 PM
Stm32F207
2023-03-26 02:07 PM
Oh is possibile jump to bootloader directly? How?
thank you for your reply.
2023-03-26 02:10 PM
It’s a nice way !
thank you!
2023-03-29 03:46 AM