{"action":"created","issue":{"url":"https://api.github.com/repos/square/pylink/issues/27","repository_url":"https://api.github.com/repos/square/pylink","labels_url":"https://api.github.com/repos/square/pylink/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/square/pylink/issues/27/comments","events_url":"https://api.github.com/repos/square/pylink/issues/27/events","html_url":"https://github.com/square/pylink/issues/27","id":308984619,"number":27,"title":"Can't connect the device if the device had been secured.","user":{"login":"ltbkey","id":9111837,"avatar_url":"https://avatars0.githubusercontent.com/u/9111837?v=4","gravatar_id":"","url":"https://api.github.com/users/ltbkey","html_url":"https://github.com/ltbkey","followers_url":"https://api.github.com/users/ltbkey/followers","following_url":"https://api.github.com/users/ltbkey/following{/other_user}","gists_url":"https://api.github.com/users/ltbkey/gists{/gist_id}","starred_url":"https://api.github.com/users/ltbkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltbkey/subscriptions","organizations_url":"https://api.github.com/users/ltbkey/orgs","repos_url":"https://api.github.com/users/ltbkey/repos","events_url":"https://api.github.com/users/ltbkey/events{/privacy}","received_events_url":"https://api.github.com/users/ltbkey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-27T14:06:59Z","updated_at":"2018-03-28T19:36:08Z","closed_at":null,"author_association":"NONE","body":"l used the script below, but if the device had been secured, the script occurs error.\r\n    # Init the jlink\r\n    jlink = pylink.JLink()\r\n\r\n    # Open a connection to your J-Link.\r\n    jlink.open(serial_no)\r\n\r\n    # Set SWD as the interface\r\n    jlink.set_tif(pylink.enums.JLinkInterfaces.SWD)\r\n    \r\n    # Connect to the target device.\r\n    jlink.connect('stm32f301k8',4000, verbose=True)\r\n\r\nthe error is shown below.\r\n\r\nTraceback (most recent call last):\r\n  File \"jlink_flash.py\", line 49, in <module>\r\n    jlink.connect('stm32f301k8',4000, verbose=True)\r\n  File \"D:\\APP\\Python27\\lib\\site-packages\\pylink\\jlink.py\", line 141, in wrapper\r\n    return func(self, *args, **kwargs)\r\n  File \"D:\\APP\\Python27\\lib\\site-packages\\pylink\\jlink.py\", line 910, in connect\r\n    result = self._dll.JLINKARM_Connect()\r\nWindowsError: exception: priviledged instruction\r\n\r\nI tried to use \"unlock()\", but it didn't work.\r\n    # jlink.unlock()            #does not work\r\n\r\nLooking forward your help! Thank you!"},"comment":{"url":"https://api.github.com/repos/square/pylink/issues/comments/377009328","html_url":"https://github.com/square/pylink/issues/27#issuecomment-377009328","issue_url":"https://api.github.com/repos/square/pylink/issues/27","id":377009328,"user":{"login":"hkpeprah","id":1425020,"avatar_url":"https://avatars0.githubusercontent.com/u/1425020?v=4","gravatar_id":"","url":"https://api.github.com/users/hkpeprah","html_url":"https://github.com/hkpeprah","followers_url":"https://api.github.com/users/hkpeprah/followers","following_url":"https://api.github.com/users/hkpeprah/following{/other_user}","gists_url":"https://api.github.com/users/hkpeprah/gists{/gist_id}","starred_url":"https://api.github.com/users/hkpeprah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkpeprah/subscriptions","organizations_url":"https://api.github.com/users/hkpeprah/orgs","repos_url":"https://api.github.com/users/hkpeprah/repos","events_url":"https://api.github.com/users/hkpeprah/events{/privacy}","received_events_url":"https://api.github.com/users/hkpeprah/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T19:36:08Z","updated_at":"2018-03-28T19:36:08Z","author_association":"CONTRIBUTOR","body":"We currently have not implemented an `unlock` method for the STM32 in PyLink FWIW."}}
{"actor":{"display_login":"hkpeprah"}}