{"action":"closed","number":6859,"pull_request":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/6859","id":187090696,"html_url":"https://github.com/ARMmbed/mbed-os/pull/6859","diff_url":"https://github.com/ARMmbed/mbed-os/pull/6859.diff","patch_url":"https://github.com/ARMmbed/mbed-os/pull/6859.patch","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6859","number":6859,"state":"closed","locked":false,"title":"Error Handling and error coding","user":{"login":"SenRamakri","id":31017510,"avatar_url":"https://avatars0.githubusercontent.com/u/31017510?v=4","gravatar_id":"","url":"https://api.github.com/users/SenRamakri","html_url":"https://github.com/SenRamakri","followers_url":"https://api.github.com/users/SenRamakri/followers","following_url":"https://api.github.com/users/SenRamakri/following{/other_user}","gists_url":"https://api.github.com/users/SenRamakri/gists{/gist_id}","starred_url":"https://api.github.com/users/SenRamakri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SenRamakri/subscriptions","organizations_url":"https://api.github.com/users/SenRamakri/orgs","repos_url":"https://api.github.com/users/SenRamakri/repos","events_url":"https://api.github.com/users/SenRamakri/events{/privacy}","received_events_url":"https://api.github.com/users/SenRamakri/received_events","type":"User","site_admin":false},"body":"This is the implementation for Standardized error coding and handling for mbed-os.\r\nThe changes with this pull request implements standardized error code handling and error code definitions/encoding. With this, error handling is implemented as a Core-os service which captures and\r\nlogs the errors with context information. Each error code is captured with error location, error message, \r\nerror file(this is configurable as this can cause increase in binary size), calling thread info, module generating the error etc. Relevant APIs are provided to log and retrieve errors from error logging system.\r\nA build time flag has been provided to switch off error logging system on memory constrained platforms.  \r\nError reporting itself is logically separated and implemented in mbed_error_reporting.c/h. By doing this both exception handling and error handling can use the same reporting infrastructure. A sample error report is as below. Note that error status value captures error type, entity and error code. Error reporting prints these values separately as well to enable developers to search the source tree with error code.\r\nError handling service also provides an API to save the error log in file system if required. \r\n\r\n    ++ MbedOS Error Info ++\r\n    Error Status: 0x80040103\r\n    Error Code: 259\r\n    Error Entity: 04\r\n    Error Message: HAL Entity error\r\n    Error Location: 0x000067C7\r\n    Error Value: 0x00005566\r\n    Current Thread: Id: 0x200024A8 EntryFn: 0x0000FB0D StackSize: 0x00001000 StackMem: 0x200014A8 SP: 0x2002FFD8\r\n    -- MbedOS Error Info --\r\n\r\nThe implementation is tested using the Greentea tests under TESTS/mbed_platform/error_handling.\r\nNote that exception handling and reporting testing cannot be done using Greentea and was manually tested.\r\n\r\n### Pull request type\r\n    [ ] Fix\r\n    [ ] Refactor\r\n    [ ] New target\r\n    [X] Feature\r\n    [ ] Breaking change\r\n\r\nThe APIs/data structures/macros are all documented using Doxygen. In addition handbook documentation will also be generated for release. \r\n\r\nOverall impact of this feature is ~1K(ROM) including logging. Logging can be disabled and if disabled \r\nthe overall impact would be around 0.75K.\r\n  \r\n","created_at":"2018-05-10T03:12:33Z","updated_at":"2018-05-22T17:50:49Z","closed_at":"2018-05-22T17:50:49Z","merged_at":null,"merge_commit_sha":"6ecf07262cda6079738d5af7cda88e34adf69f93","assignee":null,"assignees":[],"requested_reviewers":[{"login":"cmonr","id":260086,"avatar_url":"https://avatars1.githubusercontent.com/u/260086?v=4","gravatar_id":"","url":"https://api.github.com/users/cmonr","html_url":"https://github.com/cmonr","followers_url":"https://api.github.com/users/cmonr/followers","following_url":"https://api.github.com/users/cmonr/following{/other_user}","gists_url":"https://api.github.com/users/cmonr/gists{/gist_id}","starred_url":"https://api.github.com/users/cmonr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmonr/subscriptions","organizations_url":"https://api.github.com/users/cmonr/orgs","repos_url":"https://api.github.com/users/cmonr/repos","events_url":"https://api.github.com/users/cmonr/events{/privacy}","received_events_url":"https://api.github.com/users/cmonr/received_events","type":"User","site_admin":false},{"login":"pan-","id":409941,"avatar_url":"https://avatars3.githubusercontent.com/u/409941?v=4","gravatar_id":"","url":"https://api.github.com/users/pan-","html_url":"https://github.com/pan-","followers_url":"https://api.github.com/users/pan-/followers","following_url":"https://api.github.com/users/pan-/following{/other_user}","gists_url":"https://api.github.com/users/pan-/gists{/gist_id}","starred_url":"https://api.github.com/users/pan-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pan-/subscriptions","organizations_url":"https://api.github.com/users/pan-/orgs","repos_url":"https://api.github.com/users/pan-/repos","events_url":"https://api.github.com/users/pan-/events{/privacy}","received_events_url":"https://api.github.com/users/pan-/received_events","type":"User","site_admin":false},{"login":"sg-","id":496002,"avatar_url":"https://avatars1.githubusercontent.com/u/496002?v=4","gravatar_id":"","url":"https://api.github.com/users/sg-","html_url":"https://github.com/sg-","followers_url":"https://api.github.com/users/sg-/followers","following_url":"https://api.github.com/users/sg-/following{/other_user}","gists_url":"https://api.github.com/users/sg-/gists{/gist_id}","starred_url":"https://api.github.com/users/sg-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sg-/subscriptions","organizations_url":"https://api.github.com/users/sg-/orgs","repos_url":"https://api.github.com/users/sg-/repos","events_url":"https://api.github.com/users/sg-/events{/privacy}","received_events_url":"https://api.github.com/users/sg-/received_events","type":"User","site_admin":false},{"login":"kegilbert","id":1060940,"avatar_url":"https://avatars0.githubusercontent.com/u/1060940?v=4","gravatar_id":"","url":"https://api.github.com/users/kegilbert","html_url":"https://github.com/kegilbert","followers_url":"https://api.github.com/users/kegilbert/followers","following_url":"https://api.github.com/users/kegilbert/following{/other_user}","gists_url":"https://api.github.com/users/kegilbert/gists{/gist_id}","starred_url":"https://api.github.com/users/kegilbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kegilbert/subscriptions","organizations_url":"https://api.github.com/users/kegilbert/orgs","repos_url":"https://api.github.com/users/kegilbert/repos","events_url":"https://api.github.com/users/kegilbert/events{/privacy}","received_events_url":"https://api.github.com/users/kegilbert/received_events","type":"User","site_admin":false},{"login":"kjbracey-arm","id":11025917,"avatar_url":"https://avatars3.githubusercontent.com/u/11025917?v=4","gravatar_id":"","url":"https://api.github.com/users/kjbracey-arm","html_url":"https://github.com/kjbracey-arm","followers_url":"https://api.github.com/users/kjbracey-arm/followers","following_url":"https://api.github.com/users/kjbracey-arm/following{/other_user}","gists_url":"https://api.github.com/users/kjbracey-arm/gists{/gist_id}","starred_url":"https://api.github.com/users/kjbracey-arm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjbracey-arm/subscriptions","organizations_url":"https://api.github.com/users/kjbracey-arm/orgs","repos_url":"https://api.github.com/users/kjbracey-arm/repos","events_url":"https://api.github.com/users/kjbracey-arm/events{/privacy}","received_events_url":"https://api.github.com/users/kjbracey-arm/received_events","type":"User","site_admin":false},{"login":"yossi2le","id":36073365,"avatar_url":"https://avatars1.githubusercontent.com/u/36073365?v=4","gravatar_id":"","url":"https://api.github.com/users/yossi2le","html_url":"https://github.com/yossi2le","followers_url":"https://api.github.com/users/yossi2le/followers","following_url":"https://api.github.com/users/yossi2le/following{/other_user}","gists_url":"https://api.github.com/users/yossi2le/gists{/gist_id}","starred_url":"https://api.github.com/users/yossi2le/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yossi2le/subscriptions","organizations_url":"https://api.github.com/users/yossi2le/orgs","repos_url":"https://api.github.com/users/yossi2le/repos","events_url":"https://api.github.com/users/yossi2le/events{/privacy}","received_events_url":"https://api.github.com/users/yossi2le/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":144902129,"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/needs:%20work","name":"needs: work","color":"fbca04","default":false},{"id":858594596,"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/release-version:%205.9.0-rc1","name":"release-version: 5.9.0-rc1","color":"fef2c0","default":false},{"id":450730255,"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/scope:%20feature","name":"scope: feature","color":"c2e0c6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/6859/commits","review_comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/6859/comments","review_comment_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6859/comments","statuses_url":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/7392504dfb29032f4a07cafa58440b8b615254d9","head":{"label":"SenRamakri:sen_ErrorHandling","ref":"sen_ErrorHandling","sha":"7392504dfb29032f4a07cafa58440b8b615254d9","user":{"login":"SenRamakri","id":31017510,"avatar_url":"https://avatars0.githubusercontent.com/u/31017510?v=4","gravatar_id":"","url":"https://api.github.com/users/SenRamakri","html_url":"https://github.com/SenRamakri","followers_url":"https://api.github.com/users/SenRamakri/followers","following_url":"https://api.github.com/users/SenRamakri/following{/other_user}","gists_url":"https://api.github.com/users/SenRamakri/gists{/gist_id}","starred_url":"https://api.github.com/users/SenRamakri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SenRamakri/subscriptions","organizations_url":"https://api.github.com/users/SenRamakri/orgs","repos_url":"https://api.github.com/users/SenRamakri/repos","events_url":"https://api.github.com/users/SenRamakri/events{/privacy}","received_events_url":"https://api.github.com/users/SenRamakri/received_events","type":"User","site_admin":false},"repo":{"id":100415897,"name":"mbed-os","full_name":"SenRamakri/mbed-os","owner":{"login":"SenRamakri","id":31017510,"avatar_url":"https://avatars0.githubusercontent.com/u/31017510?v=4","gravatar_id":"","url":"https://api.github.com/users/SenRamakri","html_url":"https://github.com/SenRamakri","followers_url":"https://api.github.com/users/SenRamakri/followers","following_url":"https://api.github.com/users/SenRamakri/following{/other_user}","gists_url":"https://api.github.com/users/SenRamakri/gists{/gist_id}","starred_url":"https://api.github.com/users/SenRamakri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SenRamakri/subscriptions","organizations_url":"https://api.github.com/users/SenRamakri/orgs","repos_url":"https://api.github.com/users/SenRamakri/repos","events_url":"https://api.github.com/users/SenRamakri/events{/privacy}","received_events_url":"https://api.github.com/users/SenRamakri/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SenRamakri/mbed-os","description":"ARM mbed OS is a platform operating system designed for the internet of things","fork":true,"url":"https://api.github.com/repos/SenRamakri/mbed-os","forks_url":"https://api.github.com/repos/SenRamakri/mbed-os/forks","keys_url":"https://api.github.com/repos/SenRamakri/mbed-os/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SenRamakri/mbed-os/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SenRamakri/mbed-os/teams","hooks_url":"https://api.github.com/repos/SenRamakri/mbed-os/hooks","issue_events_url":"https://api.github.com/repos/SenRamakri/mbed-os/issues/events{/number}","events_url":"https://api.github.com/repos/SenRamakri/mbed-os/events","assignees_url":"https://api.github.com/repos/SenRamakri/mbed-os/assignees{/user}","branches_url":"https://api.github.com/repos/SenRamakri/mbed-os/branches{/branch}","tags_url":"https://api.github.com/repos/SenRamakri/mbed-os/tags","blobs_url":"https://api.github.com/repos/SenRamakri/mbed-os/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SenRamakri/mbed-os/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SenRamakri/mbed-os/git/refs{/sha}","trees_url":"https://api.github.com/repos/SenRamakri/mbed-os/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SenRamakri/mbed-os/statuses/{sha}","languages_url":"https://api.github.com/repos/SenRamakri/mbed-os/languages","stargazers_url":"https://api.github.com/repos/SenRamakri/mbed-os/stargazers","contributors_url":"https://api.github.com/repos/SenRamakri/mbed-os/contributors","subscribers_url":"https://api.github.com/repos/SenRamakri/mbed-os/subscribers","subscription_url":"https://api.github.com/repos/SenRamakri/mbed-os/subscription","commits_url":"https://api.github.com/repos/SenRamakri/mbed-os/commits{/sha}","git_commits_url":"https://api.github.com/repos/SenRamakri/mbed-os/git/commits{/sha}","comments_url":"https://api.github.com/repos/SenRamakri/mbed-os/comments{/number}","issue_comment_url":"https://api.github.com/repos/SenRamakri/mbed-os/issues/comments{/number}","contents_url":"https://api.github.com/repos/SenRamakri/mbed-os/contents/{+path}","compare_url":"https://api.github.com/repos/SenRamakri/mbed-os/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SenRamakri/mbed-os/merges","archive_url":"https://api.github.com/repos/SenRamakri/mbed-os/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SenRamakri/mbed-os/downloads","issues_url":"https://api.github.com/repos/SenRamakri/mbed-os/issues{/number}","pulls_url":"https://api.github.com/repos/SenRamakri/mbed-os/pulls{/number}","milestones_url":"https://api.github.com/repos/SenRamakri/mbed-os/milestones{/number}","notifications_url":"https://api.github.com/repos/SenRamakri/mbed-os/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SenRamakri/mbed-os/labels{/name}","releases_url":"https://api.github.com/repos/SenRamakri/mbed-os/releases{/id}","deployments_url":"https://api.github.com/repos/SenRamakri/mbed-os/deployments","created_at":"2017-08-15T20:16:33Z","updated_at":"2017-08-15T20:18:43Z","pushed_at":"2018-05-22T17:45:23Z","git_url":"git://github.com/SenRamakri/mbed-os.git","ssh_url":"git@github.com:SenRamakri/mbed-os.git","clone_url":"https://github.com/SenRamakri/mbed-os.git","svn_url":"https://github.com/SenRamakri/mbed-os","homepage":"https://mbed.com","size":203049,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ARMmbed:master","ref":"master","sha":"db73ed0751a278d46ae2333629fdeb1cf7dd7fa4","user":{"login":"ARMmbed","id":8916057,"avatar_url":"https://avatars3.githubusercontent.com/u/8916057?v=4","gravatar_id":"","url":"https://api.github.com/users/ARMmbed","html_url":"https://github.com/ARMmbed","followers_url":"https://api.github.com/users/ARMmbed/followers","following_url":"https://api.github.com/users/ARMmbed/following{/other_user}","gists_url":"https://api.github.com/users/ARMmbed/gists{/gist_id}","starred_url":"https://api.github.com/users/ARMmbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARMmbed/subscriptions","organizations_url":"https://api.github.com/users/ARMmbed/orgs","repos_url":"https://api.github.com/users/ARMmbed/repos","events_url":"https://api.github.com/users/ARMmbed/events{/privacy}","received_events_url":"https://api.github.com/users/ARMmbed/received_events","type":"Organization","site_admin":false},"repo":{"id":8270972,"name":"mbed-os","full_name":"ARMmbed/mbed-os","owner":{"login":"ARMmbed","id":8916057,"avatar_url":"https://avatars3.githubusercontent.com/u/8916057?v=4","gravatar_id":"","url":"https://api.github.com/users/ARMmbed","html_url":"https://github.com/ARMmbed","followers_url":"https://api.github.com/users/ARMmbed/followers","following_url":"https://api.github.com/users/ARMmbed/following{/other_user}","gists_url":"https://api.github.com/users/ARMmbed/gists{/gist_id}","starred_url":"https://api.github.com/users/ARMmbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARMmbed/subscriptions","organizations_url":"https://api.github.com/users/ARMmbed/orgs","repos_url":"https://api.github.com/users/ARMmbed/repos","events_url":"https://api.github.com/users/ARMmbed/events{/privacy}","received_events_url":"https://api.github.com/users/ARMmbed/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ARMmbed/mbed-os","description":"ARM Mbed OS is a platform operating system designed for the internet of things","fork":false,"url":"https://api.github.com/repos/ARMmbed/mbed-os","forks_url":"https://api.github.com/repos/ARMmbed/mbed-os/forks","keys_url":"https://api.github.com/repos/ARMmbed/mbed-os/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ARMmbed/mbed-os/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ARMmbed/mbed-os/teams","hooks_url":"https://api.github.com/repos/ARMmbed/mbed-os/hooks","issue_events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/events{/number}","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/events","assignees_url":"https://api.github.com/repos/ARMmbed/mbed-os/assignees{/user}","branches_url":"https://api.github.com/repos/ARMmbed/mbed-os/branches{/branch}","tags_url":"https://api.github.com/repos/ARMmbed/mbed-os/tags","blobs_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/refs{/sha}","trees_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/{sha}","languages_url":"https://api.github.com/repos/ARMmbed/mbed-os/languages","stargazers_url":"https://api.github.com/repos/ARMmbed/mbed-os/stargazers","contributors_url":"https://api.github.com/repos/ARMmbed/mbed-os/contributors","subscribers_url":"https://api.github.com/repos/ARMmbed/mbed-os/subscribers","subscription_url":"https://api.github.com/repos/ARMmbed/mbed-os/subscription","commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/commits{/sha}","git_commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/commits{/sha}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/comments{/number}","issue_comment_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments{/number}","contents_url":"https://api.github.com/repos/ARMmbed/mbed-os/contents/{+path}","compare_url":"https://api.github.com/repos/ARMmbed/mbed-os/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ARMmbed/mbed-os/merges","archive_url":"https://api.github.com/repos/ARMmbed/mbed-os/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ARMmbed/mbed-os/downloads","issues_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues{/number}","pulls_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls{/number}","milestones_url":"https://api.github.com/repos/ARMmbed/mbed-os/milestones{/number}","notifications_url":"https://api.github.com/repos/ARMmbed/mbed-os/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/labels{/name}","releases_url":"https://api.github.com/repos/ARMmbed/mbed-os/releases{/id}","deployments_url":"https://api.github.com/repos/ARMmbed/mbed-os/deployments","created_at":"2013-02-18T15:23:11Z","updated_at":"2018-05-22T16:00:26Z","pushed_at":"2018-05-22T17:47:41Z","git_url":"git://github.com/ARMmbed/mbed-os.git","ssh_url":"git@github.com:ARMmbed/mbed-os.git","clone_url":"https://github.com/ARMmbed/mbed-os.git","svn_url":"https://github.com/ARMmbed/mbed-os","homepage":"https://mbed.com","size":212455,"stargazers_count":1663,"watchers_count":1663,"language":"C","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1455,"mirror_url":null,"archived":false,"open_issues_count":476,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":1455,"open_issues":476,"watchers":1663,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/6859"},"html":{"href":"https://github.com/ARMmbed/mbed-os/pull/6859"},"issue":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6859"},"comments":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6859/comments"},"review_comments":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/6859/comments"},"review_comment":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/6859/commits"},"statuses":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/7392504dfb29032f4a07cafa58440b8b615254d9"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"unstable","merged_by":null,"comments":31,"review_comments":130,"maintainer_can_modify":false,"commits":9,"additions":2389,"deletions":226,"changed_files":22}}
{"actor":{"display_login":"SenRamakri"}}