{"action":"created","issue":{"url":"https://api.github.com/repos/contiki-os/contiki/issues/1058","labels_url":"https://api.github.com/repos/contiki-os/contiki/issues/1058/labels{/name}","comments_url":"https://api.github.com/repos/contiki-os/contiki/issues/1058/comments","events_url":"https://api.github.com/repos/contiki-os/contiki/issues/1058/events","html_url":"https://github.com/contiki-os/contiki/issues/1058","id":74765866,"number":1058,"title":"Cortex M3 .hex files","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"},{"url":"https://api.github.com/repos/contiki-os/contiki/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-09T21:45:25Z","updated_at":"2015-05-09T22:16:43Z","closed_at":null,"body":"The CC2538 and CC26xx ports are identical in terms of how they produce the final .bin and .hex\r\n\r\n```\r\narm-none-eabi-objcopy -O ihex cc2538-demo.elf cc2538-demo.hex\r\narm-none-eabi-objcopy -O binary --gap-fill 0xff cc2538-demo.elf cc2538-demo.bin\r\n```\r\n\r\nIn a nutshell, we create a .elf and from it we create a .bin and a .hex\r\n\r\nThe `.bin` works perfectly with CC2538 as well as with CC26xx. The .hex works fine with CC2538, but it fails miserably with CC26xx. TI's flash prog complains about an unknown record type, but I suspect this is not the primary cause.\r\n\r\nI ran objdump on both hex files\r\n\r\n```\r\n$ arm-none-eabi-objdump -h cc26xx-demo.hex \r\n\r\ncc26xx-demo.hex:     file format ihex\r\n\r\nSections:\r\nIdx Name          Size      VMA               LMA               File off  Algn\r\n  0 .sec1         0000d6bd  00000000  00000000  00000000  2**0\r\n                  CONTENTS, ALLOC, LOAD\r\n  1 .sec2         00000008  0000d6c0  0000d6c0  00025bf6  2**0\r\n                  CONTENTS, ALLOC, LOAD\r\n  2 .sec3         00000054  0001ffac  0001ffac  00025c24  2**0\r\n                  CONTENTS, ALLOC, LOAD\r\n```\r\n\r\nand this looks normal to me.\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/contiki-os/contiki/issues/comments/100554996","html_url":"https://github.com/contiki-os/contiki/issues/1058#issuecomment-100554996","issue_url":"https://api.github.com/repos/contiki-os/contiki/issues/1058","id":100554996,"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},"created_at":"2015-05-09T22:16:43Z","updated_at":"2015-05-09T22:16:43Z","body":"I should say, we changed the CC26xx record type for CC26xx (and the checksum accordingly), Flash Prog stopped complaining but progamming the .hex still did not work"}}