{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/arduino-esp32/issues/333","repository_url":"https://api.github.com/repos/espressif/arduino-esp32","labels_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/333/comments","events_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/333/events","html_url":"https://github.com/espressif/arduino-esp32/issues/333","id":224396181,"number":333,"title":"A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header","user":{"login":"croisez","id":1774281,"avatar_url":"https://avatars1.githubusercontent.com/u/1774281?v=4","gravatar_id":"","url":"https://api.github.com/users/croisez","html_url":"https://github.com/croisez","followers_url":"https://api.github.com/users/croisez/followers","following_url":"https://api.github.com/users/croisez/following{/other_user}","gists_url":"https://api.github.com/users/croisez/gists{/gist_id}","starred_url":"https://api.github.com/users/croisez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/croisez/subscriptions","organizations_url":"https://api.github.com/users/croisez/orgs","repos_url":"https://api.github.com/users/croisez/repos","events_url":"https://api.github.com/users/croisez/events{/privacy}","received_events_url":"https://api.github.com/users/croisez/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":64,"created_at":"2017-04-26T09:07:42Z","updated_at":"2018-03-01T04:10:43Z","closed_at":"2017-11-16T12:48:36Z","author_association":"NONE","body":"NB: I introduced same issue report at espressif/esptool, because I don't know actually where the problem could be: https://github.com/espressif/esptool/issues/198\r\n\r\nHello ESP32 lovers,\r\nI am facing a problem with a WEMS ESP32 dev board which I bough on Aliexpress very recently:\r\nhttps://fr.aliexpress.com/item/ESP32-Development-Board-WiFi-Bluetooth-Ultra-Low-Power-Consumption-Dual-Cores-ESP-32-ESP-32S-Board/32801337284.html\r\n\r\nI am able to flash it using Eclipse/esp-idf/xtensa-esp32-elf triplet. The /dev/tty.SLAB_USBtoUART device configured by \"make menuconfig\" makes the flashing process a success. Further on, my user application (one of the examples of esp-idf) starts and does what expected.\r\n\r\nBut, with Arduino IDE, this is not the same story. I have installed the toolchain as written at ESP32-Arduino github page, then selected \"ESP32 dev module\" as the board in Arduino IDE, and also selected /dev/tty.SLAB_USBtoUART as the flashing device.\r\nLike I did for the Eclipse case, I reset dev board with RST and BOOT buttons. I verified to get the \"DOWNLOAD\" invite on the terminal, then closed the terminal pushed on flash button of Arduino IDE. All I get in Arduino logs is the following:\r\n\r\n<PRE>\r\nSketch uses 118,890 bytes (11%) of program storage space. Maximum is 1,044,464 bytes.\r\nGlobal variables use 9,492 bytes (3%) of dynamic memory, leaving 285,420 bytes for local variables. Maximum is 294,912 bytes.\r\n/Users/lmc/Dropbox/arduino/hardware/espressif/esp32/tools/esptool --chip esp32 --port /dev/cu.SLAB_USBtoUART --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_freq 80m --flash_mode dio --flash_size 4MB 0x1000 /Users/lmc/Dropbox/arduino/hardware/espressif/esp32/tools/sdk/bin/bootloader.bin 0x8000 /var/folders/zx/4rs36y2j0315wny99n1j7fj80000gn/T/arduino_build_538507/Blink.ino.partitions.bin 0xe000 /Users/lmc/Dropbox/arduino/hardware/espressif/esp32/tools/partitions/boot_app0.bin 0x10000 /var/folders/zx/4rs36y2j0315wny99n1j7fj80000gn/T/arduino_build_538507/Blink.ino.bin \r\n\r\nesptool.py v2.0-beta\r\nConnecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____\r\n \r\nA fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header\r\nA fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header\r\n</PRE>\r\n\r\nThe programming does not detect the dev board in download mode, and the flashing does not start.\r\nAs a workaround, I hooked up an external FTDI adapter cable directly to the ESP32, and then Arduino IDE is able to start the flashing. But after, the Arduino sketch does not seems to run. My simple Blink sketch is not running (it toggles a GPIO and prints some text on Serial console).\r\n\r\nIssue 1: I saw a post about the problem of the FreeRTOS scheduler not started on Core1, or not enabled Core1, which could resolve the Arduino sketch not running (but I don't know how to configure it within ESP32-Arduino libraries/board from inside Arduino IDE. Could it be a efuse which should be reset to enable Core1 to start?\r\n\r\nIssue 2: Concerning my flashing issue, I don't understand why my dev module can be successfully programmed by using the Makefile from within Eclipse/esp-idf, while it ends-up with a timeout from within ArduinoIDE/ESP32-Arduino toolchain.\r\n\r\nAnyone could help me about my two issues?\r\nThank you so much."},"comment":{"url":"https://api.github.com/repos/espressif/arduino-esp32/issues/comments/369468459","html_url":"https://github.com/espressif/arduino-esp32/issues/333#issuecomment-369468459","issue_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/333","id":369468459,"user":{"login":"Rki009","id":33234231,"avatar_url":"https://avatars0.githubusercontent.com/u/33234231?v=4","gravatar_id":"","url":"https://api.github.com/users/Rki009","html_url":"https://github.com/Rki009","followers_url":"https://api.github.com/users/Rki009/followers","following_url":"https://api.github.com/users/Rki009/following{/other_user}","gists_url":"https://api.github.com/users/Rki009/gists{/gist_id}","starred_url":"https://api.github.com/users/Rki009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rki009/subscriptions","organizations_url":"https://api.github.com/users/Rki009/orgs","repos_url":"https://api.github.com/users/Rki009/repos","events_url":"https://api.github.com/users/Rki009/events{/privacy}","received_events_url":"https://api.github.com/users/Rki009/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T04:10:43Z","updated_at":"2018-03-01T04:10:43Z","author_association":"NONE","body":"I had timeout issues on my 2 ESP32 NodeMCUs. After some debugging I found that using a 10K pulldown on GPIO10 ( TXD1=GPIO10, Flash SD3) pin J1-17. Strange, but seems to solve the issue. When GPIO10 is pulled up I can never AUTO boot, always times out. I have to use the button. When GPIO10 is pulled down I never need to use the button."}}
{"actor":{"display_login":"Rki009"}}