ESP32 Touchscreen Monitor 2.8 Inch TFT compile issues in Arduino IDE
Using Arduino IDE 2.2.1 and recently purchased Elecrow ESP32 2.8 touch screen module.
I have followed all instructions in the Elecrow tutorial.
Step 6 of the Elecrow tutorial specifies select "Board: ESP32S3 Dev Module" in the Arduino IDE.
I select "ESP32S3 Dev Module" and configure compiler settings as specified in the tutorial.
The Arduino IDE compiles ok but fails at upload with following error messages:
"/Users/dveach/Library/Arduino15/packages/esp32/tools/esptool_py/4.5.1/esptool" --chip esp32s3 --port "/dev/cu.usbserial-3130" --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x0 "/private/var/folders/rw/4_9vxsh56sjfzl1sxr875yz80000gn/T/arduino/sketches/248A0F840B1C087844B1E31ACA36FFA2/TFT-LCD-2.8.ino.bootloader.bin" 0x8000 "/private/var/folders/rw/4_9vxsh56sjfzl1sxr875yz80000gn/T/arduino/sketches/248A0F840B1C087844B1E31ACA36FFA2/TFT-LCD-2.8.ino.partitions.bin" 0xe000 "/Users/dveach/Library/Arduino15/packages/esp32/hardware/esp32/2.0.13/tools/partitions/boot_app0.bin" 0x10000 "/private/var/folders/rw/4_9vxsh56sjfzl1sxr875yz80000gn/T/arduino/sketches/248A0F840B1C087844B1E31ACA36FFA2/TFT-LCD-2.8.ino.bin"
esptool.py v4.5.1
Serial port /dev/cu.usbserial-3130
Connecting.....
A fatal error occurred: This chip is ESP32 not ESP32-S3. Wrong --chip argument?
Failed uploading: uploading error: exit status 2
Note: I also tried using the "ESP32 Dev Module" board setting but it will not upload either. It fails in the upload with the following error messages:
"/Users/dveach/Library/Arduino15/packages/esp32/tools/esptool_py/4.5.1/esptool" --chip esp32 --port "/dev/cu.usbserial-3130" --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 "/private/var/folders/rw/4_9vxsh56sjfzl1sxr875yz80000gn/T/arduino/sketches/248A0F840B1C087844B1E31ACA36FFA2/TFT-LCD-2.8.ino.bootloader.bin" 0x8000 "/private/var/folders/rw/4_9vxsh56sjfzl1sxr875yz80000gn/T/arduino/sketches/248A0F840B1C087844B1E31ACA36FFA2/TFT-LCD-2.8.ino.partitions.bin" 0xe000 "/Users/dveach/Library/Arduino15/packages/esp32/hardware/esp32/2.0.13/tools/partitions/boot_app0.bin" 0x10000 "/private/var/folders/rw/4_9vxsh56sjfzl1sxr875yz80000gn/T/arduino/sketches/248A0F840B1C087844B1E31ACA36FFA2/TFT-LCD-2.8.ino.bin"
esptool.py v4.5.1
Serial port /dev/cu.usbserial-3130
Connecting....
Chip is ESP32-D0WDQ6 (revision v1.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: b4:8a:0a:ae:3f:28
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
A fatal error occurred: Unable to verify flash chip connection (Serial data stream stopped: Possible serial noise or corruption.).
Failed uploading: uploading error: exit status 2
Comments
I may have solved part of the problem. The tutorial I was looking at (from the Elecrow GitHub repository) assumed a ESP32S3 Dev Module and spoke nothing of other possible chipsets. Turns out I have a ESP32-WROOM-DA XXN4 module. After much searching I found additional instructions on how to configure for it.
That resolved the wrong chip error.
I was still getting errors unable to verify flash chip connection. Until I turned down the baud rate to 115200. It now completes an upload of a simple test program.
It is painfully slow at this baud rate however I may be able to proceed with my project now.
Hello @dlv
Sorry for the inconvenience caused to you by the wrong document content. You can check this link:https://forum.elecrow.com/discussion/495/how-to-upload-the-esp32-display-factory-program-by-arduino-ide to learn how to compile and run the factory demo program. In step 6, screenshots of different board settings of different sizes are given.
What’s more, there are tutorials on other platforms in the wiki link that you may need: https://www.elecrow.com/wiki/index.php?title=ESP32_Display_2.8%27%27_Intelligent_Touch_Screen_Wi-Fi%26BLE_240*320_HMI_Display