{"action":"created","issue":{"url":"https://api.github.com/repos/blacksphere/blackmagic/issues/172","repository_url":"https://api.github.com/repos/blacksphere/blackmagic","labels_url":"https://api.github.com/repos/blacksphere/blackmagic/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/blacksphere/blackmagic/issues/172/comments","events_url":"https://api.github.com/repos/blacksphere/blackmagic/issues/172/events","html_url":"https://github.com/blacksphere/blackmagic/issues/172","id":191765533,"number":172,"title":"Enhancement - Do you think it would be practical to add USB mass storage as an upload method?","user":{"login":"rogerclarkmelbourne","id":6146984,"avatar_url":"https://avatars.githubusercontent.com/u/6146984?v=3","gravatar_id":"","url":"https://api.github.com/users/rogerclarkmelbourne","html_url":"https://github.com/rogerclarkmelbourne","followers_url":"https://api.github.com/users/rogerclarkmelbourne/followers","following_url":"https://api.github.com/users/rogerclarkmelbourne/following{/other_user}","gists_url":"https://api.github.com/users/rogerclarkmelbourne/gists{/gist_id}","starred_url":"https://api.github.com/users/rogerclarkmelbourne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogerclarkmelbourne/subscriptions","organizations_url":"https://api.github.com/users/rogerclarkmelbourne/orgs","repos_url":"https://api.github.com/users/rogerclarkmelbourne/repos","events_url":"https://api.github.com/users/rogerclarkmelbourne/events{/privacy}","received_events_url":"https://api.github.com/users/rogerclarkmelbourne/received_events","type":"User","site_admin":false},"labels":[{"id":469358371,"url":"https://api.github.com/repos/blacksphere/blackmagic/labels/Enhancement","name":"Enhancement","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-25T21:11:51Z","updated_at":"2016-11-25T23:39:19Z","closed_at":null,"body":"Do you think it would be practical to add USB mass storage as an upload method, to operate like the CMSIS DAP and some STLink adaptors do, to flash the code onto the target.\r\n\r\nI've not looked at the code, but I presume its a composite USB device ? so an additional device could be added.\r\n\r\nI was thinking that the code to upload could use monitor swdp_scan followed by attach 1 to attach to whatever the first device was, and then load the bin etc as if the commands came from GDB.\r\n\r\nHowever there may be some technical gotya's that I'm not aware of e.g problem with the USB composite device ?"},"comment":{"url":"https://api.github.com/repos/blacksphere/blackmagic/issues/comments/263032643","html_url":"https://github.com/blacksphere/blackmagic/issues/172#issuecomment-263032643","issue_url":"https://api.github.com/repos/blacksphere/blackmagic/issues/172","id":263032643,"user":{"login":"gsmcmullin","id":466364,"avatar_url":"https://avatars.githubusercontent.com/u/466364?v=3","gravatar_id":"","url":"https://api.github.com/users/gsmcmullin","html_url":"https://github.com/gsmcmullin","followers_url":"https://api.github.com/users/gsmcmullin/followers","following_url":"https://api.github.com/users/gsmcmullin/following{/other_user}","gists_url":"https://api.github.com/users/gsmcmullin/gists{/gist_id}","starred_url":"https://api.github.com/users/gsmcmullin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsmcmullin/subscriptions","organizations_url":"https://api.github.com/users/gsmcmullin/orgs","repos_url":"https://api.github.com/users/gsmcmullin/repos","events_url":"https://api.github.com/users/gsmcmullin/events{/privacy}","received_events_url":"https://api.github.com/users/gsmcmullin/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T23:39:19Z","updated_at":"2016-11-25T23:39:19Z","body":"@rogerclarkmelbourne The short answer is no.  I can't remember if the real limitation is the number of endpoints supported in hardware, or the amount of USB packet memory, but I'm pretty sure you can't just add more bulk endpoints needed to implement USB MSC. You're welcome to try though, I'll be pleased to be proved wrong.\r\n\r\nIf the limitation is packet memory you could reduce the max packet size on the existing endpoints to free up packet memory, this will come at some cost of throughput reduction though."}}
{"actor":{"display_login":"gsmcmullin"}}