Describe the bug
Code cannot run with FTDI programmer when HCSR-04 is connected. In the past, this worked by just not using the TX and RX connections AFTER my script was flashed onto the ESP32-CAM. But now it still doesn't seem to work.
The circuit connections are
FTDI 5V <---> HCSR04 5V <---> ESP32-CAM 5V
FTDI GND <---> HCSR04 GND <----> ESP32-CAM GND
FTDI TX <---> ESP32-CAM RX
FTDI RX <---> ESP32-CAM TX
HCSR04 TRIG <---> ESP32-CAM GPIO12
HCSR04 ECHO <---> ESP32-CAM GPIO13
Error from Serial Monitor is
rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57
To Reproduce
Steps to reproduce the behavior:
- Only connect FTDI to ESP32-CAM and put on jumper cap GND and GPIO0
- Reset board to put it in Flashing mode
- Flash the program onto the ESP32-CAM (use scripts from #6)
- Connect HCSR-04 to ESP32CAM and FTDI
- Take off jumper cap and reset the board
- Open the serial monitor to see the error
Expected behavior
The script should run without any flashing errors. In the past, this worked by just not using the TX and RX connections AFTER my script was flashed onto the ESP32-CAM. But now it still doesn't seem to work.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
contents in platform.ini file
[env:esp32cam]
platform = espressif32
board = esp32cam
framework = arduino
monitor_speed = 115200
lib_deps =
adafruit/Adafruit MQTT Library@^2.4.2
adafruit/Adafruit IO Arduino@^4.1.1
Additional context
Current using code from Pull Request #6