{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/240","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/240/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/240/events","html_url":"https://github.com/esp8266/Arduino/issues/240","id":76408910,"number":240,"title":"EEPROM crashes","user":{"login":"holgerlembke","id":2034993,"avatar_url":"https://avatars.githubusercontent.com/u/2034993?v=3","gravatar_id":"","url":"https://api.github.com/users/holgerlembke","html_url":"https://github.com/holgerlembke","followers_url":"https://api.github.com/users/holgerlembke/followers","following_url":"https://api.github.com/users/holgerlembke/following{/other_user}","gists_url":"https://api.github.com/users/holgerlembke/gists{/gist_id}","starred_url":"https://api.github.com/users/holgerlembke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holgerlembke/subscriptions","organizations_url":"https://api.github.com/users/holgerlembke/orgs","repos_url":"https://api.github.com/users/holgerlembke/repos","events_url":"https://api.github.com/users/holgerlembke/events{/privacy}","received_events_url":"https://api.github.com/users/holgerlembke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-14T16:14:23Z","updated_at":"2015-05-14T17:09:56Z","closed_at":null,"body":"this small thing crashes my ESP8266-12 every time it runs. Results in reboot.\r\n\r\n#include <EEPROM.h>\r\n\r\nvoid eepromtest(void) {\r\n  EEPROM.begin(512);\r\n  \r\n  for (int i=0;i<10;i++) {\r\n    EEPROM.write(random(0,500),random(0,255));\r\n  }   \r\n  \r\n  EEPROM.end();\r\n}\r\n\r\n\r\nvoid setup() {\r\n  for (int i=0;i=100;i++) {\r\n    eepromtest();\r\n  \r\n  }\r\n}\r\n\r\nvoid loop() {\r\n  delay(1000);\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/102105075","html_url":"https://github.com/esp8266/Arduino/issues/240#issuecomment-102105075","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/240","id":102105075,"user":{"login":"marvinroger","id":990773,"avatar_url":"https://avatars.githubusercontent.com/u/990773?v=3","gravatar_id":"","url":"https://api.github.com/users/marvinroger","html_url":"https://github.com/marvinroger","followers_url":"https://api.github.com/users/marvinroger/followers","following_url":"https://api.github.com/users/marvinroger/following{/other_user}","gists_url":"https://api.github.com/users/marvinroger/gists{/gist_id}","starred_url":"https://api.github.com/users/marvinroger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marvinroger/subscriptions","organizations_url":"https://api.github.com/users/marvinroger/orgs","repos_url":"https://api.github.com/users/marvinroger/repos","events_url":"https://api.github.com/users/marvinroger/events{/privacy}","received_events_url":"https://api.github.com/users/marvinroger/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T17:09:56Z","updated_at":"2015-05-14T17:09:56Z","body":"I don't know if that might help, but I had similar problems while reading TOUT pin a lot of consecutive times. Try adding a yield() to the eepromtest(). Don't know why, but that solved it for me."}}