7 inch Display Does not run after download

Hi,

I am using Arduino 1.8.19 and I am using the A7.0 Touch.ino after uploading the program I receive this in the serial monitor after reset. Note the Screen did run A-WIFI after uploading A7.0 Touch which ran on 1st attempt but on subsequent attempts no other program will now run.

Message after BOOT + RESET on serial monitor

ESP-ROM:esp32s3-20210327

Build:Mar 27 2021

rst:0x1 (POWERON),boot:0x0 (DOWNLOAD(USB/UART0))

waiting for download

Message on Arduino at Start of Upload

esptool.py v3.3-dev

Serial port /dev/ttyUSB0

Connecting....

Chip is ESP32-S3

Features: WiFi, BLE

Crystal is 40MHz

MAC: ec:da:3b:97:35:58

Uploading stub...

Running stub...

Stub running...

Configuring flash size...

Arduino Message on completion of Upload

Wrote 233040 bytes (128832 compressed) at 0x00010000 in 11.5 seconds (effective 162.3 kbit/s)...

Hash of data verified.

Leaving...

Hard resetting via RTS pin...

Message after RESET on Serial Monitor

ESP-ROM:esp32s3-20210327

Build:Mar 27 2021

rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)

SPIWP:0xee

mode:DIO, clock div:1

load:0x3fcd0108,len:0x43c

load:0x403b6000,len:0xbd0

load:0x403ba000,len:0x29c8

entry 0x403b61d8

E (48) gpio: gpio_set_level(226): GPIO output gpio_num error

E (48) gpio: gpio_set_level(226): GPIO output gpio_num error

E (58) gpio: gpio_set_level(226): GPIO output gpio_num error

E (59) gpio: gpio_set_level(226): GPIO output gpio_num error

E (64) gpio: gpio_set_level(226): GPIO output gpio_num error

Comments

  • Hello @DougWaterford ,

    Please check if the board setting is the as follows:


    And may I kindly ask which display drive you use? Is it Arduino_GFX or LovyanGFX? If it's Arduino_GFX, the version of esp32 package should be 2.0.3. Please refer to:

    This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.

    ESP32 HMI Demo Code Updated - compatible with new version of esp32 package


  • The Arduino settings are the same as your example except I am using the USB connection.

    I am trying to run the example in the ELCROW tutorial "A7.0 Touch.ino" see in bold.

    Note neither the A7.Touch.ino or the "touch.h" included library file call Arduino_GFX or LovyanGFX.

    A7.0 Touch

    #include "touch.h"

    void setup() {

     // put your setup code here, to run once:

     Serial.begin( 115200 ); /*初始化串口*/

     touch_init();

    }

    void loop() {

     // put your main code here, to run repeatedly:

     if (touch_has_signal())

     {

       if (touch_touched())

       {

         Serial.print( "Data x :" );

         Serial.println( touch_last_x );

         Serial.print( "Data y :" );

         Serial.println( touch_last_y );

       }

     }

    }

  • Further attempts to upload result in this arduino message note the tool settings are correct.


    Chip is ESP32-S3

     File "/home/douglas/.arduino15/packages/esp32/tools/esptool_py/3.3.0/esptool.py", line 5347, in <module>

    Features: WiFi, BLE

    Crystal is 40MHz

    MAC: ec:da:3b:97:35:58

    Uploading stub...

    Running stub...

    Stub running...

    Changing baud rate to 921600

    Changed.

    Configuring flash size...

       _main()

     File "/home/douglas/.arduino15/packages/esp32/tools/esptool_py/3.3.0/esptool.py", line 5340, in _main

       main()

     File "/home/douglas/.arduino15/packages/esp32/tools/esptool_py/3.3.0/esptool.py", line 4762, in main

       esp.flash_set_parameters(flash_size_bytes(args.flash_size))

     File "/home/douglas/.arduino15/packages/esp32/tools/esptool_py/3.3.0/esptool.py", line 1048, in flash_set_parameters

       self.check_command("set SPI params", ESP32ROM.ESP_SPI_SET_PARAMS,

     File "/home/douglas/.arduino15/packages/esp32/tools/esptool_py/3.3.0/esptool.py", line 495, in check_command

       val, data = self.command(op, data, chk, timeout=timeout)

                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

     File "/home/douglas/.arduino15/packages/esp32/tools/esptool_py/3.3.0/esptool.py", line 468, in command

       p = self.read()

           ^^^^^^^^^^^

     File "/home/douglas/.arduino15/packages/esp32/tools/esptool_py/3.3.0/esptool.py", line 413, in read

       return next(self._slip_reader)

              ^^^^^^^^^^^^^^^^^^^^^^^

    StopIteration

    An error occurred while uploading the sketch

  • I have tested the USB-Arduino connection with ESP32 DEV1 board no problems. I have a second unit but am reluctant to use it in case i have the same these were both purchased from ELCROW the last month.

  • After a sometime and in desperation I tried a higher upload baud rate and it worked I had been using 921600 and 115200 but then tried 230400 with success.

Sign In or Register to comment.