{"action":"created","issue":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/1880","repository_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota","labels_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/1880/labels{/name}","comments_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/1880/comments","events_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/1880/events","html_url":"https://github.com/arendst/Sonoff-Tasmota/issues/1880","id":296283842,"number":1880,"title":"Uploading in atom/platform.io yields a warning: espcomm_sync failed, error: espcomm_open, failed error: espcomm_upload_mem failed","user":{"login":"wsw70","id":1345886,"avatar_url":"https://avatars2.githubusercontent.com/u/1345886?v=4","gravatar_id":"","url":"https://api.github.com/users/wsw70","html_url":"https://github.com/wsw70","followers_url":"https://api.github.com/users/wsw70/followers","following_url":"https://api.github.com/users/wsw70/following{/other_user}","gists_url":"https://api.github.com/users/wsw70/gists{/gist_id}","starred_url":"https://api.github.com/users/wsw70/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsw70/subscriptions","organizations_url":"https://api.github.com/users/wsw70/orgs","repos_url":"https://api.github.com/users/wsw70/repos","events_url":"https://api.github.com/users/wsw70/events{/privacy}","received_events_url":"https://api.github.com/users/wsw70/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-02-12T07:16:05Z","updated_at":"2018-03-03T17:46:41Z","closed_at":"2018-03-03T17:45:50Z","author_association":"NONE","body":"I successfully [installed and built](https://github.com/arendst/Sonoff-Tasmota/wiki/Beginner-Guide---Create-your-own-Firmware-Build) the firmware (thanks to feedback from @Jason2866).\r\n\r\nI then tried to [upload](https://github.com/arendst/Sonoff-Tasmota/wiki/Upload) it to my Sanoff Basic, the operation failed with \r\n\r\n```\r\n(...)\r\n|-- <ArduinoJson> v5.11.2\r\n|-- <ESP8266HTTPClient> v1.1\r\n|   |-- <ESP8266WiFi> v1.0\r\n|-- <Ticker> v1.0\r\nCompiling .pioenvs\\sonoff\\src\\sonoff.ino.o\r\nLinking .pioenvs\\sonoff\\firmware.elf\r\nChecking program size\r\ntext       data     bss     dec     hex filename\r\n492771    10032   41328  544131   84d83 .pioenvs\\sonoff\\firmware.elf\r\nBuilding .pioenvs\\sonoff\\firmware.bin\r\nConfiguring upload protocol...\r\nLooking for upload port...\r\nAuto-detected: COM6\r\nUploading .pioenvs\\sonoff\\firmware.bin\r\nwarning: espcomm_sync failed\r\nerror: espcomm_open failed\r\nerror: espcomm_upload_mem failed\r\n\r\n```\r\n\r\nThere are various advice on Internet about this error, I went to probably all of them, notably:\r\n\r\n- making sure to press the button before connecting the USB to Serial bridge\r\n- trying with `TX-TX,RX-RX` and `TX-RX,TX-RX` wiring\r\n- tried a different USB port (USB3 and USB2)\r\n\r\nI had a look at the verbose version of the flasing process (`pio run -v -t upload`) :\r\n\r\n```\r\n(...)\r\nChecking program size\r\ntext       data     bss     dec     hex filename\r\n492771    10032   41328  544131   84d83 .pioenvs\\sonoff\\firmware.elf\r\n\"esptool\" -eo \"C:\\Users\\yop\\.platformio\\packages\\framework-arduinoespressif8266\\bootloaders\\eboot\\eboot.elf\" -bo .pioenvs\\sonoff\\firmware\r\n.bin -bm dout -bf 40 -bz 1M -bs .text -bp 4096 -ec -eo .pioenvs\\sonoff\\firmware.elf -bs .irom0.text -bs .text -bs .data -bs .rodata -bc -\r\nec\r\nConfiguring upload protocol...\r\n\r\nMethodWrapper([\"upload\"], [\".pioenvs\\sonoff\\firmware.bin\"])\r\nAuto-detected: COM6\r\nesptool -vv -cd ck -cb 115200 -cp \"COM6\" -cf .pioenvs\\sonoff\\firmware.bin\r\nesptool v0.4.9 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>\r\nsetting board to ck\r\nsetting baudrate from 115200 to 115200\r\nsetting port from COM1 to COM6\r\nespcomm_upload_file\r\nespcomm_upload_mem\r\nsetting serial port timeouts to 1000 ms\r\nopening bootloader\r\nresetting board\r\ntrying to connect\r\nflush start*\r\n** [upload] Error -1setting serial port timeouts to 1 ms\r\n\r\nsetting serial port timeouts to 1000 ms\r\nflush complete\r\nespcomm_send_command: sending command header\r\nespcomm_send_command: sending command payload\r\nread 0, requested 1\r\ntrying to connect\r\nflush start\r\n(...)\r\n```\r\n\r\n**I am at loss what to do next.** \r\n\r\nShould I try to flash it with the Arduino? (using the compiled firmware, not sure yet how to combine both)\r\n\r\nOr is there a step in the flashing process I missed? A serial baud rate setting perhaps?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/comments/370166187","html_url":"https://github.com/arendst/Sonoff-Tasmota/issues/1880#issuecomment-370166187","issue_url":"https://api.github.com/repos/arendst/Sonoff-Tasmota/issues/1880","id":370166187,"user":{"login":"wsw70","id":1345886,"avatar_url":"https://avatars2.githubusercontent.com/u/1345886?v=4","gravatar_id":"","url":"https://api.github.com/users/wsw70","html_url":"https://github.com/wsw70","followers_url":"https://api.github.com/users/wsw70/followers","following_url":"https://api.github.com/users/wsw70/following{/other_user}","gists_url":"https://api.github.com/users/wsw70/gists{/gist_id}","starred_url":"https://api.github.com/users/wsw70/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsw70/subscriptions","organizations_url":"https://api.github.com/users/wsw70/orgs","repos_url":"https://api.github.com/users/wsw70/repos","events_url":"https://api.github.com/users/wsw70/events{/privacy}","received_events_url":"https://api.github.com/users/wsw70/received_events","type":"User","site_admin":false},"created_at":"2018-03-03T17:46:41Z","updated_at":"2018-03-03T17:46:41Z","author_association":"NONE","body":"@miley786 thank you for the kind proposal for help - I finally managed to flash using `esptool` (description above)"}}
{"actor":{"display_login":"wsw70"}}