- This code is for Atmel AVR ATtiny9
- Connect ESP-EN to PortB0
- Connect ESP-Boot0 to PortB1
- Connect ESP-RxD0 to PortB2
- Only a baudrate of 115200 is supported at this point
- Do not program the ATtiny9 when the ESP32 is connected to the TPI lines
- ATtiny9 needs 5 V to program but can run on 3.3 V
- Outputmodes can be chosen between pushpull and opencollector at compiletime (see config.h)
- RxD pin pullup can be chosen at compiletime (see config.h)
- The baudrate is calibrated within a certain range
- Arduino bootsequence to test with HTERM in HEX format: "C0 00 08 24 00 00 00 00 00 07 07 12 20 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 C0"
The problem is the ESP32 dev boards. The enable pins usually have a capacitor that is too small
to keep the anble pin low long enough. With a 1 uF capacitor to the enable pin the standard nodemcu-cross-transistor circuit it works well. Making your own devboard fixes this and maybe other issues, like too few ground pins. Nice workaround though. More=better :-)