esp32s2-cookbook
esp32s2-cookbook copied to clipboard
Fixed pin definitions and default board
There was a mismatch between the pin defines for currently two available boards. Also changed the default pin config to the original esp32-s2 ch32v003programmer (BOARD_CNLOHR). Firmware tested on my own, compatible hw.
Adding a small delay before the target power is enabled at boot fixes the problems with too high inrush current happening during usb enumeration. Still, a target board with enough decoupling capacitance might occasionally crash the ESP32-S2 if the current spike exceeds the Imax of the onboard voltage regulator. Solution would be to change the hardware to use current limited switches for the 3.3V and 5V outputs.
poke @hexeguitar
Closing because comment was not addressed in 4 months.