
{"id":153,"date":"2015-01-29T17:16:57","date_gmt":"2015-01-29T17:16:57","guid":{"rendered":"http:\/\/www.elvisneedsboats.com\/?p=153"},"modified":"2015-08-14T21:12:40","modified_gmt":"2015-08-14T21:12:40","slug":"openocd-for-braillebuzz-stm32f103","status":"publish","type":"post","link":"https:\/\/timallen.name\/index.php\/2015\/01\/29\/openocd-for-braillebuzz-stm32f103\/","title":{"rendered":"OpenOCD for BrailleBuzz (STM32F103)"},"content":{"rendered":"<p>This is my convenience stuff for working with openOCD. &#8220;debug&#8221; loads the &#8220;executable&#8221; bin and halts the MCU. &#8220;run&#8221; loads the &#8220;executable&#8221; bin and starts it running. &#8220;samples&#8221; loads some data in to the second bank of flash.<\/p>\n<pre class=\"lang:default decode:true \" title=\"openocd.cfg\" >\r\nsource [find interface\/ftdi\/olimex-arm-usb-ocd-h.cfg]\r\n#source [find interface\/ftdi\/flyswatter2.cfg]\r\n\r\n# GDB can also flash my flash!\r\ngdb_memory_map enable\r\ngdb_flash_program enable\r\n\r\n#source [find target\/stm32f1x.cfg]\r\nsource [find target\/stm32xl.cfg]\r\nsource [find chip\/st\/stm32\/stm32.tcl]\r\n\r\nproc debug {} {\r\n\treset halt\r\n\tflash probe 0 \r\n\tstm32f1x mass_erase 0\r\n\tflash write_bank 0 main.bin 0\r\n\treset init\r\n}\r\n\r\nproc run {} {\r\n\treset halt\r\n\tflash probe 0 \r\n\tstm32f1x mass_erase 0\r\n\tflash write_bank 0 main.bin 0\r\n\treset run\r\n}\r\n\r\nproc samples {} {\r\n\treset halt\r\n\tflash probe 1 \r\n\tstm32f1x mass_erase 1\r\n\tflash write_bank 1 samples.bin 0\r\n\treset init\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is my convenience stuff for working with openOCD. &#8220;debug&#8221; loads the &#8220;executable&#8221; bin and halts the MCU. &#8220;run&#8221; loads the &#8220;executable&#8221; bin and starts it running. &#8220;samples&#8221; loads some data in to the second bank of flash. source [find interface\/ftdi\/olimex-arm-usb-ocd-h.cfg] #source [find interface\/ftdi\/flyswatter2.cfg] # GDB can also flash my flash! gdb_memory_map enable gdb_flash_program enable &hellip; <a href=\"https:\/\/timallen.name\/index.php\/2015\/01\/29\/openocd-for-braillebuzz-stm32f103\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">OpenOCD for BrailleBuzz (STM32F103)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,8],"tags":[],"class_list":["post-153","post","type-post","status-publish","format-standard","hentry","category-aph","category-embedded"],"_links":{"self":[{"href":"https:\/\/timallen.name\/index.php\/wp-json\/wp\/v2\/posts\/153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/timallen.name\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/timallen.name\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/timallen.name\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/timallen.name\/index.php\/wp-json\/wp\/v2\/comments?post=153"}],"version-history":[{"count":5,"href":"https:\/\/timallen.name\/index.php\/wp-json\/wp\/v2\/posts\/153\/revisions"}],"predecessor-version":[{"id":240,"href":"https:\/\/timallen.name\/index.php\/wp-json\/wp\/v2\/posts\/153\/revisions\/240"}],"wp:attachment":[{"href":"https:\/\/timallen.name\/index.php\/wp-json\/wp\/v2\/media?parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/timallen.name\/index.php\/wp-json\/wp\/v2\/categories?post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/timallen.name\/index.php\/wp-json\/wp\/v2\/tags?post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}