Page 1 of 1

Wrover Kit failedd to upload

Posted: Fri Jun 02, 2017 11:44 am
by GAS1474
Hi
I'm trying to upload simple sketch to the board but once uploaded i get this messages and i'm not able anymore to communicate with the board.

Using arduino for ESP32 last release
the board is just blocked with RGB clor les showing 3 colors

Code: Select all

rst:0x10 (RTCWDT_RTC_RESET),boot:0x3e (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0008,len:8
load:0x3fff0010,len:2016
load:0x40078000,len:7780
ho 0 tail 12 room 4
load:0x40080000,len:252
entry 0x40080034
E (57) qio_mode: Failed to set QIE bit, not enabling QIO mode
E (58) flash_parts: partition 2 invalid magic number 0x10aa
E (58) boot: Failed to verify partition table
E (68) boot: load partition table error!
user code done

Re: Wrover Kit failedd to upload

Posted: Fri Jun 02, 2017 1:03 pm
by kolban
Can you flash the board with an ESP-IDF based application instead of Arduino?

Re: Wrover Kit failedd to upload

Posted: Fri Jun 02, 2017 1:06 pm
by GAS1474
well i need to add IDF stuff i tried esptool.py i managed to erase_flash so i can access it again from arduino
but once flashed even just by blink sketch it fail again with the same error about magic number

Re: Wrover Kit failedd to upload

Posted: Fri Jun 02, 2017 4:12 pm
by kolban
My loose thinking is to see if there is an issue with your board, your procedures or your environment. Arduino on top of ESP-IDF on top of WROVER is further removed from ESP-IDF on top of WROVER ... so if we can get a simple program written to the ESP-IDF environment compiled and flashed and it runs that will tell us something. If we find that an ESP-IDF application (by itself) fails (with whatever symptoms) that will tell us something else.

Re: Wrover Kit failedd to upload

Posted: Sat Jun 03, 2017 6:36 pm
by f.h-f.s.
What command is used to flash the device? Which board are you using?
Im thinking it is in QIO mode which does not work on all devices.
Try flashing with DIO

Code: Select all

python2 esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 115200 write_flash -z --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 /home/path/to/my/bootloader.bin 0x10000 /home/path/to/my/firmware.bin 0x8000 /home/path/to/my/partitionfile.bin

Re: Wrover Kit failedd to upload

Posted: Tue Jun 27, 2017 11:01 pm
by G6EJD-ESP32
Hi,
I get the same error when using Arduino IDE. I have over-written the boards supplied demo but my code does not run, did you solve the IDE issue please?

Re: Wrover Kit failedd to upload

Posted: Wed Jun 28, 2017 3:23 pm
by G6EJD-ESP32
I've solved this now by reducing the programming speed setting to 40MHz and setting DIO mode.