ESP32-Musings / OTA_update_STM32_using_ESP32

Program STM32Fxx MCUs Over-the-Air using ESP32
MIT License
366 stars 73 forks source link

control BOOT0 pin from ESP #11

Closed MauroMombelli closed 2 years ago

MauroMombelli commented 2 years ago

By adding an additional pin, controlling BOOT0, the whole programming operation can be automated without human intevention

udit7395 commented 2 years ago

@MauroMombelli Agreed, but as mentioned in the disclaimer section in the README, we assume the user to implement this behavior. The library's sole purpose is to allow developer/user to flash STM32 MCU and make it extensible(it can be flashed via MQTT, HTTP Client, Web Sockets, SPIFFS, etc.). The developer/user could use an additional pin on an ESP, MOSFETs, or any other methods they see fit. This also helps us ensure we do not have to test for every permutation and combination, in terms of pin compatibility and user setup.

If you implement this functionality, please do comment here with repo link and I shall update the README accordingly. Thank you.

rtek1000 commented 1 year ago

Perhaps a pin that has a pull down resistor could be used, such as GPIO2. So that the STM32 always starts automatically without ESP32 intervention.

ESP32_Pull_Down

https://www.tme.eu/Document/518ee50b428e44b1d7a5af85218fcf3b/esp32-wroom-32du.pdf