{"action":"created","issue":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4460","repository_url":"https://api.github.com/repos/RIOT-OS/RIOT","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4460/labels{/name}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4460/comments","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4460/events","html_url":"https://github.com/RIOT-OS/RIOT/pull/4460","id":121400180,"number":4460,"title":"Support flashing OpenMote via serial interface with 'make flash'","user":{"login":"aeneby","id":8447139,"avatar_url":"https://avatars.githubusercontent.com/u/8447139?v=3","gravatar_id":"","url":"https://api.github.com/users/aeneby","html_url":"https://github.com/aeneby","followers_url":"https://api.github.com/users/aeneby/followers","following_url":"https://api.github.com/users/aeneby/following{/other_user}","gists_url":"https://api.github.com/users/aeneby/gists{/gist_id}","starred_url":"https://api.github.com/users/aeneby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeneby/subscriptions","organizations_url":"https://api.github.com/users/aeneby/orgs","repos_url":"https://api.github.com/users/aeneby/repos","events_url":"https://api.github.com/users/aeneby/events{/privacy}","received_events_url":"https://api.github.com/users/aeneby/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/arm","name":"arm","color":"dddddd"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/enhancement","name":"enhancement","color":"f17070"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/Hack'n'ACK%20candidate","name":"Hack'n'ACK candidate","color":"dff5df"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/make","name":"make","color":"bfdadc"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/Waiting%20For%20Other%20PR","name":"Waiting For Other PR","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"emmanuelsearch","id":3717254,"avatar_url":"https://avatars.githubusercontent.com/u/3717254?v=3","gravatar_id":"","url":"https://api.github.com/users/emmanuelsearch","html_url":"https://github.com/emmanuelsearch","followers_url":"https://api.github.com/users/emmanuelsearch/followers","following_url":"https://api.github.com/users/emmanuelsearch/following{/other_user}","gists_url":"https://api.github.com/users/emmanuelsearch/gists{/gist_id}","starred_url":"https://api.github.com/users/emmanuelsearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmanuelsearch/subscriptions","organizations_url":"https://api.github.com/users/emmanuelsearch/orgs","repos_url":"https://api.github.com/users/emmanuelsearch/repos","events_url":"https://api.github.com/users/emmanuelsearch/events{/privacy}","received_events_url":"https://api.github.com/users/emmanuelsearch/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/13","html_url":"https://github.com/RIOT-OS/RIOT/milestones/Release%202016.04","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/13/labels","id":1447832,"number":13,"title":"Release 2016.04","description":"The next major release.","creator":{"login":"OlegHahm","id":1590423,"avatar_url":"https://avatars.githubusercontent.com/u/1590423?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegHahm","html_url":"https://github.com/OlegHahm","followers_url":"https://api.github.com/users/OlegHahm/followers","following_url":"https://api.github.com/users/OlegHahm/following{/other_user}","gists_url":"https://api.github.com/users/OlegHahm/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegHahm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegHahm/subscriptions","organizations_url":"https://api.github.com/users/OlegHahm/orgs","repos_url":"https://api.github.com/users/OlegHahm/repos","events_url":"https://api.github.com/users/OlegHahm/events{/privacy}","received_events_url":"https://api.github.com/users/OlegHahm/received_events","type":"User","site_admin":false},"open_issues":224,"closed_issues":184,"state":"open","created_at":"2015-12-07T14:56:18Z","updated_at":"2016-03-02T15:55:13Z","due_on":"2016-04-14T22:00:00Z","closed_at":null},"comments":6,"created_at":"2015-12-10T04:28:17Z","updated_at":"2016-03-02T20:51:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/4460","html_url":"https://github.com/RIOT-OS/RIOT/pull/4460","diff_url":"https://github.com/RIOT-OS/RIOT/pull/4460.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/4460.patch"},"body":"Support flashing openmote-cc2538 board via cc2538-bsl script directly from Makefile target 'flash', and make this the default flashing method for this platform.\r\n\r\nFixes issue #4434.\r\n\r\nTODO: Update wiki, which currently suggests that only JTAG flashing is supported."},"comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments/191424410","html_url":"https://github.com/RIOT-OS/RIOT/pull/4460#issuecomment-191424410","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4460","id":191424410,"user":{"login":"aeneby","id":8447139,"avatar_url":"https://avatars.githubusercontent.com/u/8447139?v=3","gravatar_id":"","url":"https://api.github.com/users/aeneby","html_url":"https://github.com/aeneby","followers_url":"https://api.github.com/users/aeneby/followers","following_url":"https://api.github.com/users/aeneby/following{/other_user}","gists_url":"https://api.github.com/users/aeneby/gists{/gist_id}","starred_url":"https://api.github.com/users/aeneby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeneby/subscriptions","organizations_url":"https://api.github.com/users/aeneby/orgs","repos_url":"https://api.github.com/users/aeneby/repos","events_url":"https://api.github.com/users/aeneby/events{/privacy}","received_events_url":"https://api.github.com/users/aeneby/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T20:51:05Z","updated_at":"2016-03-02T20:51:05Z","body":"Rebased to master after inclusion of #4937. A few notes, since it's been a while since I played around with this and things have changed since then:\r\n\r\n- Just to clarify, for consistency this probably needs to be tested with #4433 included. This is because #4433 updates the CCA's \"valid image\" bit to true on a successful flash, and also allows it to be re-set to false by grounding ON/SLEEP during boot as described above (and therefore activating the bootloader, allowing flashing via the bsl script). Without #4433 it's possible to end up in a configuration where the \"valid image\" bit is always set to false, or always true, each with their own set of confusing problems when trying to test things.\r\n\r\n- With this PR, \"make flash\" using the bsl script fails. This seems to be because the makefile attempts to flash a .hex file which is too big for the flash (at least with the \"default\" example program), and the script throws some weird error about \"unhashable type: \"list\"\". I have no idea why this is but it wasn't the case before. Any ideas?\r\n\r\n- Flashing with ```BOARD=openmote-cc2538 PROGRAMMER=jlink make flash``` works, because this target seems to create a .bin file with the correct size. This is then flashed by the jlink programmer and everything is fine. Flashing with the bsl script once this .bin file exists succeeds, but to create it it seems you need to flash with the jlink first?"}}