{"action":"created","issue":{"url":"https://api.github.com/repos/ApertureLabsLtd/mphidflash/issues/18","repository_url":"https://api.github.com/repos/ApertureLabsLtd/mphidflash","labels_url":"https://api.github.com/repos/ApertureLabsLtd/mphidflash/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/ApertureLabsLtd/mphidflash/issues/18/comments","events_url":"https://api.github.com/repos/ApertureLabsLtd/mphidflash/issues/18/events","html_url":"https://github.com/ApertureLabsLtd/mphidflash/issues/18","id":154479292,"number":18,"title":"If the size of a code block is the same a the usb buffer PROGRAM_COMPLETE is not called","user":{"login":"mickeprag","id":719701,"avatar_url":"https://avatars.githubusercontent.com/u/719701?v=3","gravatar_id":"","url":"https://api.github.com/users/mickeprag","html_url":"https://github.com/mickeprag","followers_url":"https://api.github.com/users/mickeprag/followers","following_url":"https://api.github.com/users/mickeprag/following{/other_user}","gists_url":"https://api.github.com/users/mickeprag/gists{/gist_id}","starred_url":"https://api.github.com/users/mickeprag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickeprag/subscriptions","organizations_url":"https://api.github.com/users/mickeprag/orgs","repos_url":"https://api.github.com/users/mickeprag/repos","events_url":"https://api.github.com/users/mickeprag/events{/privacy}","received_events_url":"https://api.github.com/users/mickeprag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-12T13:14:55Z","updated_at":"2016-05-13T07:29:10Z","closed_at":null,"body":"See this example:\r\n\r\n    USB HID device found: 28672 bytes free\r\n    Device family: PIC18\r\n\r\n    Erasing...\r\n    Writing hex file 'firmware.hex':Address: 00001000  Len 6\r\n    Writing\r\n    Completing\r\n    Address: 00001008  Len 12\r\n    Writing\r\n    Completing\r\n    Address: 00001018  Len 56\r\n    Writing\r\n    Address: 00005410  Len 56\r\n    Writing\r\n    Address: 00005448  Len 56\r\n    Writing\r\n\r\nAfter writing address 0x1018 it should have written \"Completing\" but did not since the len was 56 (which is the same as the buffer)."},"comment":{"url":"https://api.github.com/repos/ApertureLabsLtd/mphidflash/issues/comments/218971177","html_url":"https://github.com/ApertureLabsLtd/mphidflash/issues/18#issuecomment-218971177","issue_url":"https://api.github.com/repos/ApertureLabsLtd/mphidflash/issues/18","id":218971177,"user":{"login":"mickeprag","id":719701,"avatar_url":"https://avatars.githubusercontent.com/u/719701?v=3","gravatar_id":"","url":"https://api.github.com/users/mickeprag","html_url":"https://github.com/mickeprag","followers_url":"https://api.github.com/users/mickeprag/followers","following_url":"https://api.github.com/users/mickeprag/following{/other_user}","gists_url":"https://api.github.com/users/mickeprag/gists{/gist_id}","starred_url":"https://api.github.com/users/mickeprag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickeprag/subscriptions","organizations_url":"https://api.github.com/users/mickeprag/orgs","repos_url":"https://api.github.com/users/mickeprag/repos","events_url":"https://api.github.com/users/mickeprag/events{/privacy}","received_events_url":"https://api.github.com/users/mickeprag/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T07:29:10Z","updated_at":"2016-05-13T07:29:10Z","body":"The firmware I am trying to flash seems to write successfully but when mphidflash verify the written data it fails.\r\nWhen I read the data back (using a PicKit 3) I can see that the block at 0x1018 is written but no more data after that.\r\n\r\nAt 0x1018 there is a block of exactly 56 bytes. After this block the next data is not until address 0x5410. My guess was that when \"jumping\" in memory a \"completing\" signal must be sent.\r\n\r\nI modified mphidflash to issue a PROGRAM_COMPLETE after this block and then it worked fine to flash the firmware."}}