{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/arduino/OpenOCD/pulls/2","id":77275472,"html_url":"https://github.com/arduino/OpenOCD/pull/2","diff_url":"https://github.com/arduino/OpenOCD/pull/2.diff","patch_url":"https://github.com/arduino/OpenOCD/pull/2.patch","issue_url":"https://api.github.com/repos/arduino/OpenOCD/issues/2","number":2,"state":"open","locked":false,"title":"Partition the first flash page","user":{"login":"facchinm","id":8843437,"avatar_url":"https://avatars.githubusercontent.com/u/8843437?v=3","gravatar_id":"","url":"https://api.github.com/users/facchinm","html_url":"https://github.com/facchinm","followers_url":"https://api.github.com/users/facchinm/followers","following_url":"https://api.github.com/users/facchinm/following{/other_user}","gists_url":"https://api.github.com/users/facchinm/gists{/gist_id}","starred_url":"https://api.github.com/users/facchinm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facchinm/subscriptions","organizations_url":"https://api.github.com/users/facchinm/orgs","repos_url":"https://api.github.com/users/facchinm/repos","events_url":"https://api.github.com/users/facchinm/events{/privacy}","received_events_url":"https://api.github.com/users/facchinm/received_events","type":"User","site_admin":false},"body":"SAMD microcontrollers can protect the bootloader flash using\r\nat91samd bootloader [size] command\r\n\r\nIn processors with big flash like SAMD21G18A the minimum flash partition is\r\n256kB / 16 = 16kB, which is way bigger than minimum bootloader size.\r\n\r\nWhen a \"load\" is executed during gdb debugging session, if the .text section\r\nstarts before 0x4000 (16kB), the entire first flash page gets erased.\r\n\r\nThis fails if the page is protected via the bootloader command.\r\n\r\nThis patch partitions the first flash page into logical smaller chunks, so\r\nthe \"load\" command only erases the relevant pages.\r\n\r\nIf the flash page is smaller/equal than the minimum bootloader size, do nothing.","created_at":"2016-07-13T11:52:49Z","updated_at":"2016-07-13T11:52:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/arduino/OpenOCD/pulls/2/commits","review_comments_url":"https://api.github.com/repos/arduino/OpenOCD/pulls/2/comments","review_comment_url":"https://api.github.com/repos/arduino/OpenOCD/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arduino/OpenOCD/issues/2/comments","statuses_url":"https://api.github.com/repos/arduino/OpenOCD/statuses/d6cb4bf833a32b87896f1745c01bba594d1cec26","head":{"label":"facchinm:flash_partition","ref":"flash_partition","sha":"d6cb4bf833a32b87896f1745c01bba594d1cec26","user":{"login":"facchinm","id":8843437,"avatar_url":"https://avatars.githubusercontent.com/u/8843437?v=3","gravatar_id":"","url":"https://api.github.com/users/facchinm","html_url":"https://github.com/facchinm","followers_url":"https://api.github.com/users/facchinm/followers","following_url":"https://api.github.com/users/facchinm/following{/other_user}","gists_url":"https://api.github.com/users/facchinm/gists{/gist_id}","starred_url":"https://api.github.com/users/facchinm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facchinm/subscriptions","organizations_url":"https://api.github.com/users/facchinm/orgs","repos_url":"https://api.github.com/users/facchinm/repos","events_url":"https://api.github.com/users/facchinm/events{/privacy}","received_events_url":"https://api.github.com/users/facchinm/received_events","type":"User","site_admin":false},"repo":{"id":44599981,"name":"OpenOCD","full_name":"facchinm/OpenOCD","owner":{"login":"facchinm","id":8843437,"avatar_url":"https://avatars.githubusercontent.com/u/8843437?v=3","gravatar_id":"","url":"https://api.github.com/users/facchinm","html_url":"https://github.com/facchinm","followers_url":"https://api.github.com/users/facchinm/followers","following_url":"https://api.github.com/users/facchinm/following{/other_user}","gists_url":"https://api.github.com/users/facchinm/gists{/gist_id}","starred_url":"https://api.github.com/users/facchinm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facchinm/subscriptions","organizations_url":"https://api.github.com/users/facchinm/orgs","repos_url":"https://api.github.com/users/facchinm/repos","events_url":"https://api.github.com/users/facchinm/events{/privacy}","received_events_url":"https://api.github.com/users/facchinm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/facchinm/OpenOCD","description":"Fork of OpenOCD","fork":true,"url":"https://api.github.com/repos/facchinm/OpenOCD","forks_url":"https://api.github.com/repos/facchinm/OpenOCD/forks","keys_url":"https://api.github.com/repos/facchinm/OpenOCD/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facchinm/OpenOCD/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facchinm/OpenOCD/teams","hooks_url":"https://api.github.com/repos/facchinm/OpenOCD/hooks","issue_events_url":"https://api.github.com/repos/facchinm/OpenOCD/issues/events{/number}","events_url":"https://api.github.com/repos/facchinm/OpenOCD/events","assignees_url":"https://api.github.com/repos/facchinm/OpenOCD/assignees{/user}","branches_url":"https://api.github.com/repos/facchinm/OpenOCD/branches{/branch}","tags_url":"https://api.github.com/repos/facchinm/OpenOCD/tags","blobs_url":"https://api.github.com/repos/facchinm/OpenOCD/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facchinm/OpenOCD/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facchinm/OpenOCD/git/refs{/sha}","trees_url":"https://api.github.com/repos/facchinm/OpenOCD/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facchinm/OpenOCD/statuses/{sha}","languages_url":"https://api.github.com/repos/facchinm/OpenOCD/languages","stargazers_url":"https://api.github.com/repos/facchinm/OpenOCD/stargazers","contributors_url":"https://api.github.com/repos/facchinm/OpenOCD/contributors","subscribers_url":"https://api.github.com/repos/facchinm/OpenOCD/subscribers","subscription_url":"https://api.github.com/repos/facchinm/OpenOCD/subscription","commits_url":"https://api.github.com/repos/facchinm/OpenOCD/commits{/sha}","git_commits_url":"https://api.github.com/repos/facchinm/OpenOCD/git/commits{/sha}","comments_url":"https://api.github.com/repos/facchinm/OpenOCD/comments{/number}","issue_comment_url":"https://api.github.com/repos/facchinm/OpenOCD/issues/comments{/number}","contents_url":"https://api.github.com/repos/facchinm/OpenOCD/contents/{+path}","compare_url":"https://api.github.com/repos/facchinm/OpenOCD/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facchinm/OpenOCD/merges","archive_url":"https://api.github.com/repos/facchinm/OpenOCD/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facchinm/OpenOCD/downloads","issues_url":"https://api.github.com/repos/facchinm/OpenOCD/issues{/number}","pulls_url":"https://api.github.com/repos/facchinm/OpenOCD/pulls{/number}","milestones_url":"https://api.github.com/repos/facchinm/OpenOCD/milestones{/number}","notifications_url":"https://api.github.com/repos/facchinm/OpenOCD/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facchinm/OpenOCD/labels{/name}","releases_url":"https://api.github.com/repos/facchinm/OpenOCD/releases{/id}","deployments_url":"https://api.github.com/repos/facchinm/OpenOCD/deployments","created_at":"2015-10-20T10:50:17Z","updated_at":"2015-10-20T10:50:24Z","pushed_at":"2016-07-13T10:41:39Z","git_url":"git://github.com/facchinm/OpenOCD.git","ssh_url":"git@github.com:facchinm/OpenOCD.git","clone_url":"https://github.com/facchinm/OpenOCD.git","svn_url":"https://github.com/facchinm/OpenOCD","homepage":null,"size":12232,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"arduino:arduino","ref":"arduino","sha":"f3890677a822e9b869bb329dc1211259cfd4a2f8","user":{"login":"arduino","id":379109,"avatar_url":"https://avatars.githubusercontent.com/u/379109?v=3","gravatar_id":"","url":"https://api.github.com/users/arduino","html_url":"https://github.com/arduino","followers_url":"https://api.github.com/users/arduino/followers","following_url":"https://api.github.com/users/arduino/following{/other_user}","gists_url":"https://api.github.com/users/arduino/gists{/gist_id}","starred_url":"https://api.github.com/users/arduino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arduino/subscriptions","organizations_url":"https://api.github.com/users/arduino/orgs","repos_url":"https://api.github.com/users/arduino/repos","events_url":"https://api.github.com/users/arduino/events{/privacy}","received_events_url":"https://api.github.com/users/arduino/received_events","type":"Organization","site_admin":false},"repo":{"id":20299002,"name":"OpenOCD","full_name":"arduino/OpenOCD","owner":{"login":"arduino","id":379109,"avatar_url":"https://avatars.githubusercontent.com/u/379109?v=3","gravatar_id":"","url":"https://api.github.com/users/arduino","html_url":"https://github.com/arduino","followers_url":"https://api.github.com/users/arduino/followers","following_url":"https://api.github.com/users/arduino/following{/other_user}","gists_url":"https://api.github.com/users/arduino/gists{/gist_id}","starred_url":"https://api.github.com/users/arduino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arduino/subscriptions","organizations_url":"https://api.github.com/users/arduino/orgs","repos_url":"https://api.github.com/users/arduino/repos","events_url":"https://api.github.com/users/arduino/events{/privacy}","received_events_url":"https://api.github.com/users/arduino/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/arduino/OpenOCD","description":"Fork of OpenOCD","fork":false,"url":"https://api.github.com/repos/arduino/OpenOCD","forks_url":"https://api.github.com/repos/arduino/OpenOCD/forks","keys_url":"https://api.github.com/repos/arduino/OpenOCD/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arduino/OpenOCD/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arduino/OpenOCD/teams","hooks_url":"https://api.github.com/repos/arduino/OpenOCD/hooks","issue_events_url":"https://api.github.com/repos/arduino/OpenOCD/issues/events{/number}","events_url":"https://api.github.com/repos/arduino/OpenOCD/events","assignees_url":"https://api.github.com/repos/arduino/OpenOCD/assignees{/user}","branches_url":"https://api.github.com/repos/arduino/OpenOCD/branches{/branch}","tags_url":"https://api.github.com/repos/arduino/OpenOCD/tags","blobs_url":"https://api.github.com/repos/arduino/OpenOCD/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arduino/OpenOCD/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arduino/OpenOCD/git/refs{/sha}","trees_url":"https://api.github.com/repos/arduino/OpenOCD/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arduino/OpenOCD/statuses/{sha}","languages_url":"https://api.github.com/repos/arduino/OpenOCD/languages","stargazers_url":"https://api.github.com/repos/arduino/OpenOCD/stargazers","contributors_url":"https://api.github.com/repos/arduino/OpenOCD/contributors","subscribers_url":"https://api.github.com/repos/arduino/OpenOCD/subscribers","subscription_url":"https://api.github.com/repos/arduino/OpenOCD/subscription","commits_url":"https://api.github.com/repos/arduino/OpenOCD/commits{/sha}","git_commits_url":"https://api.github.com/repos/arduino/OpenOCD/git/commits{/sha}","comments_url":"https://api.github.com/repos/arduino/OpenOCD/comments{/number}","issue_comment_url":"https://api.github.com/repos/arduino/OpenOCD/issues/comments{/number}","contents_url":"https://api.github.com/repos/arduino/OpenOCD/contents/{+path}","compare_url":"https://api.github.com/repos/arduino/OpenOCD/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arduino/OpenOCD/merges","archive_url":"https://api.github.com/repos/arduino/OpenOCD/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arduino/OpenOCD/downloads","issues_url":"https://api.github.com/repos/arduino/OpenOCD/issues{/number}","pulls_url":"https://api.github.com/repos/arduino/OpenOCD/pulls{/number}","milestones_url":"https://api.github.com/repos/arduino/OpenOCD/milestones{/number}","notifications_url":"https://api.github.com/repos/arduino/OpenOCD/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arduino/OpenOCD/labels{/name}","releases_url":"https://api.github.com/repos/arduino/OpenOCD/releases{/id}","deployments_url":"https://api.github.com/repos/arduino/OpenOCD/deployments","created_at":"2014-05-29T15:46:18Z","updated_at":"2016-06-29T07:22:36Z","pushed_at":"2016-04-21T14:52:19Z","git_url":"git://github.com/arduino/OpenOCD.git","ssh_url":"git@github.com:arduino/OpenOCD.git","clone_url":"https://github.com/arduino/OpenOCD.git","svn_url":"https://github.com/arduino/OpenOCD","homepage":null,"size":15326,"stargazers_count":15,"watchers_count":15,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arduino/OpenOCD/pulls/2"},"html":{"href":"https://github.com/arduino/OpenOCD/pull/2"},"issue":{"href":"https://api.github.com/repos/arduino/OpenOCD/issues/2"},"comments":{"href":"https://api.github.com/repos/arduino/OpenOCD/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/arduino/OpenOCD/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/arduino/OpenOCD/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arduino/OpenOCD/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/arduino/OpenOCD/statuses/d6cb4bf833a32b87896f1745c01bba594d1cec26"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":37,"deletions":7,"changed_files":1}}
{"actor":{"display_login":"facchinm"}}