﻿{"id":458,"date":"2018-05-15T20:35:32","date_gmt":"2018-05-15T17:35:32","guid":{"rendered":"http:\/\/allchina.a-lisa.org\/?p=458"},"modified":"2019-04-06T11:25:52","modified_gmt":"2019-04-06T08:25:52","slug":"%d0%b1%d1%8b%d1%81%d1%82%d1%80%d1%8b%d0%b9-%d1%81%d1%82%d0%b0%d1%80%d1%82-stm32f103c8t6-arduino-ide","status":"publish","type":"post","link":"https:\/\/allchina.a-lisa.org\/?p=458","title":{"rendered":"\u0411\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u0442\u0430\u0440\u0442 STM32F103C8T6 + Arduino IDE"},"content":{"rendered":"<h2>\u0411\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u0442\u0430\u0440\u0442 STM32F103C8T6 + Arduino IDE<\/h2>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u043e: 25 \u0444\u0435\u0432\u0440\u0430\u043b\u044f 2016<\/p>\n<p>\u041e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430 F103C8T6 \u043d\u0430 \u0431\u0430\u0437\u0435 STM32 \u043f\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u043f\u0435\u0440\u0435\u0436\u0430\u0435\u0442 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0447\u043d\u044b\u0435 \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443 Arduino Nano \u0438\u043b\u0438 Leonardo, \u0430 \u043f\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0431\u043b\u0438\u0437\u043a\u0430 \u043a Arduino DUE. \u0415\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u0443 \u043d\u043e\u0432\u0438\u0447\u043a\u0430 \u043c\u043e\u0433\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u0441 \u043f\u0435\u0440\u0432\u044b\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u044b. \u0422\u0435\u043f\u0435\u0440\u044c \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043b\u0438\u0432\u0430\u0442\u044c \u0441\u043a\u0435\u0442\u0447\u0438 \u0447\u0435\u0440\u0435\u0437 Arduino IDE. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0434\u0430\u043b\u0435\u0435&#8230;<\/p>\n<p><!--more--><\/p>\n<h3>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/h3>\n<ol>\n<li>\u041e\u0442\u043b\u0438\u0447\u0438\u044f <a href=\"http:\/\/www.2150692.ru\/product\/view\/9\/275\">STM32F103C8T6 <\/a>\u043e\u0442 <a href=\"http:\/\/www.2150692.ru\/tovary\/arduino\/product\/view\/9\/34\">Arduino Nano v3.0<\/a><\/li>\n<li>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0436\u0435\u043b\u0435\u0437\u0430<\/li>\n<li>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u041f\u041e<\/li>\n<li>\u0417\u0430\u043a\u0430\u0447\u043a\u0430 \u0441\u043a\u0435\u0442\u0447\u0430 (blink) \u0432 \u043f\u043b\u0430\u0442\u0443<\/li>\n<\/ol>\n<h4>1. \u041e\u0442\u043b\u0438\u0447\u0438\u044f STM32F103C8T6 \u043e\u0442 Arduino Nano v3.0<\/h4>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n<tbody>\n<tr>\n<th>STM32F103C8T6<\/th>\n<th>Arduino<br \/>\nNano v3.0<\/th>\n<\/tr>\n<tr>\n<td>\u0427\u0430\u0441\u0442\u043e\u0442\u0430 \u044f\u0434\u0440\u0430<\/td>\n<td>72 \u041c\u0413\u0446<\/td>\n<td>16 \u041c\u0413\u0446<\/td>\n<\/tr>\n<tr>\n<td>\u041f\u0430\u043c\u044f\u0442\u044c \u0434\u043b\u044f \u043a\u043e\u0434\u0430 (Flash)<\/td>\n<td>64 \u043a\u0431\u0430\u0439\u0442\u0430<\/td>\n<td>32 \u043a\u0431\u0430\u0439\u0442\u0430<\/td>\n<\/tr>\n<tr>\n<td>\u041f\u0430\u043c\u044f\u0442\u044c \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u041e\u0417\u0423 (SRAM)<\/td>\n<td>20 \u043a\u0431\u0430\u0439\u0442<\/td>\n<td>2 \u043a\u0431\u0430\u0439\u0442\u0430<\/td>\n<\/tr>\n<tr>\n<td>\u0420\u0430\u0431\u043e\u0447\u0435\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435<\/td>\n<td>3.3\u0412<\/td>\n<td>5\u0412<\/td>\n<\/tr>\n<tr>\n<td>\u041f\u0430\u043c\u044f\u0442\u044c EEPROM<\/td>\n<td>\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442, \u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442<br \/>\n\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u044b<\/td>\n<td>1 \u043a\u0431\u0430\u0439\u0442<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>2. \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0436\u0435\u043b\u0435\u0437\u0430<\/h4>\n<p>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f:<\/p>\n<ul>\n<li>\u0421\u0430\u043c\u0430 \u043f\u043b\u0430\u0442\u0430 <a href=\"http:\/\/www.2150692.ru\/product\/view\/9\/275\">STM32F103C8T6<\/a><\/li>\n<li><a href=\"http:\/\/www.2150692.ru\/product\/view\/23\/196\">\u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440 FTDI USB-TTL<\/a><\/li>\n<li>\u0421\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0430 <a href=\"http:\/\/www.2150692.ru\/tovary\/cables\/product\/view\/14\/56\">Dupont \u043c\u0430\u043c\u0430-\u043c\u0430\u043c\u0430<\/a><\/li>\n<\/ul>\n<p>\u0414\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0440\u0435\u0436\u0438\u043c\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 STM \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u0435\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u044b\u0447\u043a\u0438: \u043f\u0435\u0440\u0432\u0430\u044f \u043d\u0430 1, \u0432\u0442\u043e\u0440\u0430\u044f \u043d\u0430 0.<\/p>\n<p>\u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440 FTDI \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u0430 \u043f\u0438\u0442\u0430\u043d\u0438\u0435 3.3 \u0412\u043e\u043b\u044c\u0442\u0430 (\u043f\u0435\u0440\u0435\u043c\u044b\u0447\u043a\u043e\u0439\/\u0434\u0436\u0430\u043c\u043f\u0435\u0440\u043e\u043c)<\/p>\n<p>\u0421\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0432\u043e\u0434\u0430\u043c\u0438 \u043f\u043b\u0430\u0442\u0443 (\u041f) \u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440 (\u041a):<\/p>\n<p>\u041f(A9) -&gt; K(RX)<\/p>\n<p>\u041f(\u041010) -&gt; \u041a(TX)<\/p>\n<p>\u041f(GND) -&gt; K(GND)<\/p>\n<p>\u041f(3.3) -&gt; K(VCC)<\/p>\n<p><a href=\"http:\/\/www.2150692.ru\/images\/faq\/stm32\/stm32-pins.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.2150692.ru\/images\/faq\/stm32\/stm32-pins.jpg\" alt=\"stm32 pins\" width=\"600\" height=\"348\" \/><\/a><\/p>\n<h4>3. \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u041f\u041e<\/h4>\n<ol>\n<li><a href=\"https:\/\/github.com\/rogerclarkmelbourne\/Arduino_STM32\/archive\/master.zip\">\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0434\u043b\u044f Arduino IDE<\/a>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u044b STM32<\/li>\n<li>\u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0430\u0440\u0445\u0438\u0432 \u0432 \u043f\u0430\u043f\u0430\u043a\u0443 HARDWARE, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u043f\u0430\u043f\u043a\u0435 \u0432\u0430\u0448\u0435\u0439 Arduino IDE<\/li>\n<li>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Arduino IDE (\u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0435\u0441\u043b\u0438 \u0431\u044b\u043b\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0430) \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043b\u0438 \u0440\u0430\u0437\u0434\u0435\u043b <strong>STM32 Boards <\/strong>\u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u041f\u043b\u0430\u0442<\/li>\n<\/ol>\n<h4>4. \u0417\u0430\u043a\u0430\u0447\u043a\u0430 \u0441\u043a\u0435\u0442\u0447\u0430 (blink) \u0432 \u043f\u043b\u0430\u0442\u0443<\/h4>\n<p>\u0412 \u043f\u0430\u043f\u043a\u0435 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u043b\u0438 \u0432 \u043f.3.\u0431 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u043f\u0443\u0442\u0438: Arduino_STM32\\examples\\Digital\\Blink\\ \u0438 \u0447\u0435\u0440\u0435\u0437 Arduino IDE \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b blink.ino \u043b\u0438\u0431\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0437\u044f\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u043e\u0442\u0441\u044e\u0434\u0430:<\/p>\n<pre>void setup() { \/\/ initialize digital pin PB1 as an output. pinMode(PC13, OUTPUT); } \/\/ the loop function runs over and over again forever void loop() { digitalWrite(PC13, HIGH); \/\/ turn the LED on (HIGH is the voltage level) delay(1000); \/\/ wait for a second digitalWrite(PC13, LOW); \/\/ turn the LED off by making the voltage LOW delay(1000); \/\/ wait for a second }<\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432 Arduino IDE:<\/p>\n<ul>\n<li>\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0443 <strong>Generic STM32F103C series<\/strong><\/li>\n<li>\u0412\u044b\u0431\u0440\u0430\u0442\u044c <strong>Variant: (20k RAM. 64k Flash)<\/strong><\/li>\n<li>\u0412\u044b\u0431\u0440\u0430\u0442\u044c <strong>Upload method: &#171;Serial&#187;<\/strong><\/li>\n<li>\u0412\u044b\u0431\u0440\u0430\u0442\u044c <strong>\u041f\u043e\u0440\u0442:<\/strong> (\u043f\u043e\u0440\u0442 \u0441\u043e\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 FTDI \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440\u0443)<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"http:\/\/www.2150692.ru\/images\/faq\/stm32\/stm32-ide.gif\" alt=\"stm32 ide\" \/><\/p>\n<p>\u0416\u043c\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 <strong>\u0412\u0433\u0440\u0443\u0437\u0438\u0442\u044c<\/strong> \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0440\u0430\u0437\u0443 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432\u0438\u0434\u0435\u043d.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0411\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u0442\u0430\u0440\u0442 STM32F103C8T6 + Arduino IDE \u0421\u043e\u0437\u0434\u0430\u043d\u043e: 25 \u0444\u0435\u0432\u0440\u0430\u043b\u044f 2016 \u041e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430 F103C8T6 \u043d\u0430 \u0431\u0430\u0437\u0435 STM32 \u043f\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u043f\u0435\u0440\u0435\u0436\u0430\u0435\u0442<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[98],"tags":[],"class_list":["post-458","post","type-post","status-publish","format-standard","hentry","category-arduino"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7OYvE-7o","_links":{"self":[{"href":"https:\/\/allchina.a-lisa.org\/index.php?rest_route=\/wp\/v2\/posts\/458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/allchina.a-lisa.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/allchina.a-lisa.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/allchina.a-lisa.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/allchina.a-lisa.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=458"}],"version-history":[{"count":1,"href":"https:\/\/allchina.a-lisa.org\/index.php?rest_route=\/wp\/v2\/posts\/458\/revisions"}],"predecessor-version":[{"id":532,"href":"https:\/\/allchina.a-lisa.org\/index.php?rest_route=\/wp\/v2\/posts\/458\/revisions\/532"}],"wp:attachment":[{"href":"https:\/\/allchina.a-lisa.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/allchina.a-lisa.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/allchina.a-lisa.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}