{"id":77540,"date":"2024-01-11T19:32:16","date_gmt":"2024-01-11T11:32:16","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=77540"},"modified":"2024-01-11T19:32:16","modified_gmt":"2024-01-11T11:32:16","slug":"sysfssj","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/77540.html","title":{"rendered":"\u4f7f\u7528STM32CubeMX\u53d1\u9001485\u6570\u636e"},"content":{"rendered":"

  \u672c\u6587\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528STM32CubeMX\u53d1\u9001485\u6570\u636e\uff0c\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u7406\u89e3STM32<\/a>CubeMX\u5728485\u901a\u4fe1\u4e2d\u7684\u5e94\u7528\u3002<\/p>\n

STM32CubeMX\u7b80\u4ecb<\/h2>\n

  STM32CubeMX\u662fSTMicroelectronics\u63a8\u51fa\u7684\u4e00\u6b3e\u96c6\u6210\u5f00\u53d1\u73af\u5883\u5de5\u5177\uff0c\u7528\u4e8eSTM32\u5fae\u63a7\u5236\u5668\u7684\u521d\u59cb\u5316\u8bbe\u7f6e\u548c\u5916\u56f4\u8bbe\u5907\u914d\u7f6e\u3002\u5b83\u63d0\u4f9b\u4e86\u56fe\u5f62\u5316\u754c\u9762\uff0c\u65b9\u4fbf\u7528\u6237\u8fdb\u884c\u5fae\u63a7\u5236\u5668\u7684\u914d\u7f6e\u548c\u4ee3\u7801\u751f\u6210\uff0c\u6781\u5927\u5730\u7b80\u5316\u4e86\u5d4c\u5165\u5f0f\u8f6f\u4ef6\u5f00\u53d1\u6d41\u7a0b\u3002<\/p>\n

\u4f7f\u7528STM32CubeMX\u914d\u7f6e485\u901a\u4fe1<\/h2>\n

  \u521d\u59cb\u5316\u5de5\u7a0b<\/h3>\n

  \u9996\u5148\uff0c\u5728STM32CubeMX\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u5de5\u7a0b\uff0c\u9009\u62e9\u76ee\u6807\u82af\u7247\u578b\u53f7\u5e76\u914d\u7f6e\u6240\u9700\u7684\u65f6\u949f\u3001\u5f15\u811a\u7b49\u57fa\u672c\u8bbe\u7f6e\u3002\u7136\u540e\u5728”Configuration”\u9009\u9879\u5361\u4e2d\u542f\u7528485\u901a\u4fe1\u7684\u76f8\u5173\u5916\u8bbe\uff0c\u4f8b\u5982UART\u6216USART\u3002<\/p>\n

  \u914d\u7f6eUART<\/a>\/USART<\/h4>\n

  \u5728”Configuration”\u9009\u9879\u5361\u4e2d\u627e\u5230\u76f8\u5e94\u7684UART\/USART\u5916\u8bbe\uff0c\u8bbe\u7f6e\u6ce2\u7279\u7387\u548c\u6570\u636e\u4f4d\uff0c\u9009\u62e9485\u901a\u4fe1\u6a21\u5f0f\u3002\u8fd8\u9700\u8981\u914d\u7f6e\u76f8\u5173\u7684GPIO<\/a>\u5f15\u811a\u4f5c\u4e3a485\u901a\u4fe1\u7684\u63a7\u5236\u5f15\u811a\uff0c\u4ee5\u53ca\u4f7f\u80fd\u76f8\u5e94\u7684\u4e2d\u65ad\u3002<\/p>\n

  \u751f\u6210\u4ee3\u7801<\/h4>\n

  \u5b8c\u6210\u5916\u8bbe\u914d\u7f6e\u540e\uff0c\u70b9\u51fb”Project”\u83dc\u5355\u4e0b\u7684”Generate Code”\u6309\u94ae\u3002STM32CubeMX\u4f1a\u6839\u636e\u7528\u6237\u914d\u7f6e\u81ea\u52a8\u751f\u6210\u521d\u59cb\u5316\u4ee3\u7801\u548c\u9a71\u52a8\u4ee3\u7801\u7b49\uff0c\u65b9\u4fbf\u7528\u6237\u8fdb\u884c\u540e\u7eed\u7684\u8f6f\u4ef6\u5f00\u53d1\u3002<\/p>\n

\u53d1\u9001485\u6570\u636e<\/h2>\n

  \u7f16\u5199\u53d1\u9001\u51fd\u6570<\/h3>\n

  \u5728\u751f\u6210\u7684\u521d\u59cb\u5316\u4ee3\u7801\u7684\u57fa\u7840\u4e0a\uff0c\u7528\u6237\u9700\u8981\u7f16\u5199\u53d1\u9001485\u6570\u636e\u7684\u51fd\u6570\u3002\u8fd9\u4e2a\u51fd\u6570\u901a\u5e38\u5305\u62ec\u6570\u636e\u6253\u5305\u3001\u53d1\u9001\u7b49\u64cd\u4f5c\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u8fdb\u884c\u4fee\u6539\u548c\u4f18\u5316\u3002<\/p>\n

  \u8c03\u7528\u53d1\u9001\u51fd\u6570<\/h4>\n

  \u5728\u4e3b\u7a0b\u5e8f\u4e2d\u8c03\u7528\u53d1\u9001485\u6570\u636e\u7684\u51fd\u6570\uff0c\u4f20\u5165\u5f85\u53d1\u9001\u7684\u6570\u636e\u548c\u957f\u5ea6\u7b49\u53c2\u6570\u3002\u901a\u8fc7\u8c03\u7528\u8be5\u51fd\u6570\uff0c\u5373\u53ef\u5b9e\u73b0485\u901a\u4fe1\u7684\u6570\u636e\u53d1\u9001\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u4e86\u89e3\u4e86\u5982\u4f55\u4f7f\u7528STM32CubeMX\u6765\u914d\u7f6e485\u901a\u4fe1\uff0c\u5e76\u5b9e\u73b0\u6570\u636e\u7684\u53d1\u9001\u3002<\/strong>\u5e0c\u671b\u672c\u6587\u80fd\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3STM32CubeMX\u5728485\u901a\u4fe1\u4e2d\u7684\u5e94\u7528\uff0c\u4e3a\u5d4c\u5165\u5f0f\u7cfb\u7edf\u5f00\u53d1\u63d0\u4f9b\u4e00\u4e9b\u5e2e\u52a9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u672c\u6587\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528STM32CubeMX\u53d1\u9001485\u6570\u636e\uff0c\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u7406\u89e3STM32CubeMX\u5728485\u901a\u4fe1\u4e2d\u7684\u5e94\u7528\u3002STM32CubeMX\u7b80\u4ecbSTM32CubeMX<\/p>\n","protected":false},"author":1,"featured_media":64183,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[287],"class_list":["post-77540","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-stm32"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/77540","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=77540"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/77540\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=77540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=77540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=77540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}