{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/95","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/95/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/95/events","html_url":"https://github.com/esp8266/Arduino/issues/95","id":70001779,"number":95,"title":"**SOLVED** Has anyone else experienced \"flakey\" uploads?  (ESPtool.exe is broken) - read to bottom","user":{"login":"tim-in-oakton","id":11150888,"avatar_url":"https://avatars.githubusercontent.com/u/11150888?v=3","gravatar_id":"","url":"https://api.github.com/users/tim-in-oakton","html_url":"https://github.com/tim-in-oakton","followers_url":"https://api.github.com/users/tim-in-oakton/followers","following_url":"https://api.github.com/users/tim-in-oakton/following{/other_user}","gists_url":"https://api.github.com/users/tim-in-oakton/gists{/gist_id}","starred_url":"https://api.github.com/users/tim-in-oakton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tim-in-oakton/subscriptions","organizations_url":"https://api.github.com/users/tim-in-oakton/orgs","repos_url":"https://api.github.com/users/tim-in-oakton/repos","events_url":"https://api.github.com/users/tim-in-oakton/events{/privacy}","received_events_url":"https://api.github.com/users/tim-in-oakton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":69,"created_at":"2015-04-22T02:24:53Z","updated_at":"2015-05-01T12:51:32Z","closed_at":null,"body":"My config is as follows:\r\n* ESP8266 -03 modules\r\n* Regulated 3.3v supply - arduino style battery input/USB regulator thing\r\n* 3.3v FTDI USB:serial converter\r\n\r\nOn my first module I successfully compiled and uploaded maybe 500 times - occasionally I would need to upload twice if the first upload failed to execute correctly.  This got worse over time, it seemed like restarting the Arduino IDE and rebooting my PC was some help (hard to prove, it was intemittent).  I did try to reflash with a minimal sketch as well, that didn't really seem to help.\r\nThe program is a datalogging app for a Beer Keg - maybe 1000 lines of code or so.  Not very big.\r\n\r\nRecently it got harder & harder to get a \"good\" upload (I used the serial monitor & wireless behavior to confirm if it was \"working\").  This morning I was completely unable to get an upload to work - the upload using the Arduino IDE would complete with no errors, but the uploaded executable image would not execute.\r\n\r\nUsing the Python ESPTool uploader, I was able to \"erase\" the flash, but not upload the 512K \"blank\" file - it would consistenly fail at 32% (hex800000).\r\nI replaced the ESP module with another, the FIRST upload worked fine and executed perfectly, when I made a minor change to the code  however it would upload with no errors but not execute.  Frustrating.\r\n\r\nThe IDE reports:\r\nSketch uses 205,912 bytes (39%) of program storage space. Maximum is 524,288 bytes.\r\nwarning: unsupported baud rate: 115200, using 115200\r\nUploading 38112 bytes from C:\\Users\\timm\\AppData\\Local\\Temp\\build7944810091012342573.tmp/Kegerator-v4.3.cpp_00000.bin to flash at 0x00000000\r\n......................................\r\nUploading 167848 bytes from C:\\Users\\timm\\AppData\\Local\\Temp\\build7944810091012342573.tmp/Kegerator-v4.3.cpp_40000.bin to flash at 0x00040000\r\n....................................................................................................................................................................\r\n\r\nI will try to upgrade the power supply to something I trust more than an off-brand Arduino-style regulator, but is this something that others have seen?  Are there any tricks to reliable upload&execute?\r\n\r\nI am using the 1.6.3 IDE with a GIT pull from maybe 2 weeks ago - have there been any changes to the upload functionality or to the linker directives?\r\n\r\nAny thoughts?  Not sure if I have a bug or a PEBCAK issue- are there any known \"gotchas\" to be aware of that complicate uploading?\r\nthanks!\r\ntim"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/98127059","html_url":"https://github.com/esp8266/Arduino/issues/95#issuecomment-98127059","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/95","id":98127059,"user":{"login":"duncan-a","id":11795653,"avatar_url":"https://avatars.githubusercontent.com/u/11795653?v=3","gravatar_id":"","url":"https://api.github.com/users/duncan-a","html_url":"https://github.com/duncan-a","followers_url":"https://api.github.com/users/duncan-a/followers","following_url":"https://api.github.com/users/duncan-a/following{/other_user}","gists_url":"https://api.github.com/users/duncan-a/gists{/gist_id}","starred_url":"https://api.github.com/users/duncan-a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncan-a/subscriptions","organizations_url":"https://api.github.com/users/duncan-a/orgs","repos_url":"https://api.github.com/users/duncan-a/repos","events_url":"https://api.github.com/users/duncan-a/events{/privacy}","received_events_url":"https://api.github.com/users/duncan-a/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T12:51:32Z","updated_at":"2015-05-01T12:51:32Z","body":"*sticilface* - well spotted. That was left over from being a debug when\neverything was screwed. As I went to rem it out, I noticed that I'd also\ngot \"Serial.write\" where I should have had \"Serial.println\" as a debug - so\na double thank you!!!\n\nSorry to hear that you're now suffering 'the problem'...\n\nOn 1 May 2015 at 14:13, sticilface <notifications@github.com> wrote:\n\n> @duncan-a <https://github.com/duncan-a>\n>\n> You've got a 1s delay in your main loop. Just take it out. Small delay(5)\n> ok, but that will stop your server from responding. I get approx 10-30k\n> loops per second on my code, you will be getting 1!\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/esp8266/Arduino/issues/95#issuecomment-98120741>.\n>\n"}}