- changed status to open
Setup pins before uploading firmware
Hello John, I have a question for you: is it possible to set a pin high or low before uploading the firmware in PlatformIO?
Comments (4)
-
repo owner -
repo owner PlatformIO has no way to control most pins.
However, I believe it uses ESPTool.py to load the .bin file onto the board. ESPTool.py uses the serial port handshaking lines DTR and RTS to put the ESP board into boot mode. The ESPTool connect sequence simulates holding down the boot button while toggling the reset button.
I'm not sure exactly how the wiring is done. I'm guessing the USB-serial chip on the ESP32 board has output pins for DTR and RTS which are wired to the appropriate pins on the ESP module.
Hope that info is of some help...
-
reporter Okay, I'll do the experiment.
-
repo owner - changed status to resolved
I hope I answered your question. Marking this resolved, but feel free to leave additional comments.
- Log in to comment