{"id":2356,"date":"2018-04-04T09:39:08","date_gmt":"2018-04-04T07:39:08","guid":{"rendered":"http:\/\/mikrocontroller.bplaced.net\/wordpress\/?p=2356"},"modified":"2018-04-04T09:40:20","modified_gmt":"2018-04-04T07:40:20","slug":"stm32f7-discovery-board-mit-st-link-utility-flashen","status":"publish","type":"post","link":"https:\/\/mikrocontroller.bplaced.net\/wordpress\/?p=2356","title":{"rendered":"STM32F7 Discovery Board mit ST-Link Utility flashen"},"content":{"rendered":"<p>Hallo Mikrocontroller Fans,<\/p>\n<p>dieser Beitrag ist f\u00fcr Neueinsteiger gedacht und beschreibt das Flashen eures\u00a0<strong>STM32F7 Discovery Boards<\/strong> mittels <strong>STM32 ST-Link Utility<\/strong>. Eigentlich kann damit jedes Bin- oder Hexfile, welches hier in einem der\u00a0<a href=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/?page_id=1444\">STM32F746 Demo Projekte<\/a> oder <a href=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/?page_id=591\">STM32F746 Show Projekte<\/a> heruntergeladen werden kann, auf dein\u00a0STM32F7 Discovery Board geflasht werden. Als Beispiel werde ich aber das <strong>Original Demo Programm<\/strong> mit dem das\u00a0STM32F7 Discovery Board ausgeliefert wurde flashen.<\/p>\n<p>Hier die einzelnen Schritte in der \u00dcbersicht:<\/p>\n<ol>\n<li>Herunterladen und auspacken der STM32CubeF7 Software<\/li>\n<li>Herunterladen und Installieren des STM32 ST-Link Utility<\/li>\n<li>Starten des STM32 ST-Link Utility<\/li>\n<li>Externer Loader einrichten<\/li>\n<li>Binfile (oder Hexfile) laden<\/li>\n<li>STM32F7 Discovery Board verbinden<\/li>\n<li>STM32F7 Discovery Board flashen<\/li>\n<\/ol>\n<p>Und hier die Schritte im Detail:<\/p>\n<p><strong>Schritt 1.)<\/strong><\/p>\n<p>Startet diese Seite <a href=\"http:\/\/www.st.com\/en\/embedded-software\/stm32cubef7.html\" target=\"_blank\" rel=\"noopener\"><strong>www.st.com\/en\/embedded-software\/stm32cubef7.html<\/strong><\/a> und navigiert ganz nach unten zu dem Abschnitt GET SOFTWARE. Dort in der Tabelle bei Part Number\u00a0<strong>STM32CubeF7<\/strong> den Button <strong>Get Software<\/strong> dr\u00fccken. Damit sollte das Zipfile\u00a0<strong>en.stm32cubef7.zip<\/strong> heruntergeladen werden. Entpackt es auf eurem Rechner und merkt euch den Dateipfad.<\/p>\n<p><strong>Schritt 2.)<\/strong><\/p>\n<p>Startet diese Seite\u00a0<a href=\"http:\/\/www.st.com\/en\/development-tools\/stsw-link004.html\" target=\"_blank\" rel=\"noopener\"><strong>www.st.com\/en\/development-tools\/stsw-link004.html<\/strong><\/a> und\u00a0navigiert ganz nach unten zu dem Abschnitt GET SOFTWARE. Dort in der Tabelle bei Part Number <strong>STSW-LINK004<\/strong>\u00a0den Button <strong>Get Software<\/strong> dr\u00fccken. Damit sollte das Zipfile <strong>en.stsw-link004.zip<\/strong>\u00a0heruntergeladen werden.\u00a0 Entpackt es auf eurem Rechner und f\u00fchrt die darin enthaltene Exe-Datei\u00a0<strong>STM32 ST-LINK Utility v4.2.0 setup.exe<\/strong> aus, um das\u00a0STM32 ST-LINK Utility zu installieren. Nach der Installation habt ihr auf dem Desktop das Start-Icon:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2363 size-full\" src=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_0.jpg\" alt=\"\" width=\"126\" height=\"80\" \/><\/p>\n<p><strong>Schritt 3.)<\/strong><\/p>\n<p>Startet das STM32 ST-Link Utility.<\/p>\n<p><a href=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2364\" src=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_1-300x220.jpg\" alt=\"\" width=\"300\" height=\"220\" srcset=\"https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_1-300x220.jpg 300w, https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_1-768x562.jpg 768w, https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_1.jpg 818w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Schritt 4.)<\/strong><\/p>\n<p>Zuerst f\u00fcgt ihr einen externer Loader f\u00fcr euer STM32F7 Discovery Board hinzu.<\/p>\n<p><a href=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2365\" src=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_2-300x220.jpg\" alt=\"\" width=\"300\" height=\"220\" srcset=\"https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_2-300x220.jpg 300w, https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_2-768x562.jpg 768w, https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_2.jpg 818w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>In der Liste ist es der Eintrag mit dem Namen\u00a0<strong>N25Q128A_STM32F746G-DISCO<\/strong> anhaken und auf den Button validieren dr\u00fccken.<\/p>\n<p><a href=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2366\" src=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_3-300x165.jpg\" alt=\"\" width=\"300\" height=\"165\" srcset=\"https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_3-300x165.jpg 300w, https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_3.jpg 571w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Schritt 5.)<\/strong><\/p>\n<p>Das Binfile (oder Hexfile) der Demo befindet sich im Zipfile\u00a0<strong>en.stm32cubef7.zip<\/strong>, welches\u00a0 ihr ja schon im Schritt 1 heruntergeladen und ausgepackt habt. \u00d6ffnet \u00fcber das Men\u00fc den Men\u00fcpunkt &#8222;<em>Open File&#8230; (CTRL+O)<\/em>&#8220; um das Hexfile <strong>STM32746G-DISCO_Demo_V1.4.0.hex\u00a0<\/strong>zu laden.<\/p>\n<p>Dieses Hexfile befindet sich in folgendem Verzeichnis:<\/p>\n<p>..\\STM32Cube_FW_F7_V1.11.0\\Projects\\STM32746G-Discovery\\Demonstration\\STemWin\\Binaries\\<\/p>\n<p><a href=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2368\" src=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_4-300x220.jpg\" alt=\"\" width=\"300\" height=\"220\" srcset=\"https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_4-300x220.jpg 300w, https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_4-768x562.jpg 768w, https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_4.jpg 818w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Schritt 6.)<\/strong><\/p>\n<p>Jetzt steckt ihr ein USB Kabel in die USB ST-Link Buchse und verbindet es mit eurem PC. Im STM32 ST-Utility w\u00e4hlt ihr \u00fcber das Men\u00fc den Men\u00fcpunkt &#8222;<em>Connect<\/em>&#8222;.<\/p>\n<p><a href=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2367\" src=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_5-300x220.jpg\" alt=\"\" width=\"300\" height=\"220\" srcset=\"https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_5-300x220.jpg 300w, https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_5-768x562.jpg 768w, https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_5.jpg 818w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Schritt 7.)<\/strong><\/p>\n<p>Zum eigenlichen flashen (bzw. programmieren) w\u00e4hlt ihr im Men\u00fc den Men\u00fcpunkt &#8222;<em>Program&#8230;<\/em>&#8222;.<\/p>\n<p><a href=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2369\" src=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_6-300x220.jpg\" alt=\"\" width=\"300\" height=\"220\" srcset=\"https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_6-300x220.jpg 300w, https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_6-768x562.jpg 768w, https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_6.jpg 818w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&#8230; und dr\u00fcckt dann den Button &#8222;<em>Start<\/em>&#8222;.<\/p>\n<p><a href=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2370\" src=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_7-300x207.jpg\" alt=\"\" width=\"300\" height=\"207\" srcset=\"https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_7-300x207.jpg 300w, https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_7.jpg 461w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Das Flashen kann mehrer Minuten dauern. Am Ende sollte die gr\u00fcne Erfolgsmeldung im Statusfenster zu lesen sein. Das Discovery Board wird danach automatisch neu durchgestartet.<\/p>\n<p><a href=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_8.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2371\" src=\"http:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_8-300x220.jpg\" alt=\"\" width=\"300\" height=\"220\" srcset=\"https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_8-300x220.jpg 300w, https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_8-768x562.jpg 768w, https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/uploads\/2018\/04\/STM32_ST_LINK_Utility_8.jpg 818w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Das war&#8217;s. Falls Ihr noch Fragen habe, dann ab damit in die Kommentare;)<\/p>\n<p>Viel Erfolg, Manfred<\/p>\n<span id=\"post-ratings-2356\" class=\"post-ratings\" data-nonce=\"cbcfc019e9\"><img decoding=\"async\" id=\"rating_2356_1\" src=\"https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/plugins-secure\/wp-postratings\/images\/stars\/rating_on.gif\" alt=\"1 Stern\" title=\"1 Stern\" onmouseover=\"current_rating(2356, 1, '1 Stern');\" onmouseout=\"ratings_off(5, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img decoding=\"async\" id=\"rating_2356_2\" src=\"https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/plugins-secure\/wp-postratings\/images\/stars\/rating_on.gif\" alt=\"2 Sterne\" title=\"2 Sterne\" onmouseover=\"current_rating(2356, 2, '2 Sterne');\" onmouseout=\"ratings_off(5, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img decoding=\"async\" id=\"rating_2356_3\" src=\"https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/plugins-secure\/wp-postratings\/images\/stars\/rating_on.gif\" alt=\"3 Sterne\" title=\"3 Sterne\" onmouseover=\"current_rating(2356, 3, '3 Sterne');\" onmouseout=\"ratings_off(5, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img decoding=\"async\" id=\"rating_2356_4\" src=\"https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/plugins-secure\/wp-postratings\/images\/stars\/rating_on.gif\" alt=\"4 Sterne\" title=\"4 Sterne\" onmouseover=\"current_rating(2356, 4, '4 Sterne');\" onmouseout=\"ratings_off(5, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/><img decoding=\"async\" id=\"rating_2356_5\" src=\"https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/plugins-secure\/wp-postratings\/images\/stars\/rating_on.gif\" alt=\"5 Sterne\" title=\"5 Sterne\" onmouseover=\"current_rating(2356, 5, '5 Sterne');\" onmouseout=\"ratings_off(5, 0, 0);\" onclick=\"rate_post();\" onkeypress=\"rate_post();\" style=\"cursor: pointer; border: 0px;\" \/> (<strong>3<\/strong> Bewertungen, Durchschnitt: <strong>5,00<\/strong> von 5)<br \/><span class=\"post-ratings-text\" id=\"ratings_2356_text\"><\/span><\/span><span id=\"post-ratings-2356-loading\" class=\"post-ratings-loading\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mikrocontroller.bplaced.net\/wordpress\/wp-content\/plugins-secure\/wp-postratings\/images\/loading.gif\" width=\"16\" height=\"16\" class=\"post-ratings-image\" \/>Loading...<\/span>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hallo Mikrocontroller Fans, dieser Beitrag ist f\u00fcr Neueinsteiger gedacht und beschreibt das Flashen eures\u00a0STM32F7 Discovery Boards mittels STM32 ST-Link Utility. Eigentlich kann damit jedes Bin- oder Hexfile, welches hier in einem der\u00a0STM32F746 Demo Projekte oder STM32F746 Show Projekte heruntergeladen werden &hellip; <a href=\"https:\/\/mikrocontroller.bplaced.net\/wordpress\/?p=2356\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[130],"tags":[306,294,307,308],"class_list":["post-2356","post","type-post","status-publish","format-standard","hentry","category-stm32f746","tag-st-link-utility","tag-stm32","tag-stm32cubef7","tag-stsw-link004"],"_links":{"self":[{"href":"https:\/\/mikrocontroller.bplaced.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mikrocontroller.bplaced.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mikrocontroller.bplaced.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mikrocontroller.bplaced.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mikrocontroller.bplaced.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2356"}],"version-history":[{"count":11,"href":"https:\/\/mikrocontroller.bplaced.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2356\/revisions"}],"predecessor-version":[{"id":2376,"href":"https:\/\/mikrocontroller.bplaced.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2356\/revisions\/2376"}],"wp:attachment":[{"href":"https:\/\/mikrocontroller.bplaced.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mikrocontroller.bplaced.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mikrocontroller.bplaced.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}