{"action":"created","issue":{"url":"https://api.github.com/repos/japaric/stm32f103xx-hal/issues/116","repository_url":"https://api.github.com/repos/japaric/stm32f103xx-hal","labels_url":"https://api.github.com/repos/japaric/stm32f103xx-hal/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/japaric/stm32f103xx-hal/issues/116/comments","events_url":"https://api.github.com/repos/japaric/stm32f103xx-hal/issues/116/events","html_url":"https://github.com/japaric/stm32f103xx-hal/issues/116","id":374674149,"node_id":"MDU6SXNzdWUzNzQ2NzQxNDk=","number":116,"title":"PB3, PB4 and PA15 are unavailable unless the JTAG is disabled","user":{"login":"TheZoq2","id":5312813,"node_id":"MDQ6VXNlcjUzMTI4MTM=","avatar_url":"https://avatars2.githubusercontent.com/u/5312813?v=4","gravatar_id":"","url":"https://api.github.com/users/TheZoq2","html_url":"https://github.com/TheZoq2","followers_url":"https://api.github.com/users/TheZoq2/followers","following_url":"https://api.github.com/users/TheZoq2/following{/other_user}","gists_url":"https://api.github.com/users/TheZoq2/gists{/gist_id}","starred_url":"https://api.github.com/users/TheZoq2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheZoq2/subscriptions","organizations_url":"https://api.github.com/users/TheZoq2/orgs","repos_url":"https://api.github.com/users/TheZoq2/repos","events_url":"https://api.github.com/users/TheZoq2/events{/privacy}","received_events_url":"https://api.github.com/users/TheZoq2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-27T18:24:48Z","updated_at":"2018-11-25T21:37:49Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The pins PB3, PB4 and PA15 are used for JTAG debuging on this chip which means that they are normally unavailable for general use. It is possible to use them if you disable the JTAG device as noted in section 31.4.4 of the manual.\r\n\r\nDisabling the jtag device should be fairly straight forward since you can still use the SWJ debugger and i'll submit a PR that adds a function for doing that. However, since the JTAG device is enabled by default, those pins are unusable until it's disabled which is not reflected in the current API. I spent a few hours debugging this today and I imagine others will or already have as well.\r\n\r\nWould it make sense to prevent usage of those three pins until the JTAG is disabled? Perhaps by adding another GPIO type: `jtag` and requiring a token type given by the JTAG disable function to enable them?"},"comment":{"url":"https://api.github.com/repos/japaric/stm32f103xx-hal/issues/comments/441475872","html_url":"https://github.com/japaric/stm32f103xx-hal/issues/116#issuecomment-441475872","issue_url":"https://api.github.com/repos/japaric/stm32f103xx-hal/issues/116","id":441475872,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTQ3NTg3Mg==","user":{"login":"TeXitoi","id":5787066,"node_id":"MDQ6VXNlcjU3ODcwNjY=","avatar_url":"https://avatars0.githubusercontent.com/u/5787066?v=4","gravatar_id":"","url":"https://api.github.com/users/TeXitoi","html_url":"https://github.com/TeXitoi","followers_url":"https://api.github.com/users/TeXitoi/followers","following_url":"https://api.github.com/users/TeXitoi/following{/other_user}","gists_url":"https://api.github.com/users/TeXitoi/gists{/gist_id}","starred_url":"https://api.github.com/users/TeXitoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeXitoi/subscriptions","organizations_url":"https://api.github.com/users/TeXitoi/orgs","repos_url":"https://api.github.com/users/TeXitoi/repos","events_url":"https://api.github.com/users/TeXitoi/events{/privacy}","received_events_url":"https://api.github.com/users/TeXitoi/received_events","type":"User","site_admin":false},"created_at":"2018-11-25T21:37:49Z","updated_at":"2018-11-25T21:37:49Z","author_association":"COLLABORATOR","body":"I agree that it would be better to have a Debugger type state."}}
{"actor":{"display_login":"TeXitoi"}}