{"action":"closed","issue":{"url":"https://api.github.com/repos/spark/firmware/issues/706","labels_url":"https://api.github.com/repos/spark/firmware/issues/706/labels{/name}","comments_url":"https://api.github.com/repos/spark/firmware/issues/706/comments","events_url":"https://api.github.com/repos/spark/firmware/issues/706/events","html_url":"https://github.com/spark/firmware/issues/706","id":112390261,"number":706,"title":"P1 dfu-util 0.8 does not read/write from External Flash","user":{"login":"jakeypoo","id":341884,"avatar_url":"https://avatars.githubusercontent.com/u/341884?v=3","gravatar_id":"","url":"https://api.github.com/users/jakeypoo","html_url":"https://github.com/jakeypoo","followers_url":"https://api.github.com/users/jakeypoo/followers","following_url":"https://api.github.com/users/jakeypoo/following{/other_user}","gists_url":"https://api.github.com/users/jakeypoo/gists{/gist_id}","starred_url":"https://api.github.com/users/jakeypoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakeypoo/subscriptions","organizations_url":"https://api.github.com/users/jakeypoo/orgs","repos_url":"https://api.github.com/users/jakeypoo/repos","events_url":"https://api.github.com/users/jakeypoo/events{/privacy}","received_events_url":"https://api.github.com/users/jakeypoo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spark/firmware/milestones/18","html_url":"https://github.com/spark/firmware/milestones/0.4.9","labels_url":"https://api.github.com/repos/spark/firmware/milestones/18/labels","id":1458242,"number":18,"title":"0.4.9","description":null,"creator":{"login":"m-mcgowan","id":2465470,"avatar_url":"https://avatars.githubusercontent.com/u/2465470?v=3","gravatar_id":"","url":"https://api.github.com/users/m-mcgowan","html_url":"https://github.com/m-mcgowan","followers_url":"https://api.github.com/users/m-mcgowan/followers","following_url":"https://api.github.com/users/m-mcgowan/following{/other_user}","gists_url":"https://api.github.com/users/m-mcgowan/gists{/gist_id}","starred_url":"https://api.github.com/users/m-mcgowan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-mcgowan/subscriptions","organizations_url":"https://api.github.com/users/m-mcgowan/orgs","repos_url":"https://api.github.com/users/m-mcgowan/repos","events_url":"https://api.github.com/users/m-mcgowan/events{/privacy}","received_events_url":"https://api.github.com/users/m-mcgowan/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":11,"state":"open","created_at":"2015-12-14T00:04:10Z","updated_at":"2016-01-15T20:01:47Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-10-20T15:10:23Z","updated_at":"2016-01-15T20:01:47Z","closed_at":"2016-01-15T20:01:47Z","body":"Trying to read/write to the external flash on the P1 in the same way that I used to on the Core on alt interface 1, I've run into some issues.  \r\n\r\n`dfu-util -l` gives an interface I assume is the external SPI flash on the P1 \r\n    Found DFU: [2b04:d008] ver=0200, devnum=10, cfg=1, intf=0, alt=2, name=\"@Serial Flash   /0x00000000/256*004Kg\", serial=\"00000000010C\"\r\n\r\nHowever trying to write to this interface via `dfu-util -d 2b04:d008 -a 2 -s 0 -D test.bin` gives an error that I don't see with the same command to other alt interfaces : \r\n>Opening DFU capable USB device...\r\n>ID 2b04:d008\r\n>Run-time device DFU version 011a\r\n>Claiming USB DFU Interface...\r\n>Setting Alternate Setting #2 ...\r\n>Determining device status: state = dfuIDLE, status = 0\r\n>dfuIDLE, continuing\r\n>DFU mode device DFU version 011a\r\n>DfuSe interface name: \"Serial Flash   \"\r\n>dfu-util: Only DfuSe file version 1.1a is supported\r\n>dfu-util: (for raw binary download, use the --dfuse-address option)\r\n\r\nTrying to read from this interface works, however the file that gets downloaded is not the external flash. \r\nIn fact the file that gets downloaded seems to start at the same address as the last dfu-util upload operation performed : \r\nFor example if I run\r\n` dfu-util -d 2b04:d008 -a 0 -s 0x08020000:1024 -U test1.bin`\r\n`dfu-util -d 2b04:d008 -a 2 -s 0:1024 -U test2.bin`\r\nThe two files are identical.\r\n\r\nI've run some tests with sFLASH_... commands on the P1 and they seem to work. But I can't seem to get the dfu-util part to work. "}}