{"action":"closed","issue":{"url":"https://api.github.com/repos/micropython/micropython/issues/2138","repository_url":"https://api.github.com/repos/micropython/micropython","labels_url":"https://api.github.com/repos/micropython/micropython/issues/2138/labels{/name}","comments_url":"https://api.github.com/repos/micropython/micropython/issues/2138/comments","events_url":"https://api.github.com/repos/micropython/micropython/issues/2138/events","html_url":"https://github.com/micropython/micropython/issues/2138","id":157738111,"number":2138,"title":"esp8266: rtc.memory() crash if rtc memory is uninitialised (i.e. at power on)","user":{"login":"MarkR42","id":1682514,"avatar_url":"https://avatars.githubusercontent.com/u/1682514?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkR42","html_url":"https://github.com/MarkR42","followers_url":"https://api.github.com/users/MarkR42/followers","following_url":"https://api.github.com/users/MarkR42/following{/other_user}","gists_url":"https://api.github.com/users/MarkR42/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkR42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkR42/subscriptions","organizations_url":"https://api.github.com/users/MarkR42/orgs","repos_url":"https://api.github.com/users/MarkR42/repos","events_url":"https://api.github.com/users/MarkR42/events{/privacy}","received_events_url":"https://api.github.com/users/MarkR42/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-31T18:25:36Z","updated_at":"2016-06-01T10:35:32Z","closed_at":"2016-06-01T10:35:32Z","body":"Steps to reproduce:\r\n\r\n1. power off device\r\n\r\n2. Power on and enter at REPL:\r\n```\r\n\r\n>>> import machine\r\n>>> rtc = machine.RTC()\r\n>>> rtc.memory()\r\n\r\n```\r\n\r\nExpected result:\r\n\r\nReturns None, at least, looking at the source it looks like it should.\r\n\r\nActual result:\r\n\r\nCrash:\r\n\r\n```\r\nimport machine\r\n>>> rtc = machine.RTC()\r\n>>> rtc.memory()\r\n\r\n ets Jan  8 2013,rst cause:2, boot mode:(3,6)\r\n\r\nload 0x40100000, len 31628, room 16 \r\ntail 12\r\nchksum 0x53\r\nho 0 tail 12 room 4\r\nload 0x3ffe8000, len 1040, room 12 \r\ntail 4\r\nchksum 0x9f\r\nload 0x3ffe8410, len 3112, room 4 \r\ntail 4\r\nchksum 0xe8\r\ncsum 0xe8\r\n\r\n```"}}
{"actor":{"display_login":"dpgeorge"}}