{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/601","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/601/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/601/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/601/events","html_url":"https://github.com/esp8266/Arduino/issues/601","id":96914928,"number":601,"title":"AnalogRead crashes and Reboots ESP8266","user":{"login":"iisfaq","id":5828178,"avatar_url":"https://avatars.githubusercontent.com/u/5828178?v=3","gravatar_id":"","url":"https://api.github.com/users/iisfaq","html_url":"https://github.com/iisfaq","followers_url":"https://api.github.com/users/iisfaq/followers","following_url":"https://api.github.com/users/iisfaq/following{/other_user}","gists_url":"https://api.github.com/users/iisfaq/gists{/gist_id}","starred_url":"https://api.github.com/users/iisfaq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iisfaq/subscriptions","organizations_url":"https://api.github.com/users/iisfaq/orgs","repos_url":"https://api.github.com/users/iisfaq/repos","events_url":"https://api.github.com/users/iisfaq/events{/privacy}","received_events_url":"https://api.github.com/users/iisfaq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-23T22:06:19Z","updated_at":"2015-07-23T22:35:50Z","closed_at":null,"body":"I am using the latest \"stable\" code from today.\r\n\r\nThe following causes the ESP8266 to crash and reboot\r\n\r\n```\r\nvoid setup() {\r\n  Serial.begin(115200);\r\n  Serial.println(\"ESP8266\");\r\n}\r\n\r\nvoid loop()\r\n{\r\n  long x = millis();\r\n  for (int i = 0; i < 25000; i++)\r\n    analogRead(A0);\r\n  long y = millis();\r\n  long  t = y - x;\r\n  Serial.print(\"Time=\");\r\n  Serial.println(t);\r\n}\r\n````\r\n\r\nSerial Output\r\n\r\nESP8266\r\n\r\nctx: cont \r\nsp: 3ffe9a60 end: 3ffe9cb0 offset: 01b0\r\n\r\n>>>stack>>>\r\n3ffe9c10:  40213be4 00000004 00000000 4020d111  \r\n3ffe9c20:  4020d1b9 60000a00 3fff0d50 00000218  \r\n3ffe9c30:  04390439 04280433 0428041f 04370435  \r\n3ffe9c40:  3fffdc20 fe000000 fe000000 402039bc  \r\n3ffe9c50:  00004146 000000d7 3fffdc20 3ffe9cdc  \r\n3ffe9c60:  00000000 3fff3640 3ffe9d08 40202b84  \r\n3ffe9c70:  40201180 00000000 3ffe9d08 40202bf0  \r\n3ffe9c80:  3fffdc20 00000000 3ffe9cd4 40201d2d  \r\n3ffe9c90:  00000000 00000000 3ffe9cd4 4020186e  \r\n3ffe9ca0:  00000000 00000000 3ffe8c90 40100118  \r\n<<<stack<<<\r\n\r\n ets Jan  8 2013,rst cause:2, boot mode:(3,7)\r\n\r\nload 0x4010f000, len 1264, room 16 \r\ntail 0\r\nchksum 0x42\r\ncsum 0x42\r\n~ld"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/124256869","html_url":"https://github.com/esp8266/Arduino/issues/601#issuecomment-124256869","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/601","id":124256869,"user":{"login":"igrr","id":4349050,"avatar_url":"https://avatars.githubusercontent.com/u/4349050?v=3","gravatar_id":"","url":"https://api.github.com/users/igrr","html_url":"https://github.com/igrr","followers_url":"https://api.github.com/users/igrr/followers","following_url":"https://api.github.com/users/igrr/following{/other_user}","gists_url":"https://api.github.com/users/igrr/gists{/gist_id}","starred_url":"https://api.github.com/users/igrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igrr/subscriptions","organizations_url":"https://api.github.com/users/igrr/orgs","repos_url":"https://api.github.com/users/igrr/repos","events_url":"https://api.github.com/users/igrr/events{/privacy}","received_events_url":"https://api.github.com/users/igrr/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T22:35:50Z","updated_at":"2015-07-23T22:35:50Z","body":"Whether an external ADC is necessary depends on your application, but I'm sure that with an external SPI ADC you will likely be able to improve both throughput and accuracy. Even an I2C ADC might be faster."}}