>First of all, I want to know which board are you using for you development purpose? Means ESP32-Dev board V2 or any other ESP32 based custom board?
I am using the ESP-32S module from Ai-Thinker. It is pin equivalent with the ESP-WROOM-32. My setup is shown in the picture below, I have only wired up the module in a breadboard for now.
>Also, which firmware you have flashed in your ESP32 based board?
It is a fresh module, I haven't flashed anything yet. Should I?
>Also, which RTOS SDK you are using for your ESP32 development purpose?
>The error seem like that you are using ESP31 based SDK which was used on ESP31 bit board before releasing ESP32-idf SDK and board.
I have just followed the instructions in the getting started manual, and I have the most updated IDF from github.
>RoundRobin: Do you happen to have GPIO12 connected to something? Can you try disconnecting that pin?
No, nothing connected to that pin as of now
But after a lot of fiddling yesterday, I suddenly thought of using a common ground for the serial to USB converter and the ESP32. This actually helped me one step further, but I'm still having problems.
Flashing procedure:
1. Boot with the boot button pressed
The following is displayed:
rst:0x1 (POWERON_RESET),boot:0x0 (DOWNLOAD_BOOT(UART0/UART1/SDIO_FEI_FEO_V2))
waiting for download
2. Inside ~/workspace/01_hello_world/ I run
:
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)...
esptool.py v2.0-dev
Connecting...
Uploading stub...
Running stub...
Stub running...
Attaching SPI flash...
Configuring flash size...
Compressed 9824 bytes to 5356...
A fatal error occurred: Timed out waiting for packet content
/home/.../esp-idf/components/esptool_py/Makefile.projbuild:47: recipe for target 'flash' failed
make: *** [flash] Error 2
I have also run
with the same result
After flashing fails, boot in normal mode continue to display the following output:
>How?
What?
>
>>
How?
>
>
How?
>
>How?
What?
>
>>
How?
>
>>What?
How?
>
It seems like it is stuck in this mode, now
gives the following output:
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)...
esptool.py v2.0-dev
Connecting...
Uploading stub...
A fatal error occurred: Failed to write to target RAM (result was 0x1, 0x7, 0x0, 0x0)
/home/.../esp-idf/components/esptool_py/Makefile.projbuild:47: recipe for target 'flash' failed
make: *** [flash] Error 2
or sometimes
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)...
esptool.py v2.0-dev
Connecting...
Uploading stub...
A fatal error occurred: Response doesn't match request
/home/.../esp-idf/components/esptool_py/Makefile.projbuild:47: recipe for target 'flash' failed
make: *** [flash] Error 2
When I run
Code: Select all
./esptool.py --port /dev/ttyUSB0 read_flash_status
I get the following
esptool.py v2.0-dev
Connecting...
Detecting chip type... ESP32
A fatal error occurred: Timed out waiting for packet header
Seems a little bricked to me..