{"action":"created","issue":{"url":"https://api.github.com/repos/contiki-os/contiki/issues/1060","labels_url":"https://api.github.com/repos/contiki-os/contiki/issues/1060/labels{/name}","comments_url":"https://api.github.com/repos/contiki-os/contiki/issues/1060/comments","events_url":"https://api.github.com/repos/contiki-os/contiki/issues/1060/events","html_url":"https://github.com/contiki-os/contiki/pull/1060","id":74941444,"number":1060,"title":"Produce ihex files usable with TI's Flash Programmer","user":{"login":"g-oikonomou","id":705207,"avatar_url":"https://avatars.githubusercontent.com/u/705207?v=3","gravatar_id":"","url":"https://api.github.com/users/g-oikonomou","html_url":"https://github.com/g-oikonomou","followers_url":"https://api.github.com/users/g-oikonomou/followers","following_url":"https://api.github.com/users/g-oikonomou/following{/other_user}","gists_url":"https://api.github.com/users/g-oikonomou/gists{/gist_id}","starred_url":"https://api.github.com/users/g-oikonomou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g-oikonomou/subscriptions","organizations_url":"https://api.github.com/users/g-oikonomou/orgs","repos_url":"https://api.github.com/users/g-oikonomou/repos","events_url":"https://api.github.com/users/g-oikonomou/events{/privacy}","received_events_url":"https://api.github.com/users/g-oikonomou/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/contiki-os/contiki/labels/Platform%20/%20CPU","name":"Platform / CPU","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-10T15:30:21Z","updated_at":"2015-05-11T19:06:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/contiki-os/contiki/pulls/1060","html_url":"https://github.com/contiki-os/contiki/pull/1060","diff_url":"https://github.com/contiki-os/contiki/pull/1060.diff","patch_url":"https://github.com/contiki-os/contiki/pull/1060.patch"},"body":"As per the discussion in #1058, TI's Flash Programmer seems to dislike 03 records in ihex files. As a result, the `.hex` file generated by the CC26xx build system cannot be used with Flash Programmer.\r\n\r\nThis pull changes the CC26xx build system as follows:\r\n* We `objcopy` from the `.elf` to an intermediate `.hex` ~~which has all addresses offset by `0x200000`. This forces `objcopy` to only use 04/05 records instead of 02/03.~~\r\n* We use `srecord` to post-process this intermediate hex. This produces a final hex file that uses 32-bit linear addresses ~~by offsetting everything back by `-0x200000`. This produces a final `.hex` which has correct addresses, but which only uses 04/05 records.~~\r\n\r\nThis final `.hex` was used successfully to program Srf+CC2650 EM as well as the SensorTag with cc26xx-demo as well as with cc26xx-web-demo.\r\n\r\nCloses #1058"},"comment":{"url":"https://api.github.com/repos/contiki-os/contiki/issues/comments/101018753","html_url":"https://github.com/contiki-os/contiki/pull/1060#issuecomment-101018753","issue_url":"https://api.github.com/repos/contiki-os/contiki/issues/1060","id":101018753,"user":{"login":"bthebaudeau","id":5755442,"avatar_url":"https://avatars.githubusercontent.com/u/5755442?v=3","gravatar_id":"","url":"https://api.github.com/users/bthebaudeau","html_url":"https://github.com/bthebaudeau","followers_url":"https://api.github.com/users/bthebaudeau/followers","following_url":"https://api.github.com/users/bthebaudeau/following{/other_user}","gists_url":"https://api.github.com/users/bthebaudeau/gists{/gist_id}","starred_url":"https://api.github.com/users/bthebaudeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bthebaudeau/subscriptions","organizations_url":"https://api.github.com/users/bthebaudeau/orgs","repos_url":"https://api.github.com/users/bthebaudeau/repos","events_url":"https://api.github.com/users/bthebaudeau/events{/privacy}","received_events_url":"https://api.github.com/users/bthebaudeau/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T19:06:23Z","updated_at":"2015-05-11T19:06:23Z","body":"@jonnteolsson Thanks!"}}