{"id":268652,"date":"2023-04-01T04:09:09","date_gmt":"2023-03-31T20:09:09","guid":{"rendered":"https:\/\/lrxjmw.cn\/syzlgcfxytl.html"},"modified":"2023-04-01T04:09:09","modified_gmt":"2023-03-31T20:09:09","slug":"syzlgcfxytl","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/syzlgcfxytl.html","title":{"rendered":"STM32F103\u79fb\u690dLinux\uff1a\u8fc7\u7a0b\u3001\u5206\u6790\u4e0e\u8ba8\u8bba"},"content":{"rendered":"
\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf<\/a>\u5f00\u53d1\u4e2dstm32f103 \u79fb\u690dlinux<\/strong>\uff0cLinux<\/a> \u5df2\u7ecf\u6210\u4e3a\u4e86\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u800c STM32F103 \u662f\u4e00\u6b3e\u975e\u5e38\u4f18\u79c0\u7684\u5d4c\u5165\u5f0f\u82af\u7247\u3002\u5c06 Linux \u79fb\u690d\u5230 STM32F103 \u4e0a\uff0c\u53ef\u4ee5\u8ba9\u8fd9\u6b3e\u82af\u7247\u5177\u6709\u66f4\u52a0\u5f3a\u5927\u7684\u8ba1\u7b97\u80fd\u529b\u548c\u66f4\u52a0\u7075\u6d3b\u7684\u5e94\u7528\u573a\u666f\u3002\u4f46\u662f\uff0cSTM32F103 \u79fb\u690d Linux \u7684\u8fc7\u7a0b\u5e76\u4e0d\u662f\u4e00\u4ef6\u5bb9\u6613\u7684\u4e8b\u60c5\u3002\u672c\u6587\u5c06\u5bf9 STM32F103 \u79fb\u690d Linux \u7684\u8fc7\u7a0b\u8fdb\u884c\u8be6\u7ec6\u7684\u5206\u6790\u548c\u8ba8\u8bba\uff0c\u5e2e\u52a9\u8bfb\u8005\u638c\u63e1\u8fd9\u4e00\u6280\u672f\u3002<\/p>\n 1.\u786c\u4ef6\u51c6\u5907<\/p>\n \u9996\u5148\u9700\u8981\u51c6\u5907\u597d\u786c\u4ef6\u5de5\u5177\uff0c\u5305\u62ec JTAG \u8c03\u8bd5\u5668\u3001\u4e32\u53e3\u8c03\u8bd5\u5668\u3001\u5916\u90e8 Flash \u5b58\u50a8\u5668\u7b49\u3002\u5176\u4e2d JTAG \u8c03\u8bd5\u5668\u7528\u4e8e\u4e0b\u8f7d\u7a0b\u5e8f\u548c\u8c03\u8bd5\u7a0b\u5e8f\uff0c\u4e32\u53e3\u8c03\u8bd5\u5668\u7528\u4e8e\u8f93\u51fa\u8c03\u8bd5\u4fe1\u606f\uff0c\u5916\u90e8 Flash \u5b58\u50a8\u5668\u7528\u4e8e\u5b58\u50a8\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n 2.\u7f16\u8bd1\u5185\u6838<\/p>\n \u5728\u79fb\u690d Linux \u7684\u8fc7\u7a0b\u4e2d\uff0c\u9700\u8981\u5148\u7f16\u8bd1\u5185\u6838\u3002\u53ef\u4ee5\u9009\u62e9\u4ece\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u6e90\u4ee3\u7801\uff0c\u7136\u540e\u8fdb\u884c\u7f16\u8bd1\u3002\u5728\u7f16\u8bd1\u5185\u6838\u65f6\u9700\u8981\u9009\u62e9\u9002\u5408 STM32F103 \u7684\u914d\u7f6e\u9009\u9879\uff0c\u5e76\u4e14\u9700\u8981\u5c06\u7f16\u8bd1\u51fa\u6765\u7684\u5185\u6838\u955c\u50cf\u6587\u4ef6\u70e7\u5f55\u5230\u5916\u90e8 Flash \u5b58\u50a8\u5668\u4e2d\u3002<\/p>\n <\/p>\n 3.\u7f16\u8bd1\u6587\u4ef6\u7cfb\u7edf<\/p>\n \u5728\u7f16\u8bd1\u6587\u4ef6\u7cfb\u7edf\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528 BusyBox \u6216\u8005 Buildroot\u3002BusyBox \u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u5de5\u5177\u96c6\uff0c\u5305\u542b\u4e86\u8bb8\u591a\u5e38\u7528\u7684 Linux \u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u6765\u6784\u5efa\u5d4c\u5165\u5f0f\u7cfb\u7edf\u3002Buildroot \u662f\u4e00\u4e2a\u57fa\u4e8e Makefile \u7684\u81ea\u52a8\u5316\u6784\u5efa\u5de5\u5177\uff0c\u53ef\u4ee5\u6839\u636e\u914d\u7f6e\u6587\u4ef6\u751f\u6210\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n 4.\u79fb\u690d\u9a71\u52a8\u7a0b\u5e8f<\/p>\n <\/p>\n \u5728\u79fb\u690d\u9a71\u52a8\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u5148\u5bf9\u786c\u4ef6\u8fdb\u884c\u5206\u6790linux\u547d\u4ee4chm\uff0c\u5e76\u4e14\u6839\u636e\u786c\u4ef6\u7684\u7279\u6027\u7f16\u5199\u5bf9\u5e94\u7684\u9a71\u52a8\u7a0b\u5e8f\u3002\u5728\u79fb\u690d\u8fc7\u7a0b\u4e2d\u9700\u8981\u6ce8\u610f\u63a5\u53e3\u7684\u517c\u5bb9\u6027\u548c\u9a71\u52a8\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u3002<\/p>\n 5.\u79fb\u690d\u5e94\u7528\u7a0b\u5e8f<\/p>\n \u5728\u79fb\u690d\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u6839\u636e\u5b9e\u9645\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5e94\u7528\u7a0b\u5e8fstm32f103 \u79fb\u690dlinux<\/strong>\uff0c\u5e76\u4e14\u8fdb\u884c\u76f8\u5e94\u7684\u4fee\u6539\u548c\u9002\u914d\u3002\u5728\u79fb\u690d\u8fc7\u7a0b\u4e2d\u9700\u8981\u6ce8\u610f\u5e94\u7528\u7a0b\u5e8f\u7684\u517c\u5bb9\u6027\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n 6.\u8c03\u8bd5<\/p>\n \u5728\u79fb\u690d\u5b8c\u6210\u540e\uff0c\u9700\u8981\u8fdb\u884c\u8c03\u8bd5\u3002\u53ef\u4ee5\u4f7f\u7528 JTAG \u8c03\u8bd5\u5668\u548c\u4e32\u53e3\u8c03\u8bd5\u5668\u8f93\u51fa\u8c03\u8bd5\u4fe1\u606f\uff0c\u5e76\u4e14\u901a\u8fc7 GDB \u8fdb\u884c\u8fdc\u7a0b\u8c03\u8bd5\u3002\u5728\u8c03\u8bd5\u8fc7\u7a0b\u4e2d\u9700\u8981\u6ce8\u610f\u95ee\u9898\u7684\u5b9a\u4f4d\u548c\u89e3\u51b3\uff0c\u5e76\u4e14\u8981\u4fdd\u8bc1\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027\u3002<\/p>\n 7.\u603b\u7ed3\u7ecf\u9a8c<\/p>\n \u5728 STM32F103 \u79fb\u690d Linux \u7684\u8fc7\u7a0b\u4e2d\uff0c\u9700\u8981\u638c\u63e1\u4e00\u5b9a\u7684\u786c\u4ef6\u77e5\u8bc6\u548c\u8f6f\u4ef6\u77e5\u8bc6\uff0c\u5e76\u4e14\u9700\u8981\u5177\u5907\u4e00\u5b9a\u7684\u7f16\u7a0b\u80fd\u529b\u3002\u5728\u79fb\u690d\u8fc7\u7a0b\u4e2d\u9700\u8981\u6ce8\u610f\u95ee\u9898\u7684\u89e3\u51b3\u548c\u7a33\u5b9a\u6027\u7684\u4fdd\u8bc1\u3002\u540c\u65f6\uff0c\u8fd8\u9700\u8981\u4e0d\u65ad\u603b\u7ed3\u7ecf\u9a8c\uff0c\u63d0\u9ad8\u81ea\u5df1\u7684\u6280\u672f\u6c34\u5e73\u3002<\/p>\n 8.\u5b9e\u4f8b\u5206\u6790<\/p>\n \u4ee5\u5c06 Linux \u79fb\u690d\u5230\u667a\u80fd\u5bb6\u5c45\u8bbe\u5907\u4e3a\u4f8b\uff0c\u53ef\u4ee5\u5b9e\u73b0\u8fdc\u7a0b\u63a7\u5236\u3001\u6570\u636e\u91c7\u96c6\u548c\u4e91\u7aef\u5b58\u50a8\u7b49\u529f\u80fd\u3002\u5728\u79fb\u690d\u8fc7\u7a0b\u4e2d\u9700\u8981\u6ce8\u610f\u786c\u4ef6\u8d44\u6e90\u7684\u9650\u5236\u548c\u529f\u8017\u7684\u63a7\u5236\uff0c\u5e76\u4e14\u9700\u8981\u8fdb\u884c\u5b89\u5168\u6027\u7684\u8003\u8651\u3002<\/p>\n 9.\u4f18\u5316\u5347\u7ea7<\/p>\n \u5728\u79fb\u690d\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u8fdb\u884c\u4f18\u5316\u5347\u7ea7\u3002\u53ef\u4ee5\u901a\u8fc7\u4f18\u5316\u5185\u6838\u3001\u9a71\u52a8\u7a0b\u5e8f\u548c\u5e94\u7528\u7a0b\u5e8f\u6765\u63d0\u9ad8\u7cfb\u7edf\u6027\u80fd\u548c\u7a33\u5b9a\u6027\u3002\u540c\u65f6linux \u4e0b\u8f7d\u5de5\u5177\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0\u65b0\u7684\u529f\u80fd\u6765\u4e30\u5bcc\u7cfb\u7edf\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n 10.\u5c55\u671b\u672a\u6765<\/p>\n \u968f\u7740\u7269\u8054\u7f51\u6280\u672f\u7684\u53d1\u5c55\uff0c\u5d4c\u5165\u5f0f\u7cfb\u7edf\u5c06\u4f1a\u5f97\u5230\u5e7f\u6cdb\u5e94\u7528\u3002\u5c06 Linux \u79fb\u690d\u5230 STM32F103 \u4e0a\uff0c\u53ef\u4ee5\u8ba9\u8fd9\u6b3e\u82af\u7247\u5177\u6709\u66f4\u52a0\u5f3a\u5927\u7684\u8ba1\u7b97\u80fd\u529b\u548c\u66f4\u52a0\u7075\u6d3b\u7684\u5e94\u7528\u573a\u666f\u3002\u672a\u6765\uff0c\u6211\u4eec\u8fd8\u5c06\u63a2\u7d22\u66f4\u591a\u5d4c\u5165\u5f0f\u7cfb\u7edf\u5f00\u53d1\u6280\u672f\uff0c\u5e76\u4e14\u4e3a\u667a\u80fd\u5bb6\u5c45\u3001\u667a\u80fd\u533b\u7597\u3001\u667a\u80fd\u4ea4\u901a\u7b49\u9886\u57df\u505a\u51fa\u66f4\u591a\u8d21\u732e\u3002<\/p>\n \u672c\u6587\u5bf9 STM32F103 \u79fb\u690d Linux \u7684\u8fc7\u7a0b\u8fdb\u884c\u4e86\u8be6\u7ec6\u7684\u5206\u6790\u548c\u8ba8\u8bba\u3002\u5728\u79fb\u690d\u8fc7\u7a0b\u4e2d\u9700\u8981\u638c\u63e1\u4e00\u5b9a\u7684\u786c\u4ef6\u77e5\u8bc6\u548c\u8f6f\u4ef6\u77e5\u8bc6\uff0c\u5e76\u4e14\u9700\u8981\u5177\u5907\u4e00\u5b9a\u7684\u7f16\u7a0b\u80fd\u529b\u3002\u540c\u65f6\uff0c\u8fd8\u9700\u8981\u4e0d\u65ad\u603b\u7ed3\u7ecf\u9a8c\uff0c\u63d0\u9ad8\u81ea\u5df1\u7684\u6280\u672f\u6c34\u5e73\u3002\u5c06 Linux \u79fb\u690d\u5230 STM32F103 \u4e0a\uff0c\u53ef\u4ee5\u8ba9\u8fd9\u6b3e\u82af\u7247\u5177\u6709\u66f4\u52a0\u5f3a\u5927\u7684\u8ba1\u7b97\u80fd\u529b\u548c\u66f4\u52a0\u7075\u6d3b\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u7684\u8fc7\u7a0b\u8fdb\u884c\u8be6\u7ec6\u7684\u5206\u6790\u548c\u8ba8\u8bba\uff0c\u5e2e\u52a9\u8bfb\u8005\u638c\u63e1\u8fd9\u4e00\u6280\u672f\u3002\u5728\u79fb\u690d\u9a71\u52a8\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u5148\u5bf9\u786c\u4ef6\u8fdb\u884c\u5206\u6790\uff0c\u5e76\u4e14\u6839\u636e\u786c\u4ef6\u7684\u7279\u6027\u7f16\u5199\u5bf9\u5e94\u7684\u9a71\u52a8\u7a0b\u5e8f\u3002\u5728\u79fb\u690d\u8fc7\u7a0b\u4e2d\u9700\u8981\u6ce8\u610f\u5e94\u7528\u7a0b\u5e8f\u7684\u517c\u5bb9\u6027\u548c\u7a33\u5b9a\u6027\u3002\u5728\u79fb\u690d\u8fc7\u7a0b\u4e2d\u9700\u8981\u6ce8\u610f\u95ee\u9898\u7684\u89e3\u51b3\u548c\u7a33\u5b9a\u6027\u7684\u4fdd\u8bc1\u3002\u5728\u79fb\u690d\u8fc7\u7a0b\u4e2d\u9700\u8981\u6ce8\u610f\u786c\u4ef6\u8d44\u6e90\u7684\u9650\u5236\u548c\u529f\u8017\u7684\u63a7\u5236\uff0c\u5e76\u4e14\u9700\u8981\u8fdb\u884c\u5b89\u5168\u6027\u7684\u8003\u8651\u3002\u5728\u79fb\u690d\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u8fdb\u884c\u4f18\u5316\u5347\u7ea7\u3002\u7684\u8fc7\u7a0b\u8fdb\u884c\u4e86\u8be6\u7ec6\u7684\u5206\u6790\u548c\u8ba8\u8bba\u3002<\/p>\n","protected":false},"author":1,"featured_media":268653,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-268652","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/268652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=268652"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/268652\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/268653"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=268652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=268652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=268652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}