{"id":79,"date":"2022-01-30T00:27:31","date_gmt":"2022-01-29T21:27:31","guid":{"rendered":"http:\/\/me.my-gnuradio.org\/?p=79"},"modified":"2022-01-30T00:27:32","modified_gmt":"2022-01-29T21:27:32","slug":"stm32f411-black-pill-usb-libopencm3-bug","status":"publish","type":"post","link":"https:\/\/me.unna.me\/?p=79","title":{"rendered":"STM32F411 &#171;Black Pill&#187; USB &#038; Libopencm3 bug"},"content":{"rendered":"\n<p>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0437\u0430\u043c\u0435\u0442\u043a\u0430 \u043f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043c \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u0433\u0430 \u0441 \u043d\u0435\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 USB \u0441 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 LibOpenCm3 \u0434\u043b\u044f \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0439 \u043f\u043b\u0430\u0442\u043a\u0438 WeAct &#171;Black Pill&#187; v2.0.<br>\u0415\u0441\u043b\u0438 \u043d\u0435 \u0443 \u0432\u0430\u0441 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0434\u043b\u044f USB, \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442 \u044d\u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0442\u043e \u0432\u0430\u043c \u043d\u0430\u0434\u043e:<\/p>\n\n\n\n<ol><li>\u0417\u0430\u0438\u043d\u043a\u043b\u044e\u0434\u0438\u0442\u044c otg_fs.h<br><code>#include &lt;libopencm3\/usb\/dwc\/otg_fs.h><\/code><\/li><li>\u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u0437\u043e\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 usbd_init \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c VBUS sensing<br><code>OTG_FS_GCCFG |= OTG_GCCFG_NOVBUSSENS | OTG_GCCFG_PWRDWN;<\/code><br><code>OTG_FS_GCCFG &amp;= ~(OTG_GCCFG_VBUSBSEN | OTG_GCCFG_VBUSASEN);<\/code><\/li><\/ol>\n\n\n\n<p>\u0424\u0438\u043a\u0441-\u0440\u0435\u043a\u0432\u0435\u0441\u0442 \u0432\u0441\u0435 \u0435\u0449\u0435 \u0441 2020 \u0433\u043e\u0434\u0430 \u0436\u0434\u0435\u0442 \u043c\u0435\u0440\u0436\u0430.<br><a href=\"https:\/\/github.com\/libopencm3\/libopencm3\/pull\/1256\">https:\/\/github.com\/libopencm3\/libopencm3\/pull\/1256<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0437\u0430\u043c\u0435\u0442\u043a\u0430 \u043f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043c \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u0433\u0430 \u0441 \u043d\u0435\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 USB \u0441 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 LibOpenCm3 \u0434\u043b\u044f \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0439 \u043f\u043b\u0430\u0442\u043a\u0438 WeAct &#171;Black Pill&#187; v2.0.\u0415\u0441\u043b\u0438 \u043d\u0435 \u0443 \u0432\u0430\u0441 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0434\u043b\u044f USB, \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442 \u044d\u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0442\u043e \u0432\u0430\u043c \u043d\u0430\u0434\u043e: \u0417\u0430\u0438\u043d\u043a\u043b\u044e\u0434\u0438\u0442\u044c otg_fs.h#include &lt;libopencm3\/usb\/dwc\/otg_fs.h> \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u0437\u043e\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 usbd_init \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c VBUS sensingOTG_FS_GCCFG |= OTG_GCCFG_NOVBUSSENS | OTG_GCCFG_PWRDWN;OTG_FS_GCCFG &amp;= ~(OTG_GCCFG_VBUSBSEN &hellip; <a href=\"https:\/\/me.unna.me\/?p=79\" class=\"more-link\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435<span class=\"screen-reader-text\"> \u00abSTM32F411 &#171;Black Pill&#187; USB &#038; Libopencm3 bug\u00bb<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[1],"tags":[13,15,14,16],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>STM32F411 &quot;Black Pill&quot; USB &amp; Libopencm3 bug - Digital Delirium<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/me.unna.me\/?p=79\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"STM32F411 &quot;Black Pill&quot; USB &amp; Libopencm3 bug - Digital Delirium\" \/>\n<meta name=\"twitter:description\" content=\"\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0437\u0430\u043c\u0435\u0442\u043a\u0430 \u043f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043c \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u0433\u0430 \u0441 \u043d\u0435\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 USB \u0441 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 LibOpenCm3 \u0434\u043b\u044f \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0439 \u043f\u043b\u0430\u0442\u043a\u0438 WeAct &#171;Black Pill&#187; v2.0.\u0415\u0441\u043b\u0438 \u043d\u0435 \u0443 \u0432\u0430\u0441 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0434\u043b\u044f USB, \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442 \u044d\u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0442\u043e \u0432\u0430\u043c \u043d\u0430\u0434\u043e: \u0417\u0430\u0438\u043d\u043a\u043b\u044e\u0434\u0438\u0442\u044c otg_fs.h#include &lt;libopencm3\/usb\/dwc\/otg_fs.h&gt; \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u0437\u043e\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 usbd_init \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c VBUS sensingOTG_FS_GCCFG |= OTG_GCCFG_NOVBUSSENS | OTG_GCCFG_PWRDWN;OTG_FS_GCCFG &amp;= ~(OTG_GCCFG_VBUSBSEN &hellip; \u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 \u00abSTM32F411 &#171;Black Pill&#187; USB &#038; Libopencm3 bug\u00bb\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/me.unna.me\/?p=79\",\"url\":\"https:\/\/me.unna.me\/?p=79\",\"name\":\"STM32F411 \\\"Black Pill\\\" USB & Libopencm3 bug - Digital Delirium\",\"isPartOf\":{\"@id\":\"https:\/\/me.unna.me\/#website\"},\"datePublished\":\"2022-01-29T21:27:31+00:00\",\"dateModified\":\"2022-01-29T21:27:32+00:00\",\"author\":{\"@id\":\"https:\/\/me.unna.me\/#\/schema\/person\/6142f83a7613df7bf888961fa0d609fb\"},\"breadcrumb\":{\"@id\":\"https:\/\/me.unna.me\/?p=79#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/me.unna.me\/?p=79\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/me.unna.me\/?p=79#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/me.unna.me\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"STM32F411 &#171;Black Pill&#187; USB &#038; Libopencm3 bug\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/me.unna.me\/#website\",\"url\":\"https:\/\/me.unna.me\/\",\"name\":\"Digital Delirium\",\"description\":\"\u041b\u0435\u043d\u0442\u044f\u0439 \u0441 \u043f\u0430\u044f\u043b\u044c\u043d\u0438\u043a\u043e\u043c aka R3TIM\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/me.unna.me\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/me.unna.me\/#\/schema\/person\/6142f83a7613df7bf888961fa0d609fb\",\"name\":\"Igor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/me.unna.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/bae95594f546856805c59da005d5da6d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/bae95594f546856805c59da005d5da6d?s=96&d=mm&r=g\",\"caption\":\"Igor\"},\"url\":\"https:\/\/me.unna.me\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"STM32F411 \"Black Pill\" USB & Libopencm3 bug - Digital Delirium","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/me.unna.me\/?p=79","twitter_card":"summary_large_image","twitter_title":"STM32F411 \"Black Pill\" USB & Libopencm3 bug - Digital Delirium","twitter_description":"\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0437\u0430\u043c\u0435\u0442\u043a\u0430 \u043f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043c \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u0433\u0430 \u0441 \u043d\u0435\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 USB \u0441 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 LibOpenCm3 \u0434\u043b\u044f \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0439 \u043f\u043b\u0430\u0442\u043a\u0438 WeAct &#171;Black Pill&#187; v2.0.\u0415\u0441\u043b\u0438 \u043d\u0435 \u0443 \u0432\u0430\u0441 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0434\u043b\u044f USB, \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442 \u044d\u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0442\u043e \u0432\u0430\u043c \u043d\u0430\u0434\u043e: \u0417\u0430\u0438\u043d\u043a\u043b\u044e\u0434\u0438\u0442\u044c otg_fs.h#include &lt;libopencm3\/usb\/dwc\/otg_fs.h> \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u0437\u043e\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 usbd_init \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c VBUS sensingOTG_FS_GCCFG |= OTG_GCCFG_NOVBUSSENS | OTG_GCCFG_PWRDWN;OTG_FS_GCCFG &amp;= ~(OTG_GCCFG_VBUSBSEN &hellip; \u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 \u00abSTM32F411 &#171;Black Pill&#187; USB &#038; Libopencm3 bug\u00bb","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/me.unna.me\/?p=79","url":"https:\/\/me.unna.me\/?p=79","name":"STM32F411 \"Black Pill\" USB & Libopencm3 bug - Digital Delirium","isPartOf":{"@id":"https:\/\/me.unna.me\/#website"},"datePublished":"2022-01-29T21:27:31+00:00","dateModified":"2022-01-29T21:27:32+00:00","author":{"@id":"https:\/\/me.unna.me\/#\/schema\/person\/6142f83a7613df7bf888961fa0d609fb"},"breadcrumb":{"@id":"https:\/\/me.unna.me\/?p=79#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/me.unna.me\/?p=79"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/me.unna.me\/?p=79#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/me.unna.me\/"},{"@type":"ListItem","position":2,"name":"STM32F411 &#171;Black Pill&#187; USB &#038; Libopencm3 bug"}]},{"@type":"WebSite","@id":"https:\/\/me.unna.me\/#website","url":"https:\/\/me.unna.me\/","name":"Digital Delirium","description":"\u041b\u0435\u043d\u0442\u044f\u0439 \u0441 \u043f\u0430\u044f\u043b\u044c\u043d\u0438\u043a\u043e\u043c aka R3TIM","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/me.unna.me\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ru-RU"},{"@type":"Person","@id":"https:\/\/me.unna.me\/#\/schema\/person\/6142f83a7613df7bf888961fa0d609fb","name":"Igor","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/me.unna.me\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/bae95594f546856805c59da005d5da6d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bae95594f546856805c59da005d5da6d?s=96&d=mm&r=g","caption":"Igor"},"url":"https:\/\/me.unna.me\/?author=1"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9oabo-1h","_links":{"self":[{"href":"https:\/\/me.unna.me\/index.php?rest_route=\/wp\/v2\/posts\/79"}],"collection":[{"href":"https:\/\/me.unna.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/me.unna.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/me.unna.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/me.unna.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=79"}],"version-history":[{"count":1,"href":"https:\/\/me.unna.me\/index.php?rest_route=\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":80,"href":"https:\/\/me.unna.me\/index.php?rest_route=\/wp\/v2\/posts\/79\/revisions\/80"}],"wp:attachment":[{"href":"https:\/\/me.unna.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/me.unna.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/me.unna.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}