{"action":"created","issue":{"url":"https://api.github.com/repos/analogdevicesinc/m1k-fw/issues/3","labels_url":"https://api.github.com/repos/analogdevicesinc/m1k-fw/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/analogdevicesinc/m1k-fw/issues/3/comments","events_url":"https://api.github.com/repos/analogdevicesinc/m1k-fw/issues/3/events","html_url":"https://github.com/analogdevicesinc/m1k-fw/issues/3","id":68940909,"number":3,"title":"\"make\" toasts the m1k!","user":{"login":"pcercuei","id":403272,"avatar_url":"https://avatars.githubusercontent.com/u/403272?v=3","gravatar_id":"","url":"https://api.github.com/users/pcercuei","html_url":"https://github.com/pcercuei","followers_url":"https://api.github.com/users/pcercuei/followers","following_url":"https://api.github.com/users/pcercuei/following{/other_user}","gists_url":"https://api.github.com/users/pcercuei/gists{/gist_id}","starred_url":"https://api.github.com/users/pcercuei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcercuei/subscriptions","organizations_url":"https://api.github.com/users/pcercuei/orgs","repos_url":"https://api.github.com/users/pcercuei/repos","events_url":"https://api.github.com/users/pcercuei/events{/privacy}","received_events_url":"https://api.github.com/users/pcercuei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-04-16T14:51:11Z","updated_at":"2015-04-20T14:05:02Z","closed_at":null,"body":"The Makefile will attempt to flash the m1k if it is connected via USB.\r\n\r\nHowever, on my system (Debian testing), using the latest master branch, the flash will fail and result in a non-booting device, that makes a clicking noise, and don't appear on ```lsusb```.\r\n\r\nThis is fully reproductible and I already bricked two units.\r\n\r\nThe last few lines of my ```make``` log:\r\n```\r\nLN      m1000.elf\r\nSIZE    m1000.elf\r\nm1000.elf  :\r\nsection              size         addr\r\n.text              0x354c      0x80000\r\n.relocate           0x670   0x2007e000\r\n.bss               0x1ac0   0x2007e670\r\n.stack              0x800   0x20080130\r\n.ARM.attributes      0x29          0x0\r\n.comment             0x58          0x0\r\n.debug_info       0x14837          0x0\r\n.debug_abbrev      0x3a65          0x0\r\n.debug_loc         0x7a15          0x0\r\n.debug_aranges      0xe40          0x0\r\n.debug_ranges      0x1c08          0x0\r\n.debug_macro      0x1629c          0x0\r\n.debug_line       0x10348          0x0\r\n.debug_str        0x5a1a1          0x0\r\n.debug_frame       0x1e60          0x0\r\nTotal             0xaabdb\r\n\r\n\r\n   text\t   data\t    bss\t    dec\t    hex\tfilename\r\n 0x3bbc\t    0x0\t 0x22c0\t  24188\t   5e7c\tm1000.elf\r\nOBJDUMP m1000.lss\r\nNM      m1000.sym\r\nOBJCOPY m1000.hex\r\nOBJCOPY m1000.bin\r\n/bin/sh: 1: [: -a: unexpected operator\r\nTraceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\nAttributeError: 'NoneType' object has no attribute 'ctrl_transfer'\r\nMakefile:2: recipe for target 'flash' failed\r\nmake: [flash] Error 1 (ignorée)\r\nTraceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\n  File \"/usr/lib/python2.7/dist-packages/usb/core.py\", line 971, in ctrl_transfer\r\n    self.__get_timeout(timeout))\r\n  File \"/usr/lib/python2.7/dist-packages/usb/backend/libusb1.py\", line 819, in ctrl_transfer\r\n    timeout))\r\n  File \"/usr/lib/python2.7/dist-packages/usb/backend/libusb1.py\", line 552, in _check\r\n    raise USBError(_strerror(ret), ret, _libusb_errno[ret])\r\nusb.core.USBError: [Errno 5] Input/Output Error\r\nMakefile:2: recipe for target 'flash' failed\r\nmake: [flash] Error 1 (ignorée)\r\npython ./scripts/sam-ba.py\r\nplease wait...\r\nTraceback (most recent call last):\r\n  File \"./scripts/sam-ba.py\", line 26, in <module>\r\n    dev.set_configuration(1)\r\nAttributeError: 'NoneType' object has no attribute 'set_configuration'\r\nMakefile:2: recipe for target 'flash' failed\r\nmake: [flash] Error 1 (ignorée)\r\n```"},"comment":{"url":"https://api.github.com/repos/analogdevicesinc/m1k-fw/issues/comments/94460542","html_url":"https://github.com/analogdevicesinc/m1k-fw/issues/3#issuecomment-94460542","issue_url":"https://api.github.com/repos/analogdevicesinc/m1k-fw/issues/3","id":94460542,"user":{"login":"UweBonnes","id":1142704,"avatar_url":"https://avatars.githubusercontent.com/u/1142704?v=3","gravatar_id":"","url":"https://api.github.com/users/UweBonnes","html_url":"https://github.com/UweBonnes","followers_url":"https://api.github.com/users/UweBonnes/followers","following_url":"https://api.github.com/users/UweBonnes/following{/other_user}","gists_url":"https://api.github.com/users/UweBonnes/gists{/gist_id}","starred_url":"https://api.github.com/users/UweBonnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UweBonnes/subscriptions","organizations_url":"https://api.github.com/users/UweBonnes/orgs","repos_url":"https://api.github.com/users/UweBonnes/repos","events_url":"https://api.github.com/users/UweBonnes/events{/privacy}","received_events_url":"https://api.github.com/users/UweBonnes/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T14:05:02Z","updated_at":"2015-04-20T14:05:02Z","body":"Part of my problem was an \"Powered USB Hub\", where actual the power supply for the hub was broken and so the ADALM was only powered with 4 Volt. With that unpowered hub, also the negative rail didn't come up."}}