{"action":"created","issue":{"url":"https://api.github.com/repos/blacksphere/blackmagic/issues/75","labels_url":"https://api.github.com/repos/blacksphere/blackmagic/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/blacksphere/blackmagic/issues/75/comments","events_url":"https://api.github.com/repos/blacksphere/blackmagic/issues/75/events","html_url":"https://github.com/blacksphere/blackmagic/pull/75","id":55378162,"number":75,"title":"STM32Lx target support.","user":{"login":"beewoolie","id":319183,"avatar_url":"https://avatars.githubusercontent.com/u/319183?v=3","gravatar_id":"","url":"https://api.github.com/users/beewoolie","html_url":"https://github.com/beewoolie","followers_url":"https://api.github.com/users/beewoolie/followers","following_url":"https://api.github.com/users/beewoolie/following{/other_user}","gists_url":"https://api.github.com/users/beewoolie/gists{/gist_id}","starred_url":"https://api.github.com/users/beewoolie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beewoolie/subscriptions","organizations_url":"https://api.github.com/users/beewoolie/orgs","repos_url":"https://api.github.com/users/beewoolie/repos","events_url":"https://api.github.com/users/beewoolie/events{/privacy}","received_events_url":"https://api.github.com/users/beewoolie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-01-24T17:24:25Z","updated_at":"2015-03-08T20:27:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/blacksphere/blackmagic/pulls/75","html_url":"https://github.com/blacksphere/blackmagic/pull/75","diff_url":"https://github.com/blacksphere/blackmagic/pull/75.diff","patch_url":"https://github.com/blacksphere/blackmagic/pull/75.patch"},"body":"Target support for stm32l0's and stm32l1's including option bytes and\r\ndata EEPROM.  This module will superceed the previous stm32l1 driver.\r\n\r\no Program flash write and erase.\r\no Options modification and interpretive status.\r\no Stubs for program flash writes and erases.  Stubs are modestly\r\n  faster than non-stub version.   The stm32l0 will not execute stubs\r\n  when the MCU has crashed.  A monitor option may be used to force\r\n  non-stub flash writes.\r\no Stubs generated from C++ code and converted to arrays of half-words.\r\no Writes to data EEPROM supoprted when loading segments.\r\no EEPROM data monitor command to write words.\r\no Stubs supported on stm32l1."},"comment":{"url":"https://api.github.com/repos/blacksphere/blackmagic/issues/comments/77772190","html_url":"https://github.com/blacksphere/blackmagic/pull/75#issuecomment-77772190","issue_url":"https://api.github.com/repos/blacksphere/blackmagic/issues/75","id":77772190,"user":{"login":"beewoolie","id":319183,"avatar_url":"https://avatars.githubusercontent.com/u/319183?v=3","gravatar_id":"","url":"https://api.github.com/users/beewoolie","html_url":"https://github.com/beewoolie","followers_url":"https://api.github.com/users/beewoolie/followers","following_url":"https://api.github.com/users/beewoolie/following{/other_user}","gists_url":"https://api.github.com/users/beewoolie/gists{/gist_id}","starred_url":"https://api.github.com/users/beewoolie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beewoolie/subscriptions","organizations_url":"https://api.github.com/users/beewoolie/orgs","repos_url":"https://api.github.com/users/beewoolie/repos","events_url":"https://api.github.com/users/beewoolie/events{/privacy}","received_events_url":"https://api.github.com/users/beewoolie/received_events","type":"User","site_admin":false},"created_at":"2015-03-08T20:27:12Z","updated_at":"2015-03-08T20:27:12Z","body":"\n\nOn 3/8/15 11:41 AM, Marc Singer wrote:\n>\n>>\n>> > The other reason to not build them is that the conversion depends on a\n>> > Perl script and I wouldn't want to add that kind of dependency to the\n>> > build unless there is a significant justification.\n>>\n>> Following on above, the compiled stub can be dumped to binary with \n>> objdump,\n>> and converted into includable form with hexdump, this saves us the \n>> perl script\n>> and dependence on perl to regenerate the stubs.\n> Hmm.  I've done this as well in the past.  I don't recall why I didn't \n> do so this time.  I'll revisit this step.\n\nObjcopy (not objdump) will dump to binary.  However, it doesn't generate \nthe correct byte stream.  I changed the parse to use sed and removed the \nsource code.  The stub is just the instruction stream.\n\n"}}