{"action":"created","issue":{"url":"https://api.github.com/repos/JelmerT/cc2538-bsl/issues/27","labels_url":"https://api.github.com/repos/JelmerT/cc2538-bsl/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/JelmerT/cc2538-bsl/issues/27/comments","events_url":"https://api.github.com/repos/JelmerT/cc2538-bsl/issues/27/events","html_url":"https://github.com/JelmerT/cc2538-bsl/pull/27","id":85199091,"number":27,"title":"Fixed DTR/RTS bootloader","user":{"login":"davidrojas","id":1322317,"avatar_url":"https://avatars.githubusercontent.com/u/1322317?v=3","gravatar_id":"","url":"https://api.github.com/users/davidrojas","html_url":"https://github.com/davidrojas","followers_url":"https://api.github.com/users/davidrojas/followers","following_url":"https://api.github.com/users/davidrojas/following{/other_user}","gists_url":"https://api.github.com/users/davidrojas/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrojas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrojas/subscriptions","organizations_url":"https://api.github.com/users/davidrojas/orgs","repos_url":"https://api.github.com/users/davidrojas/repos","events_url":"https://api.github.com/users/davidrojas/events{/privacy}","received_events_url":"https://api.github.com/users/davidrojas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-04T17:37:06Z","updated_at":"2015-09-02T10:51:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JelmerT/cc2538-bsl/pulls/27","html_url":"https://github.com/JelmerT/cc2538-bsl/pull/27","diff_url":"https://github.com/JelmerT/cc2538-bsl/pull/27.diff","patch_url":"https://github.com/JelmerT/cc2538-bsl/pull/27.patch"},"body":"It was firing twice, when connecting and reconnecting after clock switching, resetting again the device.With this fix it works fine in mac, but in Linux apparently there is a bug in the drivers for the usb-to-serial chip that we use (CP2104), causing a reset on the RST line whenever a serial connection is opened."},"comment":{"url":"https://api.github.com/repos/JelmerT/cc2538-bsl/issues/comments/137027762","html_url":"https://github.com/JelmerT/cc2538-bsl/pull/27#issuecomment-137027762","issue_url":"https://api.github.com/repos/JelmerT/cc2538-bsl/issues/27","id":137027762,"user":{"login":"JelmerT","id":873684,"avatar_url":"https://avatars.githubusercontent.com/u/873684?v=3","gravatar_id":"","url":"https://api.github.com/users/JelmerT","html_url":"https://github.com/JelmerT","followers_url":"https://api.github.com/users/JelmerT/followers","following_url":"https://api.github.com/users/JelmerT/following{/other_user}","gists_url":"https://api.github.com/users/JelmerT/gists{/gist_id}","starred_url":"https://api.github.com/users/JelmerT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JelmerT/subscriptions","organizations_url":"https://api.github.com/users/JelmerT/orgs","repos_url":"https://api.github.com/users/JelmerT/repos","events_url":"https://api.github.com/users/JelmerT/events{/privacy}","received_events_url":"https://api.github.com/users/JelmerT/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T10:51:15Z","updated_at":"2015-09-02T10:51:15Z","body":"Sorry for the late reply!\r\n\r\nThis is a good catch! I don't have any hardware that supports the DTR/RTS pin toggle to invoke the bootloader, so I never noticed the clock switching wasn't working properly.\r\nIf I understand correctly, after doing the clock switch, the chip was reset again, which switched it back to the internal (slower) clock?\r\n\r\nDid you ever notice problems with this @bradjc ? (He implemented the feature originally).\r\n\r\nCode looks good to me :+1: "}}