{"id":366438,"date":"2024-05-21T02:59:31","date_gmt":"2024-05-21T02:59:31","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=366438"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=366438","title":{"rendered":"<span>\u0417\u043d\u0430\u043a\u043e\u043c\u0438\u043c\u0441\u044f \u0441 Artery. AT-START-F423 \u2013 \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0434\u0430\u043b\u044c\u043d\u043e\u043c\u0435\u0440 AJ-SR04M<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u043e\u0442 <strong>Artery<\/strong> \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u043c \u0437\u0430\u043c\u0435\u0449\u0435\u043d\u0438\u044f <strong>STM<\/strong>. \u0411\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u0434\u043a\u0443\u043f\u0430\u044e\u0442 \u0441\u0432\u043e\u0435\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u043b\u044f \u0437\u0430\u043a\u0430\u0437\u0430. \u041e\u0442\u043b\u0430\u0434\u043e\u043a \u043c\u043d\u043e\u0433\u043e, \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0448\u0435\u043b\u043a\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f(\u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u043d\u0430 \u0442\u0435\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0432\u0438\u0434\u0435\u043b \u0438 \u0434\u0435\u0440\u0436\u0430\u043b \u0432 \u0440\u0443\u043a\u0430\u0445). \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043f\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f, \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u0432 \u0438 IDE.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u0445\u043e\u0440\u043e\u0448\u0438\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0435\u0441\u0442\u044c \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c;<\/p>\n<\/li>\n<li>\n<p>\u0421 \u0441\u0430\u0439\u0442\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u043e\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u0438 \u0434\u0430\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043a\u0430\u043a \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440;<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u0442\u044c \u043f\u0430\u043a\u0438 \u0434\u043b\u044f Keil \u0438 IAR, \u0441\u0432\u043e\u044f IDE \u043d\u0430 \u044d\u043a\u043b\u0438\u043f\u0441\u0435 \u0438 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440;<\/p>\n<\/li>\n<li>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0447\u0435\u043d\u044c \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0447\u0438\u043f\u043e\u0432 \u0435\u0441\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c <strong>MG<\/strong>****, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 STM \u0447\u0438\u043f\u0430 \u043d\u0430 \u0438\u0445.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0418\u043d\u0442\u0440\u043e<\/h3>\n<p>\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0432 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438\/\u0441\u0430\u043c\u043e\u0437\u0430\u043d\u044f\u0442\u043e\u0433\u043e\/\u0445\u043e\u0431\u0431\u0438-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0433\u043b\u0430\u0434\u043a\u043e\u0439, \u0447\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0441\u0442\u0438\u0447\u044c, \u0435\u0441\u043b\u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0440\u0430\u0437\u0432\u043e\u0434\u0438\u0442\u044c, \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c \u0438 \u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043f\u0430\u0440\u0442\u0438\u044e \u043f\u043b\u0430\u0442 \u0432 \u0434\u0430\u0432\u043d\u043e \u0443\u0441\u0442\u043e\u044f\u0432\u0448\u0438\u0439\u0441\u044f \u043f\u0440\u043e\u0435\u043a\u0442. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f pin-to-pin(\u043f\u0438\u043d-\u0442\u0443-\u043f\u0438\u043d) \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b. \u0420\u0435\u0447\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445 \u2013 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0445 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c, \u043e\u0442 \u043c\u0435\u043d\u0435\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439, \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0445\u043e\u0436\u0438\u043c\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u043c \u0438 \u0432\u044b\u0432\u043e\u0434\u0430\u043c, \u043d\u043e \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438. \u0422\u0430\u043a \u0436\u0435 \u0438 \u0443 Artery. <strong>AT32F407 <\/strong>\u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u043b\u0441\u044f(\u043a\u0430\u043a \u043c\u043d\u0435 \u0432\u0438\u0434\u0438\u0442\u0441\u044f) \u043a\u0430\u043a \u0437\u0430\u043c\u0435\u043d\u0430 \u0434\u043b\u044f \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e <strong>STM32F407<\/strong>. \u041e\u0434\u043d\u0430\u043a\u043e, \u0443 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 AT32F407 (\u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 STM32F407) \u0435\u0441\u0442\u044c \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b \u0432 <strong>64<\/strong> \u0432\u044b\u0432\u043e\u0434\u043d\u043e\u043c \u043a\u043e\u0440\u043f\u0443\u0441\u0435, \u043d\u043e \u043d\u0435\u0442 \u0432 <strong>144 <\/strong>\u0432\u044b\u0432\u043e\u0434\u043d\u043e\u043c (\u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435, \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0438).<\/p>\n<p>\u0412\u0441\u0435 \u0436\u0435 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u2013 \u0447\u0435\u043c \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c. \u0412\u0437\u0430\u0438\u043c\u043e\u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435 MCU \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0438\u0437 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432 \u2013 \u0432\u043e\u0442, \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0430 \u0437\u0430\u043c\u0435\u043d\u0430 <strong>STM32F405 <\/strong>\u043d\u0430 <strong>AT32F423<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/15b\/37e\/ee9\/15b37eee9475448a777e99837519c3ee.png\" width=\"1024\" height=\"493\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/15b\/37e\/ee9\/15b37eee9475448a777e99837519c3ee.png\"\/><\/figure>\n<h3>AT32 Work Bench<\/h3>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u043d\u0430\u0432\u043e\u0434\u0438\u0442 \u043d\u0430 \u043c\u044b\u0441\u043b\u0438 \u043e\u0431 STM \u2013 \u044d\u0442\u043e \u0438\u0445 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\/\u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 <strong>CubeMX<\/strong>. <strong>Artery <\/strong>\u043d\u0435 \u0441\u0442\u0430\u043b\u0438 \u043e\u0442\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u044d\u0442\u043e\u043c \u043f\u043b\u0430\u043d\u0435 \u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0441\u0432\u043e\u0439 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 <strong>AT32 Work Bench<\/strong>. \u041f\u0430\u0440\u0443 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u043d\u0430\u0437\u0430\u0434 \u0434\u043b\u044f \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0431\u044b\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b <strong>\u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0430<\/strong> \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u2013 F423 \u0438 F421. \u0411\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043d\u0430 \u0434\u043d\u044f\u0445 (2024\/02\/01) \u0432\u044b\u0448\u043b\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u043b\u043e \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432 <strong>\u0434\u043e 11 \u0448\u0442\u0443\u043a<\/strong> \u2013 <strong>AT32F402, AT32A403A, AT32F403A, AT32F405, AT32F407, AT32F413, AT32WB415, AT32WB415, AT32F421, AT32F423, AT32F425<\/strong>.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/614\/c65\/135\/614c651352d98a4332b2c020cdd56218.png\" width=\"1024\" height=\"645\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/614\/c65\/135\/614c651352d98a4332b2c020cdd56218.png\"\/><\/figure>\n<p>\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 <strong>CubeMX<\/strong>, \u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u0438\u044f<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/cb6\/afd\/533\/cb6afd53338d5921a180b4b9c3c6692e.png\" width=\"1024\" height=\"588\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/cb6\/afd\/533\/cb6afd53338d5921a180b4b9c3c6692e.png\"\/><\/figure>\n<p><strong>\u0418\u0437 \u043c\u0438\u043d\u0443\u0441\u043e\u0432:<\/strong><\/p>\n<ol>\n<li>\n<p>\u041a \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0443 \u043d\u0443\u0436\u043d\u043e \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043e\u043a\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c <strong>.zip-\u0430\u0440\u0445\u0438\u0432<\/strong> \u0441 \u0441\u044b\u0440\u0446\u0430\u043c\u0438 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435\u0442 \u043e\u043a\u043d\u0430 \u0441 \u0434\u0430\u0442\u0430\u0448\u0438\u0442\u0430\u043c\u0438 \u0438 RM, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043a\u043b\u0438\u043a\u043e\u043c<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0435\u0433\u043a\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 <strong>third-party<\/strong> \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u0418\u0437 \u043f\u043b\u044e\u0441\u043e\u0432:<\/strong><\/p>\n<ol>\n<li>\n<p>\u041d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 <strong>clock-tree<\/strong> \u0442\u0430\u043a\u0430\u044f \u0436\u0435 \u043a\u0430\u043a \u0438 \u0432 <strong>CubeMX <\/strong>\u2013 \u0443\u0434\u043e\u0431\u043d\u043e<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ce4\/4f2\/ccd\/ce44f2ccd6781a115ede1d7c0954b587.png\" width=\"1013\" height=\"602\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ce4\/4f2\/ccd\/ce44f2ccd6781a115ede1d7c0954b587.png\"\/><\/figure>\n<p>3. \u041e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e\u0435 \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0442 <strong>Artery <\/strong>\u2013 &#171;\u0442\u0430\u0439\u043c\u0438\u043d\u0433\u0438&#187; \u0434\u043b\u044f \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432 \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u044f\u043c \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0442\u0430\u0439\u043c\u0435\u0440\u0430!<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/590\/21a\/ae7\/59021aae7fdc754e4fac23cd1f4c29d5.png\" width=\"772\" height=\"703\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/590\/21a\/ae7\/59021aae7fdc754e4fac23cd1f4c29d5.png\"\/><\/figure>\n<p>\u041f\u043e\u0445\u043e\u0436\u0435\u0435 \u0435\u0441\u0442\u044c \u0438 \u0434\u043b\u044f CAN. (\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0431\u044b\u043b\u043e \u0438 \u0434\u043b\u044f i2c, \u043d\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0432\u044b\u043f\u0438\u043b\u0438\u043b\u0438)<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/102\/8c7\/bdb\/1028c7bdb3a42a6a072e32e15462cb86.png\" width=\"683\" height=\"693\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/102\/8c7\/bdb\/1028c7bdb3a42a6a072e32e15462cb86.png\"\/><\/figure>\n<p>4. \u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043a\u0430\u043a \u0438 \u0432 <strong>CubeMX<\/strong>, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 IDE (AT32_IDE, Eclipse, IAR, Keil)<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bff\/99b\/540\/bff99b540e552c562e10bbd76e9f8d62.png\" width=\"900\" height=\"505\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bff\/99b\/540\/bff99b540e552c562e10bbd76e9f8d62.png\"\/><\/figure>\n<p>\u0410 \u0442\u0430\u043a\u0436\u0435, \u043c\u043e\u0436\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0447\u0435\u0442. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u044b\u0439, \u043e\u0447\u0435\u043d\u044c \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u044b\u0439 \u043e\u0442\u0447\u0435\u0442 \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443. \u0421 \u043d\u043e\u0436\u043a\u0430\u043c\u0438, \u0442\u0430\u0439\u043c\u0438\u043d\u0433\u0430\u043c\u0438 \u0438 \u043f\u0440\u043e\u0447\u0438\u043c. \u0412\u043e\u0442 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0443:<\/p>\n<p><a href=\"https:\/\/programel.ru\/wp-content\/uploads\/2024\/01\/AT32F407VGT7_WorkBench.pdf\" rel=\"noopener noreferrer nofollow\">AT32F407VGT7_\u0421\u043a\u0430\u0447\u0430\u0442\u044c<\/a><\/p>\n<p>\u0421 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438, \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a <strong>IDE \u043e\u0442 Artery<\/strong><\/p>\n<h3>AT32 IDE<\/h3>\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0448\u0430\u0433\u0435 \u043c\u044b \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0445\u043e\u0442\u0438\u043c \u0435\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 <strong>AT32 IDE<\/strong> \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c <strong>Open Projects\u2026<\/strong><\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/664\/702\/2b4\/6647022b4c241f01449c60e63f1dd792.png\" width=\"399\" height=\"168\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/664\/702\/2b4\/6647022b4c241f01449c60e63f1dd792.png\"\/><\/figure>\n<p>\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0430\u043f\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u043f\u0430\u043f\u043a\u0443 <strong>AT32_IDE<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a3a\/ebf\/10e\/a3aebf10edde9f2a1bc7a4263d2ce678.png\" width=\"1024\" height=\"709\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a3a\/ebf\/10e\/a3aebf10edde9f2a1bc7a4263d2ce678.png\"\/><\/figure>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0436\u0430\u0442\u044c <strong>Finish<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0ac\/61d\/229\/0ac61d2299d76f99970194732ee8e42c.png\" width=\"1024\" height=\"704\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0ac\/61d\/229\/0ac61d2299d76f99970194732ee8e42c.png\"\/><\/figure>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0448 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5d8\/c2b\/1bc\/5d8c2b1bc7943b4145ebeff2562b8f2f.png\" width=\"357\" height=\"369\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5d8\/c2b\/1bc\/5d8c2b1bc7943b4145ebeff2562b8f2f.png\"\/><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0436\u0435 \u043c\u044b \u043d\u0435 \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u0437 <strong>AT32 IDE<\/strong>. \u0416\u043c\u0435\u043c <strong>New->C\/C++ Project<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5b4\/199\/eba\/5b4199eba959f3a552b43eacc913c5dc.png\" width=\"838\" height=\"165\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5b4\/199\/eba\/5b4199eba959f3a552b43eacc913c5dc.png\"\/><\/figure>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c <strong>C Managed Build<\/strong>, \u0436\u043c\u0435\u043c <strong>Next<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f19\/35a\/c5c\/f1935ac5cd0d244eaaa6e34403962101.png\" width=\"681\" height=\"491\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f19\/35a\/c5c\/f1935ac5cd0d244eaaa6e34403962101.png\"\/><\/figure>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043e\u043a\u043d\u043e \u0441 \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0436\u0435\u043b\u0430\u0435\u043c\u043e\u0435 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e, \u0432\u0432\u043e\u0434\u0438\u043c \u0438\u043c\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0436\u043c\u0435\u043c <strong>Next<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0a2\/c99\/53f\/0a2c9953fc856e36a4854f2a229a64d4.png\" width=\"685\" height=\"593\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0a2\/c99\/53f\/0a2c9953fc856e36a4854f2a229a64d4.png\"\/><\/figure>\n<p>\u0422\u0443\u0442 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0430\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0438\u043f \u043e\u0442\u043b\u0430\u0434\u043a\u0438. \u042f \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043b SWO. \u0416\u043c\u0435\u043c <strong>Next<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/465\/07a\/3a4\/46507a3a42347c0539d3615545479472.png\" width=\"682\" height=\"703\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/465\/07a\/3a4\/46507a3a42347c0539d3615545479472.png\"\/><\/figure>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043e\u043a\u043d\u0435, \u044f \u043f\u043e\u043b\u0430\u0433\u0430\u044e, \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0444\u0438\u0447\u0430 \u2013 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u043f\u043e\u043a \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0435\u0441\u043b\u0438 \u043a \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u0443\u0436\u0435 \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0438 \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0435\u0441\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0416\u043c\u0435\u043c <strong>Next<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c5a\/82f\/e9c\/c5a82fe9cae8b3636abdd9a45e2888c3.png\" width=\"685\" height=\"513\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c5a\/82f\/e9c\/c5a82fe9cae8b3636abdd9a45e2888c3.png\"\/><\/figure>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043e\u043a\u043d\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0431\u043e\u0440\u043a\u0438. \u0416\u043c\u0435\u043c <strong>Next <\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/127\/e75\/08e\/127e7508e21da9e71b6287392841c86f.png\" width=\"679\" height=\"567\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/127\/e75\/08e\/127e7508e21da9e71b6287392841c86f.png\"\/><\/figure>\n<p>\u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u043e\u043a\u043d\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 (\u0438\u0434\u0435\u0442 \u0441 AT32 IDE) \u0438 \u0436\u043c\u0435\u043c <strong>Finish<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3bd\/490\/f8f\/3bd490f8fad39c305b357f5b449e3689.png\" width=\"825\" height=\"333\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3bd\/490\/f8f\/3bd490f8fad39c305b357f5b449e3689.png\"\/><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 AT32 IDE \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043d\u0430\u043f\u043e\u043b\u043d\u0438\u0442 \u0435\u0433\u043e \u0431\u0430\u0437\u043e\u0432\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a59\/fb5\/24c\/a59fb524cdfa078b624c006cd4ff26e9.png\" width=\"350\" height=\"348\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a59\/fb5\/24c\/a59fb524cdfa078b624c006cd4ff26e9.png\"\/><\/figure>\n<p>\u0412 \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0435\u0441\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u044f, \u043d\u043e \u043e\u043d\u0438 \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b. \u041d\u0430 \u043c\u043e\u0439 \u0432\u043a\u0443\u0441 \u0443 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u043b\u044f \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0414\u0430\u043b\u0435\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443, \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u0438\u0437 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430<\/p>\n<p><strong>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c!<\/strong><\/p>\n<p>\u041d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0437\u0430\u043f\u0443\u0441\u043a\u0430. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u0435\u043b\u043a\u0443 \u0438 \u0432\u044b\u043f\u0430\u0434\u0430\u0435\u0442 \u043e\u043a\u043d\u043e. \u0416\u043c\u0435\u043c <strong>New Launch Configuration\u2026<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/96b\/9e7\/889\/96b9e7889859465b56b4310013362c24.png\" width=\"545\" height=\"251\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/96b\/9e7\/889\/96b9e7889859465b56b4310013362c24.png\"\/><\/figure>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0438\u043f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438 <strong>GDB AT-Link Debugging<\/strong>. \u0416\u043c\u0435\u043c <strong>Next<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/286\/626\/e79\/286626e79e59efbd74ba197ad567ec97.png\" width=\"785\" height=\"471\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/286\/626\/e79\/286626e79e59efbd74ba197ad567ec97.png\"\/><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u043a\u043e\u043c\u043e\u0435 \u043c\u043d\u043e\u0433\u0438\u043c \u043e\u043a\u043d\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430. \u0416\u043c\u0435\u043c <strong>Finish<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/77f\/fc2\/9a6\/77ffc29a6998e1e21df70b86fb48d637.png\" width=\"781\" height=\"652\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/77f\/fc2\/9a6\/77ffc29a6998e1e21df70b86fb48d637.png\"\/><\/figure>\n<p>\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0435 \u0438 \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u043c\u043e\u043b\u043e\u0442\u043a\u0430. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f \u0441\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0438 \u0441\u0431\u043e\u0440\u043a\u0435<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d30\/023\/711\/d300237117048c535bb8d9770dbf4530.png\" width=\"470\" height=\"94\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d30\/023\/711\/d300237117048c535bb8d9770dbf4530.png\"\/><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f93\/057\/92e\/f9305792ef02964e2cb873edb58c752c.png\" width=\"908\" height=\"578\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f93\/057\/92e\/f9305792ef02964e2cb873edb58c752c.png\"\/><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0441\u043e\u0431\u0440\u0430\u043b\u043e\u0441\u044c \u2013 \u043e\u0442\u043b\u0438\u0447\u043d\u043e, \u0443 \u043d\u0430\u0441 \u0432\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/p>\n<h3>\u041f\u0430\u0440\u0443 \u0441\u043b\u043e\u0432 \u043e\u0431 \u043e\u0442\u043b\u0430\u0434\u043a\u0435<\/h3>\n<p>\u041e\u0442\u043b\u0430\u0434\u043a\u0430 \u0432 AT32 IDE \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u0438 \u0432 \u043b\u044e\u0431\u043e\u0439 eclipse-based IDE. \u0415\u0441\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u043e\u0447\u0435\u043a \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430. \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <strong>Peripherals <\/strong>\u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0441\u043a\u0443\u0434\u043d\u043e\u0435, \u0447\u0435\u043c \u0443 CubeIDE (<strong>SFRs<\/strong>), \u043d\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/230\/265\/5a1\/2302655a17b13045760f863841341dc1.png\" width=\"1024\" height=\"765\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/230\/265\/5a1\/2302655a17b13045760f863841341dc1.png\"\/><\/figure>\n<p>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0445\u043e\u0434\u043e\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e \u0432\u0432\u0435\u0440\u0445\u0443<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/44c\/c03\/87d\/44cc0387d66fb7effae5c23fe5fa04cb.png\" width=\"830\" height=\"261\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/44c\/c03\/87d\/44cc0387d66fb7effae5c23fe5fa04cb.png\"\/><\/figure>\n<h3>\u0414\u0430\u043b\u044c\u043d\u043e\u043c\u0435\u0440 AJ-SR04M<\/h3>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/570\/c0c\/637\/570c0c63701f3a85181c80dd7f4850d5.png\" width=\"560\" height=\"525\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/570\/c0c\/637\/570c0c63701f3a85181c80dd7f4850d5.png\"\/><\/figure>\n<p><strong>AJ-SR04M<\/strong> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0443 \u0441 \u0443\u043b\u044c\u0442\u0440\u0430\u0437\u0432\u0443\u043a\u043e\u0432\u044b\u043c \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u043c \u0434\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u041c\u043e\u0434\u0443\u043b\u044c \u0434\u0430\u043b\u044c\u043d\u043e\u043c\u0435\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 5 \u0440\u0435\u0436\u0438\u043c\u0430\u0445<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b71\/d64\/905\/b71d64905bc2fa3121b311f1ea9fbbbf.png\" width=\"1020\" height=\"344\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b71\/d64\/905\/b71d64905bc2fa3121b311f1ea9fbbbf.png\"\/><\/figure>\n<p>\u041f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u043a\u043b\u044e\u0447\u0435\u043d <strong>\u043f\u0435\u0440\u0432\u044b\u0439<\/strong> \u0440\u0435\u0436\u0438\u043c \u2013 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043d\u0435\u0433\u043e<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c36\/16a\/dfa\/c3616adfa5257318791e12ce3f788e22.png\" width=\"924\" height=\"388\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c36\/16a\/dfa\/c3616adfa5257318791e12ce3f788e22.png\"\/><\/figure>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u2013 \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u043c \u0441\u0438\u0433\u043d\u0430\u043b \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430 \u0434\u043b\u0438\u043d\u043e\u0439 \u0431\u043e\u043b\u0435\u0435 10 \u043c\u043a\u0441 \u0438 \u0436\u0434\u0435\u043c \u0441\u0438\u0433\u043d\u0430\u043b \u043d\u0430 \u043d\u043e\u0436\u043a\u0435 <strong>ECHO<\/strong>, \u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432 \u0432\u0438\u0434\u0435 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430<\/p>\n<p>\u0427\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0442 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430? \u041e\u0434\u0438\u043d \u0442\u0430\u0439\u043c\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0428\u0418\u041c \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b \u043d\u0430 \u0432\u0445\u043e\u0434 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430. \u0412\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u0430 <strong>ECHO <\/strong>\u0432 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445. \u041d\u0435 \u0431\u0443\u0434\u0443 \u0441\u0438\u043b\u044c\u043d\u043e \u043c\u0443\u0434\u0440\u0438\u0442\u044c \u0438 \u0441\u0434\u0435\u043b\u0430\u044e \u0432\u0445\u043e\u0434 \u043e\u0442 <strong>ECHO <\/strong>\u0432\u043d\u0435\u0448\u043d\u0438\u043c \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435\u043c, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043f\u043e\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043e\u0442 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430. \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0432\u0443\u043a\u0430 \u0432 \u0432\u043e\u0437\u0434\u0443\u0445\u0435 (\u0432 \u0441\u043c\/\u043c\u043a\u0441\u0435\u043a, \u0447\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0432\u043d\u043e <strong>0.034<\/strong>) \u0438 \u0434\u0435\u043b\u0438\u043c \u043d\u0430 \u0434\u0432\u0430 (\u0442\u0443\u0434\u0430-\u043e\u0431\u0440\u0430\u0442\u043d\u043e) \u2013 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432 \u0441\u0430\u043d\u0442\u0438\u043c\u0435\u0442\u0440\u0430\u0445. \u0414\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 UART2 \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 115200<\/p>\n<p>\u0414\u043b\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u043e\u0436\u0435\u043a \u0438 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438, \u043f\u0440\u0438\u043b\u043e\u0436\u0443 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0442\u0447\u0435\u0442 \u0441 <strong>AT32 Work Bench<\/strong> (\u0434\u0430, \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c)<\/p>\n<p><a href=\"https:\/\/programel.ru\/wp-content\/uploads\/2024\/01\/AT32F423VCT7_WorkBench.pdf\" rel=\"noopener noreferrer nofollow\">AT32F423VCT7_Sonar_\u0421\u043a\u0430\u0447\u0430\u0442\u044c<\/a><\/p>\n<p> \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/20b\/e22\/537\/20be225371cc96de59285ff4f777c219.png\" alt=\"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f \u0423\u0417-\u0434\u0430\u043b\u044c\u043d\u043e\u043c\u0435\u0440\u0430\" title=\"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f \u0423\u0417-\u0434\u0430\u043b\u044c\u043d\u043e\u043c\u0435\u0440\u0430\" width=\"1280\" height=\"800\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/20b\/e22\/537\/20be225371cc96de59285ff4f777c219.png\"\/><\/p>\n<div><figcaption>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f \u0423\u0417-\u0434\u0430\u043b\u044c\u043d\u043e\u043c\u0435\u0440\u0430<\/figcaption><\/div>\n<\/figure>\n<p>UART-USB \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043d\u0438\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a\u043e \u0432\u0442\u043e\u0440\u043e\u043c\u0443 UART. \u0422\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u043e\u0436\u043a\u0430 TX (PA2), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043a TX \u043d\u0430 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043d\u0438\u043a\u0435<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7b4\/97b\/5b8\/7b497b5b8eb33e932b9594f068becb4e.png\" alt=\"UART-USB \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043d\u0438\u043a\" title=\"UART-USB \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043d\u0438\u043a\" width=\"848\" height=\"530\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7b4\/97b\/5b8\/7b497b5b8eb33e932b9594f068becb4e.png\"\/><\/p>\n<div><figcaption>UART-USB \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043d\u0438\u043a<\/figcaption><\/div>\n<\/figure>\n<p>\u0422.\u043a. \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0439 \u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u043f\u043e\u0437\u0432\u043e\u043b\u044e \u0441\u0435\u0431\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0438 \u043e\u0442 \u043d\u043e\u0436\u043a\u0438 <strong>ECHO <\/strong>\u0438 \u043f\u0440\u044f\u043c \u0432 \u043d\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 UART \u0432 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0435\u043c \u0440\u0435\u0436\u0438\u043c\u0435<\/p>\n<pre><code class=\"cpp\">\/**   * @brief  this function handles EXINT Line [15:10] handler.   * @param  none   * @retval none   *\/ void EXINT15_10_IRQHandler(void) {   \/* add user code begin EXINT15_10_IRQ 0 *\/     static uint32_t val = 0;     static float distance = 0;     static char tmp[150] = {0};     if (gpio_input_data_bit_read(GPIOA, GPIO_PINS_10) == SET){         tmr_counter_value_set(TMR2, 0);     }     else{          \/\/compute width         val = tmr_counter_value_get(TMR2);         distance = val * 0.034 \/ 2;         sprintf(tmp, \"%d\\n\\r\", (int)distance);         int i = 0;         while (tmp[i] != 0){             if (usart_flag_get(USART2, USART_TDBE_FLAG) == SET){                 usart_data_transmit(USART2, (uint16_t)tmp[i]);                 i++;             }         }      }     exint_flag_clear(EXINT_LINE_10);   \/* add user code end EXINT15_10_IRQ 0 *\/   \/* add user code begin EXINT15_10_IRQ 1 *\/    \/* add user code end EXINT15_10_IRQ 1 *\/ }  \/* add user code begin 1 *\/  \/* add user code end 1 *\/<\/code><\/pre>\n<p>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c, \u043f\u0440\u043e\u0448\u0438\u0432\u0430\u0435\u043c, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0438 \u0432\u0438\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8f3\/b6e\/9dc\/8f3b6e9dc7fb337014dfb3c11cc03fb3.png\" width=\"863\" height=\"657\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8f3\/b6e\/9dc\/8f3b6e9dc7fb337014dfb3c11cc03fb3.png\"\/><\/figure>\n<p>\u0412\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u0432\u044b\u0441\u043e\u0442\u0443 \u0434\u043e \u043f\u043e\u0442\u043e\u043b\u043a\u0430 \u0441 \u0441\u0438\u0434\u044f\u0447\u0435\u0433\u043e \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0422\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0443 \u0441\u0435\u043d\u0441\u043e\u0440\u0430 \u043d\u0435\u043f\u043b\u043e\u0445\u0430\u044f, \u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0434\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u2013 \u043a\u0430\u043a \u0432 \u043c\u0438\u043d\u0438\u043c\u0443\u043c, \u0442\u0430\u043a \u0438 \u0432 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c.<\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0438\u0441\u044c \u0441 <strong>Artery <\/strong>\u0438 <strong>AT32<\/strong>, \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0449\u0443\u043f\u0430\u0442\u044c \u0438\u0445 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0438 IDE. \u0423\u0434\u0430\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432!<\/p>\n<p><a href=\"https:\/\/github.com\/tunerok\/at32f423_AJ-SR04M\/tree\/main\" rel=\"noopener noreferrer nofollow\"><u>\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442<\/u><\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/789238\/\"> https:\/\/habr.com\/ru\/articles\/789238\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u043e\u0442 <strong>Artery<\/strong> \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u043c \u0437\u0430\u043c\u0435\u0449\u0435\u043d\u0438\u044f <strong>STM<\/strong>. \u0411\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u0434\u043a\u0443\u043f\u0430\u044e\u0442 \u0441\u0432\u043e\u0435\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u043b\u044f \u0437\u0430\u043a\u0430\u0437\u0430. \u041e\u0442\u043b\u0430\u0434\u043e\u043a \u043c\u043d\u043e\u0433\u043e, \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0448\u0435\u043b\u043a\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f(\u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u043d\u0430 \u0442\u0435\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0432\u0438\u0434\u0435\u043b \u0438 \u0434\u0435\u0440\u0436\u0430\u043b \u0432 \u0440\u0443\u043a\u0430\u0445). \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043f\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f, \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u0432 \u0438 IDE.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u0445\u043e\u0440\u043e\u0448\u0438\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0435\u0441\u0442\u044c \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c;<\/p>\n<\/li>\n<li>\n<p>\u0421 \u0441\u0430\u0439\u0442\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u043e\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u0438 \u0434\u0430\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043a\u0430\u043a \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440;<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u0442\u044c \u043f\u0430\u043a\u0438 \u0434\u043b\u044f Keil \u0438 IAR, \u0441\u0432\u043e\u044f IDE \u043d\u0430 \u044d\u043a\u043b\u0438\u043f\u0441\u0435 \u0438 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440;<\/p>\n<\/li>\n<li>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0447\u0435\u043d\u044c \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0447\u0438\u043f\u043e\u0432 \u0435\u0441\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c <strong>MG<\/strong>****, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 STM \u0447\u0438\u043f\u0430 \u043d\u0430 \u0438\u0445.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0418\u043d\u0442\u0440\u043e<\/h3>\n<p>\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0432 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438\/\u0441\u0430\u043c\u043e\u0437\u0430\u043d\u044f\u0442\u043e\u0433\u043e\/\u0445\u043e\u0431\u0431\u0438-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0433\u043b\u0430\u0434\u043a\u043e\u0439, \u0447\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0441\u0442\u0438\u0447\u044c, \u0435\u0441\u043b\u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0440\u0430\u0437\u0432\u043e\u0434\u0438\u0442\u044c, \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c \u0438 \u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043f\u0430\u0440\u0442\u0438\u044e \u043f\u043b\u0430\u0442 \u0432 \u0434\u0430\u0432\u043d\u043e \u0443\u0441\u0442\u043e\u044f\u0432\u0448\u0438\u0439\u0441\u044f \u043f\u0440\u043e\u0435\u043a\u0442. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f pin-to-pin(\u043f\u0438\u043d-\u0442\u0443-\u043f\u0438\u043d) \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b. \u0420\u0435\u0447\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445 \u2013 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0445 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c, \u043e\u0442 \u043c\u0435\u043d\u0435\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439, \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0445\u043e\u0436\u0438\u043c\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u043c \u0438 \u0432\u044b\u0432\u043e\u0434\u0430\u043c, \u043d\u043e \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438. \u0422\u0430\u043a \u0436\u0435 \u0438 \u0443 Artery. <strong>AT32F407 <\/strong>\u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u043b\u0441\u044f(\u043a\u0430\u043a \u043c\u043d\u0435 \u0432\u0438\u0434\u0438\u0442\u0441\u044f) \u043a\u0430\u043a \u0437\u0430\u043c\u0435\u043d\u0430 \u0434\u043b\u044f \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e <strong>STM32F407<\/strong>. \u041e\u0434\u043d\u0430\u043a\u043e, \u0443 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 AT32F407 (\u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 STM32F407) \u0435\u0441\u0442\u044c \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b \u0432 <strong>64<\/strong> \u0432\u044b\u0432\u043e\u0434\u043d\u043e\u043c \u043a\u043e\u0440\u043f\u0443\u0441\u0435, \u043d\u043e \u043d\u0435\u0442 \u0432 <strong>144 <\/strong>\u0432\u044b\u0432\u043e\u0434\u043d\u043e\u043c (\u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435, \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0438).<\/p>\n<p>\u0412\u0441\u0435 \u0436\u0435 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u2013 \u0447\u0435\u043c \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c. \u0412\u0437\u0430\u0438\u043c\u043e\u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435 MCU \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0438\u0437 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432 \u2013 \u0432\u043e\u0442, \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0430 \u0437\u0430\u043c\u0435\u043d\u0430 <strong>STM32F405 <\/strong>\u043d\u0430 <strong>AT32F423<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<h3>AT32 Work Bench<\/h3>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u043d\u0430\u0432\u043e\u0434\u0438\u0442 \u043d\u0430 \u043c\u044b\u0441\u043b\u0438 \u043e\u0431 STM \u2013 \u044d\u0442\u043e \u0438\u0445 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\/\u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 <strong>CubeMX<\/strong>. <strong>Artery <\/strong>\u043d\u0435 \u0441\u0442\u0430\u043b\u0438 \u043e\u0442\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u044d\u0442\u043e\u043c \u043f\u043b\u0430\u043d\u0435 \u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0441\u0432\u043e\u0439 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 <strong>AT32 Work Bench<\/strong>. \u041f\u0430\u0440\u0443 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u043d\u0430\u0437\u0430\u0434 \u0434\u043b\u044f \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0431\u044b\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b <strong>\u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0430<\/strong> \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u2013 F423 \u0438 F421. \u0411\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043d\u0430 \u0434\u043d\u044f\u0445 (2024\/02\/01) \u0432\u044b\u0448\u043b\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u043b\u043e \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432 <strong>\u0434\u043e 11 \u0448\u0442\u0443\u043a<\/strong> \u2013 <strong>AT32F402, AT32A403A, AT32F403A, AT32F405, AT32F407, AT32F413, AT32WB415, AT32WB415, AT32F421, AT32F423, AT32F425<\/strong>.<\/p>\n<figure class=\"\"><\/figure>\n<p>\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 <strong>CubeMX<\/strong>, \u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u0438\u044f<\/p>\n<figure class=\"full-width\"><\/figure>\n<p><strong>\u0418\u0437 \u043c\u0438\u043d\u0443\u0441\u043e\u0432:<\/strong><\/p>\n<ol>\n<li>\n<p>\u041a \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0443 \u043d\u0443\u0436\u043d\u043e \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043e\u043a\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c <strong>.zip-\u0430\u0440\u0445\u0438\u0432<\/strong> \u0441 \u0441\u044b\u0440\u0446\u0430\u043c\u0438 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435\u0442 \u043e\u043a\u043d\u0430 \u0441 \u0434\u0430\u0442\u0430\u0448\u0438\u0442\u0430\u043c\u0438 \u0438 RM, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043a\u043b\u0438\u043a\u043e\u043c<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0435\u0433\u043a\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 <strong>third-party<\/strong> \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u0418\u0437 \u043f\u043b\u044e\u0441\u043e\u0432:<\/strong><\/p>\n<ol>\n<li>\n<p>\u041d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 <strong>clock-tree<\/strong> \u0442\u0430\u043a\u0430\u044f \u0436\u0435 \u043a\u0430\u043a \u0438 \u0432 <strong>CubeMX <\/strong>\u2013 \u0443\u0434\u043e\u0431\u043d\u043e<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><\/figure>\n<p>3. \u041e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e\u0435 \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0442 <strong>Artery <\/strong>\u2013 &#171;\u0442\u0430\u0439\u043c\u0438\u043d\u0433\u0438&#187; \u0434\u043b\u044f \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432 \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u044f\u043c \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0442\u0430\u0439\u043c\u0435\u0440\u0430!<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u043e\u0445\u043e\u0436\u0435\u0435 \u0435\u0441\u0442\u044c \u0438 \u0434\u043b\u044f CAN. (\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0431\u044b\u043b\u043e \u0438 \u0434\u043b\u044f i2c, \u043d\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0432\u044b\u043f\u0438\u043b\u0438\u043b\u0438)<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>4. \u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043a\u0430\u043a \u0438 \u0432 <strong>CubeMX<\/strong>, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 IDE (AT32_IDE, Eclipse, IAR, Keil)<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0410 \u0442\u0430\u043a\u0436\u0435, \u043c\u043e\u0436\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0447\u0435\u0442. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u044b\u0439, \u043e\u0447\u0435\u043d\u044c \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u044b\u0439 \u043e\u0442\u0447\u0435\u0442 \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443. \u0421 \u043d\u043e\u0436\u043a\u0430\u043c\u0438, \u0442\u0430\u0439\u043c\u0438\u043d\u0433\u0430\u043c\u0438 \u0438 \u043f\u0440\u043e\u0447\u0438\u043c. \u0412\u043e\u0442 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0443:<\/p>\n<p><a href=\"https:\/\/programel.ru\/wp-content\/uploads\/2024\/01\/AT32F407VGT7_WorkBench.pdf\" rel=\"noopener noreferrer nofollow\">AT32F407VGT7_\u0421\u043a\u0430\u0447\u0430\u0442\u044c<\/a><\/p>\n<p>\u0421 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438, \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a <strong>IDE \u043e\u0442 Artery<\/strong><\/p>\n<h3>AT32 IDE<\/h3>\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0448\u0430\u0433\u0435 \u043c\u044b \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0445\u043e\u0442\u0438\u043c \u0435\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 <strong>AT32 IDE<\/strong> \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c <strong>Open Projects\u2026<\/strong><\/p>\n<figure class=\"\"><\/figure>\n<p>\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0430\u043f\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u043f\u0430\u043f\u043a\u0443 <strong>AT32_IDE<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0436\u0430\u0442\u044c <strong>Finish<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0448 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442<\/p>\n<figure class=\"\"><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0436\u0435 \u043c\u044b \u043d\u0435 \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u0437 <strong>AT32 IDE<\/strong>. \u0416\u043c\u0435\u043c <strong>New->C\/C++ Project<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c <strong>C Managed Build<\/strong>, \u0436\u043c\u0435\u043c <strong>Next<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043e\u043a\u043d\u043e \u0441 \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0436\u0435\u043b\u0430\u0435\u043c\u043e\u0435 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e, \u0432\u0432\u043e\u0434\u0438\u043c \u0438\u043c\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0436\u043c\u0435\u043c <strong>Next<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0422\u0443\u0442 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0430\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0438\u043f \u043e\u0442\u043b\u0430\u0434\u043a\u0438. \u042f \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u043b SWO. \u0416\u043c\u0435\u043c <strong>Next<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043e\u043a\u043d\u0435, \u044f \u043f\u043e\u043b\u0430\u0433\u0430\u044e, \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0444\u0438\u0447\u0430 \u2013 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u043f\u043e\u043a \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0435\u0441\u043b\u0438 \u043a \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u0443\u0436\u0435 \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0438 \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0435\u0441\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0416\u043c\u0435\u043c <strong>Next<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043e\u043a\u043d\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0431\u043e\u0440\u043a\u0438. \u0416\u043c\u0435\u043c <strong>Next <\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u043e\u043a\u043d\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 (\u0438\u0434\u0435\u0442 \u0441 AT32 IDE) \u0438 \u0436\u043c\u0435\u043c <strong>Finish<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 AT32 IDE \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043d\u0430\u043f\u043e\u043b\u043d\u0438\u0442 \u0435\u0433\u043e \u0431\u0430\u0437\u043e\u0432\u044b\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438<\/p>\n<figure class=\"\"><\/figure>\n<p>\u0412 \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0435\u0441\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u044f, \u043d\u043e \u043e\u043d\u0438 \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b. \u041d\u0430 \u043c\u043e\u0439 \u0432\u043a\u0443\u0441 \u0443 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u043b\u044f \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0414\u0430\u043b\u0435\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443, \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u0438\u0437 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430<\/p>\n<p><strong>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c!<\/strong><\/p>\n<p>\u041d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0437\u0430\u043f\u0443\u0441\u043a\u0430. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u0435\u043b\u043a\u0443 \u0438 \u0432\u044b\u043f\u0430\u0434\u0430\u0435\u0442 \u043e\u043a\u043d\u043e. \u0416\u043c\u0435\u043c <strong>New Launch Configuration\u2026<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0438\u043f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438 <strong>GDB AT-Link Debugging<\/strong>. \u0416\u043c\u0435\u043c <strong>Next<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u043a\u043e\u043c\u043e\u0435 \u043c\u043d\u043e\u0433\u0438\u043c \u043e\u043a\u043d\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430. \u0416\u043c\u0435\u043c <strong>Finish<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0435 \u0438 \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u043c\u043e\u043b\u043e\u0442\u043a\u0430. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f \u0441\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0438 \u0441\u0431\u043e\u0440\u043a\u0435<\/p>\n<figure class=\"\"><\/figure>\n<figure class=\"full-width\"><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0441\u043e\u0431\u0440\u0430\u043b\u043e\u0441\u044c \u2013 \u043e\u0442\u043b\u0438\u0447\u043d\u043e, \u0443 \u043d\u0430\u0441 \u0432\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/p>\n<h3>\u041f\u0430\u0440\u0443 \u0441\u043b\u043e\u0432 \u043e\u0431 \u043e\u0442\u043b\u0430\u0434\u043a\u0435<\/h3>\n<p>\u041e\u0442\u043b\u0430\u0434\u043a\u0430 \u0432 AT32 IDE \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u0438 \u0432 \u043b\u044e\u0431\u043e\u0439 eclipse-based IDE. \u0415\u0441\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u043e\u0447\u0435\u043a \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430. \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <strong>Peripherals <\/strong>\u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0441\u043a\u0443\u0434\u043d\u043e\u0435, \u0447\u0435\u043c \u0443 CubeIDE (<strong>SFRs<\/strong>), \u043d\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u0435.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0445\u043e\u0434\u043e\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e \u0432\u0432\u0435\u0440\u0445\u0443<\/p>\n<figure class=\"full-width\"><\/figure>\n<h3>\u0414\u0430\u043b\u044c\u043d\u043e\u043c\u0435\u0440 AJ-SR04M<\/h3>\n<figure class=\"full-width\"><\/figure>\n<p><strong>AJ-SR04M<\/strong> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0443 \u0441 \u0443\u043b\u044c\u0442\u0440\u0430\u0437\u0432\u0443\u043a\u043e\u0432\u044b\u043c \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u043c \u0434\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u041c\u043e\u0434\u0443\u043b\u044c \u0434\u0430\u043b\u044c\u043d\u043e\u043c\u0435\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 5 \u0440\u0435\u0436\u0438\u043c\u0430\u0445<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u043a\u043b\u044e\u0447\u0435\u043d <strong>\u043f\u0435\u0440\u0432\u044b\u0439<\/strong> \u0440\u0435\u0436\u0438\u043c \u2013 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043d\u0435\u0433\u043e<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u2013 \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u043c \u0441\u0438\u0433\u043d\u0430\u043b \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430 \u0434\u043b\u0438\u043d\u043e\u0439 \u0431\u043e\u043b\u0435\u0435 10 \u043c\u043a\u0441 \u0438 \u0436\u0434\u0435\u043c \u0441\u0438\u0433\u043d\u0430\u043b \u043d\u0430 \u043d\u043e\u0436\u043a\u0435 <strong>ECHO<\/strong>, \u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432 \u0432\u0438\u0434\u0435 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u0430<\/p>\n<p>\u0427\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0442 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430? \u041e\u0434\u0438\u043d \u0442\u0430\u0439\u043c\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0428\u0418\u041c \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b \u043d\u0430 \u0432\u0445\u043e\u0434 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430. \u0412\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u0430 <strong>ECHO <\/strong>\u0432 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445. \u041d\u0435 \u0431\u0443\u0434\u0443 \u0441\u0438\u043b\u044c\u043d\u043e \u043c\u0443\u0434\u0440\u0438\u0442\u044c \u0438 \u0441\u0434\u0435\u043b\u0430\u044e \u0432\u0445\u043e\u0434 \u043e\u0442 <strong>ECHO <\/strong>\u0432\u043d\u0435\u0448\u043d\u0438\u043c \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435\u043c, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043f\u043e\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043e\u0442 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0442\u0430\u0439\u043c\u0435\u0440\u0430. \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0432\u0443\u043a\u0430 \u0432 \u0432\u043e\u0437\u0434\u0443\u0445\u0435 (\u0432 \u0441\u043c\/\u043c\u043a\u0441\u0435\u043a, \u0447\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0432\u043d\u043e <strong>0.034<\/strong>) \u0438 \u0434\u0435\u043b\u0438\u043c \u043d\u0430 \u0434\u0432\u0430 (\u0442\u0443\u0434\u0430-\u043e\u0431\u0440\u0430\u0442\u043d\u043e) \u2013 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432 \u0441\u0430\u043d\u0442\u0438\u043c\u0435\u0442\u0440\u0430\u0445. \u0414\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 UART2 \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 115200<\/p>\n<p>\u0414\u043b\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u043e\u0436\u0435\u043a \u0438 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438, \u043f\u0440\u0438\u043b\u043e\u0436\u0443 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0442\u0447\u0435\u0442 \u0441 <strong>AT32 Work Bench<\/strong> (\u0434\u0430, \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c)<\/p>\n<p><a href=\"https:\/\/programel.ru\/wp-content\/uploads\/2024\/01\/AT32F423VCT7_WorkBench.pdf\" rel=\"noopener noreferrer nofollow\">AT32F423VCT7_Sonar_\u0421\u043a\u0430\u0447\u0430\u0442\u044c<\/a><\/p>\n<p> \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f \u0423\u0417-\u0434\u0430\u043b\u044c\u043d\u043e\u043c\u0435\u0440\u0430<\/figcaption><\/div>\n<\/figure>\n<p>UART-USB \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043d\u0438\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a\u043e \u0432\u0442\u043e\u0440\u043e\u043c\u0443 UART. \u0422\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u043e\u0436\u043a\u0430 TX (PA2), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043a TX \u043d\u0430 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043d\u0438\u043a\u0435<\/p>\n<figure class=\"full-width\">\n<div><figcaption>UART-USB \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043d\u0438\u043a<\/figcaption><\/div>\n<\/figure>\n<p>\u0422.\u043a. \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0439 \u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u043f\u043e\u0437\u0432\u043e\u043b\u044e \u0441\u0435\u0431\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0438 \u043e\u0442 \u043d\u043e\u0436\u043a\u0438 <strong>ECHO <\/strong>\u0438 \u043f\u0440\u044f\u043c \u0432 \u043d\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 UART \u0432 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0435\u043c \u0440\u0435\u0436\u0438\u043c\u0435<\/p>\n<pre><code class=\"cpp\">\/**   * @brief  this function handles EXINT Line [15:10] handler.   * @param  none   * @retval none   *\/ void EXINT15_10_IRQHandler(void) {   \/* add user code begin EXINT15_10_IRQ 0 *\/     static uint32_t val = 0;     static float distance = 0;     static char tmp[150] = {0};     if (gpio_input_data_bit_read(GPIOA, GPIO_PINS_10) == SET){         tmr_counter_value_set(TMR2, 0);     }     else{          \/\/compute width         val = tmr_counter_value_get(TMR2);         distance = val * 0.034 \/ 2;         sprintf(tmp, \"%d\\n\\r\", (int)distance);         int i = 0;         while (tmp[i] != 0){             if (usart_flag_get(USART2, USART_TDBE_FLAG) == SET){                 usart_data_transmit(USART2, (uint16_t)tmp[i]);                 i++;             }         }      }     exint_flag_clear(EXINT_LINE_10);   \/* add user code end EXINT15_10_IRQ 0 *\/   \/* add user code begin EXINT15_10_IRQ 1 *\/    \/* add user code end EXINT15_10_IRQ 1 *\/ }  \/* add user code begin 1 *\/  \/* add user code end 1 *\/<\/code><\/pre>\n<p>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c, \u043f\u0440\u043e\u0448\u0438\u0432\u0430\u0435\u043c, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0438 \u0432\u0438\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u0432\u044b\u0441\u043e\u0442\u0443 \u0434\u043e \u043f\u043e\u0442\u043e\u043b\u043a\u0430 \u0441 \u0441\u0438\u0434\u044f\u0447\u0435\u0433\u043e \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0422\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0443 \u0441\u0435\u043d\u0441\u043e\u0440\u0430 \u043d\u0435\u043f\u043b\u043e\u0445\u0430\u044f, \u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0434\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u2013 \u043a\u0430\u043a \u0432 \u043c\u0438\u043d\u0438\u043c\u0443\u043c, \u0442\u0430\u043a \u0438 \u0432 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c.<\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0438\u0441\u044c \u0441 <strong>Artery <\/strong>\u0438 <strong>AT32<\/strong>, \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0449\u0443\u043f\u0430\u0442\u044c \u0438\u0445 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0438 IDE. \u0423\u0434\u0430\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432!<\/p>\n<p><a href=\"https:\/\/github.com\/tunerok\/at32f423_AJ-SR04M\/tree\/main\" rel=\"noopener noreferrer nofollow\"><u>\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442<\/u><\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/789238\/\"> https:\/\/habr.com\/ru\/articles\/789238\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-366438","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/366438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=366438"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/366438\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=366438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=366438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=366438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}