{"id":254,"date":"2022-11-28T13:21:00","date_gmt":"2022-11-28T13:21:00","guid":{"rendered":"http:\/\/michaeltsmith.org.uk\/?p=254"},"modified":"2022-12-12T22:20:29","modified_gmt":"2022-12-12T22:20:29","slug":"getting-the-blinky-example-working-for-the-da14531-using-the-microvision-ide","status":"publish","type":"post","link":"http:\/\/michaeltsmith.org.uk\/?p=254","title":{"rendered":"Getting the blinky example working for the DA14531 using the microvision IDE"},"content":{"rendered":"<p>I went through the process of installing all the bits mentioned <a href=\"http:\/\/lpccs-docs.renesas.com\/UM-B-121-USB-Getting-Started-Guide\/01_DA14531_USB_Developement_Kit\/usb_kit.html\">here<\/a> (had to get a windows laptop in the end to use it).<\/p>\n<p>The instructions on the <a href=\"http:\/\/lpccs-docs.renesas.com\/UM-B-117-DA14531-Getting-Started-With-The-Pro-Development-Kit\/06_Your_First_DA145x_Applications\/Your_First_DA145x_Applications.html\">blinky page<\/a> might be for the full programmer rather than the &#8220;USB&#8221; version.<\/p>\n<p>I had the sample problem as <a href=\"https:\/\/support.dialog-semiconductor.com\/forums\/post\/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software\/da14531-kit-usb-blinky-example-problem\">here<\/a>: The demo that comes preloaded worked, but the blinky program didn&#8217;t seem to be able to communicate on the UART. I eventually found the answer in <a href=\"https:\/\/www.renesas.com\/us\/en\/document\/mat\/um-b-125-user-manual-da14531-usb-development-kit-hardware\">this doc:<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-255\" src=\"http:\/\/michaeltsmith.org.uk\/wp-content\/uploads\/2022\/11\/Screenshot-from-2022-11-28-13-18-47.png\" alt=\"help from the manual\" width=\"778\" height=\"858\" srcset=\"http:\/\/michaeltsmith.org.uk\/wp-content\/uploads\/2022\/11\/Screenshot-from-2022-11-28-13-18-47.png 778w, http:\/\/michaeltsmith.org.uk\/wp-content\/uploads\/2022\/11\/Screenshot-from-2022-11-28-13-18-47-272x300.png 272w, http:\/\/michaeltsmith.org.uk\/wp-content\/uploads\/2022\/11\/Screenshot-from-2022-11-28-13-18-47-768x847.png 768w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/p>\n<p>The instructions on the forum post were close, but I simply had to change the pin from a 6 to a 5 in:<\/p>\n<pre>#define UART2_TX_PIN\u00a0\u00a0\u00a0 GPIO_PIN_5<\/pre>\n<p>in user_periph_setup.h.<\/p>\n<h2>Edit\/Addition: Adding serial communication<\/h2>\n<p>I wanted to get feedback via the serial port, but it seemed to just output the default message about the address of the device. I eventually found that the serial port could be enabled by modifying line 163 in <strong><tt>da1458x_config_basic.h<\/tt><\/strong>, which I wasn&#8217;t expecting as I&#8217;m using a da14531. Anyway, replace the line:<\/p>\n<pre>#undef CFG_PRINTF<\/pre>\n<p>with<\/p>\n<pre>#define CFG_PRINTF<\/pre>\n<p>simple!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I went through the process of installing all the bits mentioned here (had to get a windows laptop in the end to use it). The instructions on the blinky page might be for the full programmer rather than the &#8220;USB&#8221; version. I had the sample problem as here: The demo that comes preloaded worked, but &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/michaeltsmith.org.uk\/?p=254\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Getting the blinky example working for the DA14531 using the microvision IDE&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-254","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=254"}],"version-history":[{"count":4,"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/254\/revisions"}],"predecessor-version":[{"id":260,"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/254\/revisions\/260"}],"wp:attachment":[{"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=254"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}