{"action":"closed","issue":{"url":"https://api.github.com/repos/leaflabs/libmaple/issues/109","labels_url":"https://api.github.com/repos/leaflabs/libmaple/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/leaflabs/libmaple/issues/109/comments","events_url":"https://api.github.com/repos/leaflabs/libmaple/issues/109/events","html_url":"https://github.com/leaflabs/libmaple/issues/109","id":60579669,"number":109,"title":"Freeze when erasing page and receiving serial data","user":{"login":"Gregwar","id":367022,"avatar_url":"https://avatars.githubusercontent.com/u/367022?v=3","gravatar_id":"","url":"https://api.github.com/users/Gregwar","html_url":"https://github.com/Gregwar","followers_url":"https://api.github.com/users/Gregwar/followers","following_url":"https://api.github.com/users/Gregwar/following{/other_user}","gists_url":"https://api.github.com/users/Gregwar/gists{/gist_id}","starred_url":"https://api.github.com/users/Gregwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gregwar/subscriptions","organizations_url":"https://api.github.com/users/Gregwar/orgs","repos_url":"https://api.github.com/users/Gregwar/repos","events_url":"https://api.github.com/users/Gregwar/events{/privacy}","received_events_url":"https://api.github.com/users/Gregwar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-10T22:23:59Z","updated_at":"2015-03-11T16:22:33Z","closed_at":"2015-03-11T16:22:33Z","body":"Hello,\r\n\r\nI'm working on an application where I need to change the flash. So, I erase pages and write bytes on-the-fly. \r\n\r\nThis is the erase page part:\r\n\r\n```c\r\nFLASH_BASE->CR |= FLASH_CR_PER;\r\nwhile (FLASH_BASE->SR & FLASH_SR_BSY);\r\n\r\nFLASH_BASE->AR = pageAddr;\r\nFLASH_BASE->CR |= FLASH_CR_STRT;\r\nwhile (FLASH_BASE->SR & FLASH_SR_BSY);\r\nFLASH_BASE->CR &= ~FLASH_CR_PER;\r\n    \r\nreturn true;\r\n```\r\n\r\nWhen there is serial data incoming in the same time, this results in a complete freeze of the chip just after starting the erasing.\r\n\r\nAny idea why?"}}