{"id":254,"date":"2024-08-08T12:08:25","date_gmt":"2024-08-08T04:08:25","guid":{"rendered":"http:\/\/8.153.64.192\/?page_id=254"},"modified":"2024-08-16T14:12:28","modified_gmt":"2024-08-16T06:12:28","slug":"vscode%e4%b8%8b%e7%9a%84%e7%bc%96%e8%af%91%e3%80%81%e8%b0%83%e8%af%95%e3%80%81%e7%83%a7%e5%bd%95","status":"publish","type":"page","link":"http:\/\/www.agm-support.com.cn\/index.php\/%e6%96%b0%e6%89%8b%e5%85%a5%e9%97%a8\/vscode%e4%b8%8b%e7%9a%84%e7%bc%96%e8%af%91%e3%80%81%e8%b0%83%e8%af%95%e3%80%81%e7%83%a7%e5%bd%95\/","title":{"rendered":"VSCode\u4e0b\u7684\u7f16\u8bd1\u3001\u8c03\u8bd5\u3001\u70e7\u5f55"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%B8%80%E3%80%81%E7%BC%96%E8%AF%91%E7%A8%8B%E5%BA%8F\"><\/span>\u4e00\u3001<strong>\u7f16\u8bd1\u7a0b\u5e8f<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u7a0b\u5e8f\u7f16\u8bd1\u53ef\u4ee5\u901a\u8fc72\u79cd\u65b9\u5f0f\uff1apio\u5de6\u680f\u6309\u94ae\u3001\u547d\u4ee4\u884c\uff1b<\/p>\n\n\n\n<p>1. Pio\u5de6\u680f\u6309\u94ae\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"404\" height=\"492\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-26.png\" alt=\"\" class=\"wp-image-259\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-26.png 404w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-26-246x300.png 246w\" sizes=\"auto, (max-width: 404px) 100vw, 404px\" \/><\/figure>\n\n\n\n<p>\u70b9\u4e0b\u6309\u94ae\u7f16\u8bd1\u540e\uff0c\u4f1a\u81ea\u52a8\u5f39\u51fa\u7ec8\u7aef\u7a97\u53e3\u663e\u793a\u7f16\u8bd1\u8fc7\u7a0b\u3002<\/p>\n\n\n\n<p>2. \u547d\u4ee4\u884c\u65b9\u5f0f\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p>\u5728\u201c\u7ec8\u7aef\u201d\u901a\u8fc7\u547d\u4ee4\u884c\u8fdb\u884c\u7684\u5de5\u7a0b\u7f16\u8bd1\u3002\u547d\u4ee4\uff1apio run -e debug&nbsp;-v<\/p>\n\n\n\n<p>\u4f7f\u7528\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"844\" height=\"571\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-27.png\" alt=\"\" class=\"wp-image-262\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-27.png 844w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-27-300x203.png 300w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-27-768x520.png 768w\" sizes=\"auto, (max-width: 844px) 100vw, 844px\" \/><\/figure>\n\n\n\n<p>\u4e0d\u7ba1\u4f7f\u7528\u4e0a\u8fb9\u7684\u54ea\u79cd\u65b9\u5f0f\uff0c\u7f16\u8bd1\u548c\u70e7\u5f55\u6210\u529f\u65f6\uff0c\u4f1a\u6709success\u7684\u63d0\u793a\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"745\" height=\"380\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-28.png\" alt=\"\" class=\"wp-image-263\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-28.png 745w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-28-300x153.png 300w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/figure>\n\n\n\n<p>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BA%8C%E3%80%81%E7%83%A7%E5%BD%95%E7%A8%8B%E5%BA%8F%EF%BC%88%E5%92%8Cve%E9%85%8D%E7%BD%AE%EF%BC%89\"><\/span>\u4e8c\u3001<strong>\u70e7\u5f55\u7a0b\u5e8f\uff08\u548cve\u914d\u7f6e\uff09<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u6ce8\u610f\uff1aAG32\u70e7\u5f55\u7a0b\u5e8f\u548c\u70e7\u5f55VE\u914d\u7f6e\u662f\u5206\u5f00\u7684\u3002<\/p>\n\n\n\n<p><em>\u6ce8\uff1a\u8fd9\u91cc\u63cf\u8ff0\u6240\u8bf4\u7684\u201c\u70e7\u5f55VE\u914d\u7f6e\u201d\uff0c\u5176\u5b9e\u5c31\u662f\u524d\u6587\u4e2d\u63d0\u5230\u7684\u70e7\u5f55logic.bin\uff08cpld\u90e8\u5206\u7684bin\uff09\u3002<\/em><\/p>\n\n\n\n<p>\u7a0b\u5e8f\u6709\u6539\u52a8\uff0c\u5c31\u7f16\u8bd1\u540e\u70e7\u5f55\u7a0b\u5e8f\uff1bVE\u6709\u6539\u52a8\uff0c\u5c31\u70e7\u5f55VE\u3002<\/p>\n\n\n\n<p>\u4e24\u8005\u76f8\u4e92\u72ec\u7acb\uff0c\u5404\u70e7\u5404\u7684\u3002\u70e7\u5f55\u6ca1\u6709\u5148\u540e\u987a\u5e8f\u4e4b\u5206\u3002\u4e24\u8005\u7684\u70e7\u5f55\u63a5\u7ebf\u90fd\u76f8\u540c\uff0c\u53ea\u662f\u6309\u94ae\u4e0d\u540c\u3002<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e91960\" class=\"has-inline-color\">\u65b0\u5f00\u53d1\u677f\u7684\u7b2c\u4e00\u6b21\u70e7\u5f55\uff0c\u5fc5\u987b\u5148\u70e7\u5f55VE\uff0c\u518d\u70e7\u5f55\u7a0b\u5e8f\u3002<\/mark><\/strong><\/p>\n\n\n\n<p>\u70e7\u5f55\u652f\u6301\u4e09\u79cd\u65b9\u5f0f\uff1a<strong>daplink\u3001jlink\u548c\u4e32\u53e3<\/strong>\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"daplink%E7%83%A7%E5%BD%95%EF%BC%9A\"><\/span><strong>dap<\/strong><strong>link\u70e7\u5f55\uff1a<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>daplink\u65b9\u5f0f\u662f\u5b98\u65b9\u63a8\u8350\u7684\u70e7\u5f55\u65b9\u5f0f\uff0c\u5b98\u65b9\u63d0\u4f9b\u7684\u70e7\u5f55\u5de5\u5177\u5c5e\u4e8e\u8fd9\u79cd\u7c7b\u578b\u3002<\/p>\n\n\n\n<p><strong>1. \u914d\u7f6e\u70e7\u5f55\u65b9\u5f0f\uff1a<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p>\u5982\u679c\u4f7f\u7528daplink\u6765\u70e7\u5f55\uff0c\u9700\u8981\u5728platformio.ini\u4e2d\u8fdb\u884c\u76f8\u5e94\u914d\u7f6e\u3002<\/p>\n\n\n\n<p>\u914d\u7f6e\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<p>\u4fee\u6539upload_protocol\u9879\uff0c\u4f7f\uff1a<strong>upload_protocol = cmsis-dap-openocd<\/strong><strong><\/strong><\/p>\n\n\n\n<p><strong>2. \u70e7\u5f55\u7a0b\u5e8f\uff1a<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p>\u70e7\u5f55\u65b9\u6cd5\u548c\u4e0a\u8fb9\u7684\u7f16\u8bd1\u76f8\u4f3c\uff0c\u4e5f\u662f2\u79cd\u65b9\u5f0f\uff1a\u4e0b\u8fb9\u6309\u94ae\u3001\u547d\u4ee4\u65b9\u5f0f\u3002<\/p>\n\n\n\n<p>\u5982\u4e0b\u56fe\uff08\u4e8c\u9009\u4e00\uff09\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"580\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-29.png\" alt=\"\" class=\"wp-image-266\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-29.png 735w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-29-300x237.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"841\" height=\"232\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-30.png\" alt=\"\" class=\"wp-image-267\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-30.png 841w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-30-300x83.png 300w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-30-768x212.png 768w\" sizes=\"auto, (max-width: 841px) 100vw, 841px\" \/><\/figure>\n\n\n\n<p>\u70e7\u5f55\u547d\u4ee4\uff1apio run -e release -t upload<\/p>\n\n\n\n<p><strong>3. \u70e7\u5f55ve\u6587\u4ef6\uff1a<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p>\u5728\u70e7\u5f55ve\u914d\u7f6e\u65f6\uff0c\u53ea\u652f\u6301\u4e24\u79cd\u65b9\u5f0f\uff1a\u5de6\u8fb9\u680f\u548c\u547d\u4ee4\u65b9\u5f0f\u3002<\/p>\n\n\n\n<p>\u5982\u4e0b\u56fe\uff1a\uff08\u4e8c\u9009\u4e00\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"714\" height=\"581\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-31.png\" alt=\"\" class=\"wp-image-268\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-31.png 714w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-31-300x244.png 300w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"845\" height=\"232\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-32.png\" alt=\"\" class=\"wp-image-269\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-32.png 845w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-32-300x82.png 300w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-32-768x211.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/figure>\n\n\n\n<p>\u70e7\u5f55\u547d\u4ee4\uff1apio run -e release -t logic<\/p>\n\n\n\n<p>\u6ce8\uff1a\u70e7\u5f55\u5230flash\u7684ve\u914d\u7f6e\uff0c\u5c31\u662f\u5728platformio.ini\u4e2d\u6307\u5b9a\u7684board_logic_ve\u9879\u3002<\/p>\n\n\n\n<p>\u5982\u6837\u4f8b\u4e2d\u7684\uff1aboard_logic.ve = <strong>example_board.ve<\/strong><\/p>\n\n\n\n<p><strong>4. \u70e7\u5f55\u7ed3\u679c\u63d0\u793a\uff1a<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p>\u5728\u70e7\u5f55\u56fa\u4ef6\u6216\u8005ve\u914d\u7f6e\u5b8c\u6210\u65f6\uff0c\u90fd\u4f1a\u6709SUCCESS\u63d0\u793a\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u70e7\u5f55\u5931\u8d25\uff0c\u4f1a\u6709\u7ea2\u8272Error\u4fe1\u606f\u7ed9\u51fa\u5bf9\u5e94\u7684\u5931\u8d25\u539f\u56e0\u3002<\/p>\n\n\n\n<p>\u70e7\u5f55\u4e2d\uff0c\u6700\u5e38\u89c1\u7684\u62a5\u9519\u662f \u201cError connecting DP: cannot read IDR\u201d\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u662f\u65b0\u710a\u63a5\u7684\u677f\u5b50\uff0c\u9700\u8981\u68c0\u67e5\uff1a\u82af\u7247\u662f\u5426\u6709\u865a\u710a\u3001\u82af\u7247\u4f9b\u7535\u3001link\u63a5\u7ebf\u7ba1\u811a\u662f\u5426\u6b63\u5e38\uff0c\u662f\u5426\u5bf9\u5e94\uff1b<\/p>\n\n\n\n<p>\u5982\u679c\u662f\u6b63\u5e38\u4f7f\u7528\u4e2d\u7a81\u7136\u51fa\u73b0\uff0c\u53ef\u4ee5Boot0\u62c9\u9ad8\uff0c\u91cd\u65b0\u4e0a\u7535\u82af\u7247\uff0c\u91cd\u65b0\u63d2\u62d4\u70e7\u5f55\u5668\uff0c\u518d\u5c1d\u8bd5\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Jlink%E7%83%A7%E5%BD%95%EF%BC%9A\"><\/span><strong>Jlink<\/strong><strong>\u70e7\u5f55\uff1a<\/strong><strong><\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Jlink\u70e7\u5f55\u548cdaplink\u70e7\u5f55\u6709\u4e24\u70b9\u5dee\u5f02\uff0c\u5176\u4ed6\u5747\u5b8c\u5168\u76f8\u540c\u3002<strong><\/strong><\/p>\n\n\n\n<p>1. \u5728\u9996\u6b21\u70e7\u5f55\u524d\uff0c\u9700\u8981\u5148\u5b89\u88c5\u63d2\u4ef6zadig-2.8.exe\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p>\u6ce8\uff1a\u8be5\u63d2\u4ef6\u662fjlink\u6b63\u5e38\u9a71\u52a8\u7684\u63d2\u4ef6\u3002\u5728\u5b89\u88c5\u8be5\u63d2\u4ef6\u524d\uff0c\u786e\u4fdd\u7535\u8111\u4e0a\u5df2\u7ecf\u5b89\u88c5\u8fc7jlink\u7684\u9a71\u52a8\uff0c\u5e76\u80fd\u6b63\u5e38\u4f7f\u7528jlink\u3002<\/p>\n\n\n\n<p>\u5b89\u88c5\u63d2\u4ef6\u65f6\uff0c\u9700\u8981\u5c06jlink\u8fde\u63a5\u5230\u7535\u8111\uff0c\u7136\u540e\u518d\u5b89\u88c5\u3002<\/p>\n\n\n\n<p>\u8be5\u63d2\u4ef6\u4f4d\u4e8eSDK\u89e3\u538b\u540e\u7684\u6839\u76ee\u5f55\u4e0b\u3002<\/p>\n\n\n\n<p>\u5b89\u88c5\u65b9\u5f0f\u53c2\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"347\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-33.png\" alt=\"\" class=\"wp-image-270\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-33.png 799w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-33-300x130.png 300w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-33-768x334.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/figure>\n\n\n\n<p><em>\u6ce8\uff1a\u5f00\u53d1\u4e2d\u5982\u91cd\u88c5\u8fc7\u7535\u8111\uff0c\u6216\u91cd\u65b0\u5b89\u88c5\u8fc7jlink\u9a71\u52a8\uff0c\u9700\u8981\u518d\u6b21\u5b89\u88c5\u8be5\u9a71\u52a8\u63d2\u4ef6\u3002<\/em><em><\/em><\/p>\n\n\n\n<p>2. \u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u4fee\u6539\u70e7\u5f55\u65b9\u5f0f\u4e3a\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p>upload_protocol = jlink-openocd<\/p>\n\n\n\n<p>\u8fd9\u91cc\u914d\u7f6e\u4fee\u6539\u5b8c\u540e\uff0c\u70e7\u5f55\u6309\u94ae\uff08\u6216\u547d\u4ee4\uff09\uff0c\u8ddfdap-link\u662f\u5b8c\u5168\u4e00\u6837\u7684\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%B8%B2%E5%8F%A3%E7%83%A7%E5%BD%95%EF%BC%9A\"><\/span><strong>\u4e32\u53e3\u70e7\u5f55\uff1a<\/strong><strong><\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>1. \u4e32\u53e3\u70e7\u5f55\u524d\uff0c\u8981\u5148\u4f7f\u82af\u7247\u8fdb\u5165\u70e7\u5f55\u6a21\u5f0f\uff1b<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p>\u8fdb\u5165\u70e7\u5f55\u6a21\u5f0f\u7684\u65b9\u6cd5\uff1aboot1\u63a5\u5730\uff0cboot0 \u63a5\u9ad8\u3002<\/p>\n\n\n\n<p>2. \u5728platformio.ini\u7684\u914d\u7f6e\u91cc\uff0c\u914d\u7f6e\u6210\u4e32\u53e3\u70e7\u5f55\u5e76\u6307\u5b9aPC\u4f7f\u7528\u7684\u4e32\u53e3\u53f7\uff1b<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p>\u914d\u7f6e\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<p>\u4fee\u6539upload_protocol\u9879\uff0c\u4f7f\uff1a<strong>upload_protocol = S<\/strong><strong>erial<\/strong><strong><\/strong><\/p>\n\n\n\n<p>\u4fee\u6539upload_port\u9879\uff0c\u4f7f\uff1a<strong>u<\/strong><strong>pload_port = COMx \uff08x\u662f\u7f16\u53f7\uff09<\/strong><\/p>\n\n\n\n<p>\u70e7\u5f55\u65f6\u7684\u6ce2\u7279\u7387\u53ef\u4ee5\u5728[env:serial] \u4e2d\u4fee\u6539\uff0c\u5982\uff1a<strong>upload_speed = 115200<\/strong><\/p>\n\n\n\n<p>\uff08\u6ce8\uff1a\u70e7\u5f55\u65f6\u82af\u7247\u7aef\u5fc5\u987b\u4f7f\u7528<strong>UART0<\/strong>\uff09<\/p>\n\n\n\n<p>3. \u70e7\u5f55\u7a0b\u5e8f\u548c\u70e7\u5f55ve\uff1b<\/p>\n\n\n\n<p>\u6309\u94ae\u65b9\u5f0f\uff0c\u4e32\u53e3\u70e7\u5f55\u548cjlink\u70e7\u5f55\u65f6\u76f8\u540c\uff08\u53ef\u53c2\u7167\u4e0a\u8fb9jlink\u70e7\u5f55\u7684\u4ecb\u7ecd\uff09<\/p>\n\n\n\n<p>\u547d\u4ee4\u65b9\u5f0f\uff0c\uff08\u628arelease\u6362\u6210serial\uff09\u3002<\/p>\n\n\n\n<p>\u70e7\u5f55\u7a0b\u5e8f\u7684\u547d\u4ee4\uff1apio run -e serial -t upload<\/p>\n\n\n\n<p>\u70e7\u5f55ve\u7684\u547d\u4ee4\uff1apio run -e serial -t logic<\/p>\n\n\n\n<p>4. \u70e7\u5f55\u6210\u529f\u540e\u7684\u53cd\u9988\uff1b<\/p>\n\n\n\n<p>\u540cjlink\u70e7\u5f55\u76f8\u4f3c\uff0c\u6210\u529f\u4e5f\u4f1a\u6709SUCCESS\u63d0\u793a\uff1b<\/p>\n\n\n\n<p>\u70e7\u5f55\u5931\u8d25\u4f1a\u6709\u7ea2\u8272FAIL\u63d0\u793a\u9519\u8bef\u539f\u56e0\u3002<\/p>\n\n\n\n<p><strong>\u603b\u7ed3\u4e0b\u51e0\u4e2a\u5e38\u7528\u547d\u4ee4\uff08\u5982\u679c\u4f7f\u7528\u547d\u4ee4\u7684\u8bdd\uff09\uff1a<\/strong><\/p>\n\n\n\n<p>\u7f16\u8bd1\uff08debug\uff09\uff1apio run -e dev -v<\/p>\n\n\n\n<p>#\u4e32\u53e3\u70e7\u5f55ve\u914d\u7f6e\uff1apio run -e serial -t logic<\/p>\n\n\n\n<p>#\u4e32\u53e3\u70e7\u5f55code\uff1apio run -e serial -t upload<\/p>\n\n\n\n<p>jlink\u70e7\u5f55ve\u914d\u7f6e: pio run -e release -t logic<\/p>\n\n\n\n<p>jlink\u70e7\u5f55code: pio run -e release -t upload<\/p>\n\n\n\n<p><em>\u6ce8\uff1a\u8fd9\u91cc\u7684<\/em><strong><em><strong><em>\u70e7\u5f55VE<\/em><\/strong><\/em><\/strong><em>\uff0c\u5176\u5b9e\u662f<\/em><strong><em><strong><em>\u70e7\u5f55logic<\/em><\/strong><\/em><\/strong><em>\u3002\u66f4\u591a\u4fe1\u606f\u8bf7\u53c2\u8003\u540e\u8fb9\u63cf\u8ff0\u3002<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%B8%89%E3%80%81daplink%EF%BC%88%E6%88%96jlink%EF%BC%89%E4%BB%BF%E7%9C%9F%EF%BC%9A\"><\/span>\u4e09\u3001<strong>daplink\uff08\u6216jlink\uff09\u4eff\u771f\uff1a<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u70e7\u5f55\u5b8c\u6210\u540e\uff0c\u5982\u679c\u8981\u4eff\u771f\u8ddf\u8e2a\u4ee3\u7801\u65f6\uff0c\u53ef\u901a\u8fc7daplink\u6216jlink\u7684\u65b9\u5f0f\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528\u65f6\uff0c\u9700\u8981\u5728platformio.ini\u4e2d\u6307\u5b9a\uff1a<\/p>\n\n\n\n<p>\u7528daplink\u65f6\uff1adebug_tool = cmsis-dap-openocd<\/p>\n\n\n\n<p>\u7528jlink\u65f6\uff1adebug_tool = jlink-openocd<\/p>\n\n\n\n<p>\u5728\u4eff\u771f\u7684\u64cd\u4f5c\u4e0a\uff0c\u4e24\u79cd\u65b9\u5f0f\u5b8c\u5168\u76f8\u540c\u3002<\/p>\n\n\n\n<p>\u6309\u4ee5\u4e0b\u6b65\u9aa4\u542f\u52a8\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"749\" height=\"566\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-34.png\" alt=\"\" class=\"wp-image-273\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-34.png 749w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-34-300x227.png 300w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"410\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-35.png\" alt=\"\" class=\"wp-image-274\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-35.png 737w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-35-300x167.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"839\" height=\"401\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-36.png\" alt=\"\" class=\"wp-image-275\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-36.png 839w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-36-300x143.png 300w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-36-768x367.png 768w\" sizes=\"auto, (max-width: 839px) 100vw, 839px\" \/><\/figure>\n\n\n\n<p>\u6b63\u5e38\u8fd0\u884c\u8d77\u6765\u540e\uff0c\u8fd9\u4e2a\u6837\u5b50\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"839\" height=\"311\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-37.png\" alt=\"\" class=\"wp-image-276\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-37.png 839w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-37-300x111.png 300w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-37-768x285.png 768w\" sizes=\"auto, (max-width: 839px) 100vw, 839px\" \/><\/figure>\n\n\n\n<p>\u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u5355\u6b65\u7a0b\u5e8f\u4e86\u3002debug\u8c03\u8bd5\u4e2d\u7684\u5feb\u6377\u952e\u548cVS\u4e00\u81f4\u3002<\/p>\n\n\n\n<p><em>\u6ce8\uff1a\u4eceSDK1.5.0\u4e4b\u540e\uff08\u5b89\u88c5\u5305\u4e3a AgRV_pio-1.5.0-win64-release\uff09\uff0cdebug\u8c03\u8bd5<\/em><em> <\/em><em>\u9664\u4e86\u5f53\u524d\u7684pio-debug\u5916\uff0c\u8fd8\u652f\u6301cortex-debug\u63d2\u4ef6\u3002\u5177\u4f53\u4f7f\u7528\u65b9\u6cd5\uff0c\u8bf7\u53c2\u8003<\/em><em> <\/em><em>\u7f51\u76d8\u6587\u6863\u300aAG32\u4e0b\u4f7f\u7528cotex\u63d2\u4ef6\u8c03\u8bd5\u7a0b\u5e8f\u300b<\/em><em><\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%9B%9B%E3%80%81%E5%A2%9E%E5%8A%A0%E7%BC%96%E8%AF%91%E7%9B%AE%E5%BD%95\"><\/span>\u56db\u3001<strong>\u589e\u52a0\u7f16\u8bd1\u76ee\u5f55<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u5728\u5f00\u53d1\u4e2d\uff0c\u65b0\u589e\u4e86c\u6587\u4ef6\u548ch\u6587\u4ef6\uff0c\u600e\u4e48\u7f16\u8bd1\u8fdb\u6765\uff1f<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5982\u679c\u65b0\u589e\u6587\u4ef6\u5728\u539f\u6709\u8def\u5f84\u4e0b\uff0c\u5219\u4f1a\u88ab\u81ea\u52a8\u5173\u8054\u8fdb\u6765\u7f16\u8bd1\uff1b<\/li>\n\n\n\n<li>\u5982\u679c\u65b0\u589e\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u5219\u8981\u628a\u8be5\u6587\u4ef6\u5939\u52a0\u5165\u5230\u7f16\u8bd1\u9009\u9879\u4e2d\uff1b<\/li>\n<\/ol>\n\n\n\n<p>\u5982\u679c\u6587\u4ef6\u5939\u4e0b\u5b58\u653eC\u6587\u4ef6\uff1a\u5728src_filter\u4e2d\u589e\u52a0\u8be5\u6587\u4ef6\u5939<\/p>\n\n\n\n<p>\u5982\u679c\u6587\u4ef6\u5939\u4e0b\u5b58\u653eh\u6587\u4ef6\uff1a\u5728src_build_flags\u4e2d\u589e\u52a0\u8be5\u6587\u4ef6\u5939<\/p>\n\n\n\n<p>\u4e3e\u4f8b\uff1a<\/p>\n\n\n\n<p>\u5728example\u9879\u76ee\u91cc\uff0c\u53ea\u6709\u4e00\u4e2asrc\u6587\u4ef6\u5939\uff08\u91cc\u8fb9\u5b58\u653e\u5168\u90e8.c\u548c.h\uff09\u3002\u7f16\u8bd1\u8bbe\u7f6e\u4e3a\uff1a<\/p>\n\n\n\n<p><strong><em><strong><em>src_dir = .<\/em><\/strong><\/em><\/strong><strong><em><strong><em><\/em><\/strong><\/em><\/strong><\/p>\n\n\n\n<p><strong><em><strong><em>include_dir = .\/src<\/em><\/strong><\/em><\/strong><strong><em><strong><em><\/em><\/strong><\/em><\/strong><\/p>\n\n\n\n<p><strong><em><strong><em>build_src_filter = \"-&lt;*&gt; +&lt;.\/src\/**\/*.c&gt;\"<\/em><\/strong><\/em><\/strong><strong><em><strong><em><\/em><\/strong><\/em><\/strong><\/p>\n\n\n\n<p>\u5176\u4e2d\uff1a<\/p>\n\n\n\n<p>src_dir\u5b9a\u4e49\u201c.c\u6587\u4ef6\u7f16\u8bd1\u65f6\uff0c\u67e5\u627e\u8def\u5f84\u7684\u57fa\u8def\u5f84\u201d<\/p>\n\n\n\n<p>include_dir\u5b9a\u4e49\u201c.h\u6587\u4ef6\u7f16\u8bd1\u65f6\uff0c\u67e5\u627e\u8def\u5f84\u7684\u57fa\u8def\u5f84\u201d<\/p>\n\n\n\n<p>build_src_filter \u5b9a\u4e49 \u201c.c\u6587\u4ef6\u4ece\u54ea\u4e9b\u8def\u5f84\u4e0b\u641c\u7d22\u201d\uff0c\u661f\u53f7\u4ee3\u8868\u901a\u914d\uff0c\u53cc\u661f\u4ee3\u8868\u5b50\u76ee\u5f55\u901a \u914d\uff0c+\u8868\u793a\u589e\u52a0\u4e00\u4e2a\u641c\u7d22\u8def\u5f84\uff0c-\u8868\u793a\u53bb\u9664\u4e00\u4e2a\u641c\u7d22\u8def\u5f84<\/p>\n\n\n\n<p>\u5982\u679c\u8981\u65b0\u589e\u4e00\u4e2a\u6587\u4ef6\u5939print\uff08\u8ddfsrc\u540c\u7ea7\uff09\uff0c\u91cc\u8fb9\u4e5f\u6709.c\u548c.h\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p><strong><em><strong><em>src_dir = .<\/em><\/strong><\/em><\/strong><strong><em><strong><em><\/em><\/strong><\/em><\/strong><\/p>\n\n\n\n<p><strong><em><strong><em>include_dir = .<\/em><\/strong><\/em><\/strong><strong><em><strong><em><\/em><\/strong><\/em><\/strong><\/p>\n\n\n\n<p><strong><em><strong><em>build_src_filter = \"-&lt;*&gt; +&lt;.\/src\/**\/*.c&gt; <\/em><\/strong><\/em><\/strong><strong><em><strong><em>+&lt;.\/print\/**\/*.c&gt;<\/em><\/strong><\/em><\/strong><strong><em><strong><em>\"<\/em><\/strong><\/em><\/strong><strong><em><strong><em><\/em><\/strong><\/em><\/strong><\/p>\n\n\n\n<p><strong><em><strong><em>src_build_flags = -Isrc -Iprint<\/em><\/strong><\/em><\/strong><strong><em><strong><em><\/em><\/strong><\/em><\/strong><\/p>\n\n\n\n<p>\u5176\u4e2d\uff1a<\/p>\n\n\n\n<p>include_dir\u8def\u5f84\u4e5f\u9000\u56de\u5230\u6839\u8def\u5f84\u4e0b\uff1b<\/p>\n\n\n\n<p>build_src_filter \u52a0\u5165print\u6587\u4ef6\u5939\u7684\u9009\u9879\uff1b<\/p>\n\n\n\n<p>src_build_flags \u662f\u65b0\u589e\u7684\u201c\u8bbe\u7f6e\u5934\u6587\u4ef6\u67e5\u627e\u8def\u5f84\u201d\u7684\u9009\u9879\u3002\u6bcf\u4e2a\u5934\u6587\u4ef6\u8def\u5f84\u7528 -I \u6765\u52a0\u5165\uff0c \u591a\u4e2a-I\u4e4b\u95f4\u52a0\u7a7a\u683c\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f\uff1a\u5728build_src_filter\u548csrc_build_flags\u4e2d\uff0c\u90fd\u662f\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84\u3002\u4ed6\u4eec\u662f\u4ecesrc_dir\/include_dir\u5b9a\u4e49\u7684\u57fa\u8def\u5f84\u4e0a\u518d\u5f00\u59cb\u7684\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u5de5\u7a0b\u542b\u6709c++\u7684\u6587\u4ef6\uff0c\u53ea\u9700\u5728build_src_filter\u7684\u9009\u9879\u4e2d\u589e\u52a0cpp\u9009\u9879\uff0c\u5982\uff1a<\/p>\n\n\n\n<p><strong><em><strong><em>build_src_filter = \"-&lt;*&gt; +&lt;.\/src\/**\/*.c&gt; <\/em><\/strong><\/em><\/strong><strong><em><strong><em>+&lt;.\/src\/**\/*.cpp&gt;<\/em><\/strong><\/em><\/strong><strong><em><strong><em>\"<\/em><\/strong><\/em><\/strong><strong><em><strong><em><\/em><\/strong><\/em><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BA%94%E3%80%81%E8%84%B1%E6%9C%BA%E7%83%A7%E5%BD%95%EF%BC%9A\"><\/span>\u4e94\u3001<strong>\u8131\u673a\u70e7\u5f55\uff1a<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u8131\u673a\u70e7\u5f55\u524d\u9700\u8981\u5148\u7f16\u8bd1\u51fa\u4e8c\u5408\u4e00\u7684batch.bin\uff08\u8fd9\u4e2abin\u662fcode\u548cve\u6574\u5408\u540e\u7684bin\uff09\u3002<\/p>\n\n\n\n<p>\u65b9\u5f0f\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"384\" height=\"699\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-38.png\" alt=\"\" class=\"wp-image-277\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-38.png 384w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-38-165x300.png 165w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/figure>\n\n\n\n<p>\u7f16\u8bd1\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u5728\u5de5\u7a0b\u8def\u5f84\u4e0b\u627e\u5230\u751f\u6210\u7684 xxxx_release_batch.bin\u3002<\/p>\n\n\n\n<p>\u7136\u540e\uff0c\u8fd0\u884cPC\u4e0b\u8f7d\u5de5\u5177\uff08\u8be5\u5de5\u5177\u5728SDK\u5b89\u88c5\u8def\u5f84\u4e0b\uff09\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"421\" height=\"216\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-39.png\" alt=\"\" class=\"wp-image-278\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-39.png 421w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-39-300x154.png 300w\" sizes=\"auto, (max-width: 421px) 100vw, 421px\" \/><\/figure>\n\n\n\n<p>\u4e0b\u8f7d\u65b9\u5f0f\u53ef\u90094\u79cd\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"591\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-40.png\" alt=\"\" class=\"wp-image-279\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-40.png 710w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-40-300x250.png 300w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/><\/figure>\n\n\n\n<p>\u6311\u9009\u5bf9\u5e94\u7684\u65b9\u5f0f\u3002<\/p>\n\n\n\n<p>\u7136\u540e\u70b9\u5de6\u8fb9\u201cQuery Device ID\u201d\u6309\u94ae\uff0c\u5982\u679c\u8fde\u63a5\u6b63\u5e38\u7684\u8bdd\uff0c\u4f1a\u663e\u793a\u6b63\u5e38ID\uff1a<\/p>\n\n\n\n<p>\uff084\u79cd\u65b9\u5f0f\uff0c\u8fde\u63a5\u6b63\u5e38\u7684\u8bdd\uff0c\u90fd\u80fd\u83b7\u53d6\u5230\u8bbe\u5907ID\uff09<\/p>\n\n\n\n<p>\uff08<em>\u6ce8\u610f\uff0c\u5982\u679c\u9009\u4e32\u53e3\u65b9\u5f0f\uff0c\u8981<\/em><em>boot1\u63a5\u5730\uff0c<\/em><em>&nbsp;<\/em><em>boot0 \u63a5\u9ad8<\/em>\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"812\" height=\"676\" src=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-41.png\" alt=\"\" class=\"wp-image-280\" srcset=\"http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-41.png 812w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-41-300x250.png 300w, http:\/\/www.agm-support.com.cn\/wp-content\/uploads\/2024\/08\/image-41-768x639.png 768w\" sizes=\"auto, (max-width: 812px) 100vw, 812px\" \/><\/figure>\n\n\n\n<p>\u7136\u540e\uff0c\u70b9\u53f3\u4e0b\u89d2\u201cdownload\u201d\u6309\u94ae\u4e0b\u8f7d\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u6210\u529f\uff0c\u53ef\u4ee5\u770b\u5230\u6210\u529f\u4fe1\u606f\uff1b<\/p>\n\n\n\n<p>\u5982\u679c\u5931\u8d25\uff0c\u4f1a\u6709\u7ea2\u8272\u62a5\u9519\u4fe1\u606f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%85%AD%E3%80%81%E6%9B%B4%E5%A4%9A%EF%BC%9A%E4%BA%86%E8%A7%A3platformIO\"><\/span>\u516d\u3001<strong>\u66f4\u591a\uff1a\u4e86\u89e3<\/strong><strong>platformIO<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u8fd9\u91cc\u63cf\u8ff0\u4e0bplatformIO\u662f\u4ec0\u4e48\u3002<\/p>\n\n\n\n<p>\u5728\u73af\u5883\u5b89\u88c5\u65f6\uff0c\u5b89\u88c5\u5b8cVSCode\u540e\uff0c\u9996\u5148\u4e0b\u8f7d\u7684\u63d2\u4ef6\u5c31\u662fplatformIO&nbsp;IDE\u3002<\/p>\n\n\n\n<p>\u5b83\u662fVScode\u7684\u4e00\u6b3e\u7b2c\u4e09\u65b9\u63d2\u4ef6\uff0c\u8fd9\u6b3e\u63d2\u4ef6\u672c\u8eab\u5c31\u662f\u4e00\u5957IDE\u5f00\u53d1\u73af\u5883\u3002<\/p>\n\n\n\n<p>\u8bbf\u95eeplatformIO\u7684\u5b98\u7f51\u5c31\u77e5\u9053\uff0c\u5b83\u662f\u4e00\u5957\u5f00\u653e\u7684Iot\u96c6\u6210\u73af\u5883\u5e73\u53f0\uff0c\u5141\u8bb8\u82af\u7247\u5382\u5546\u901a\u8fc7\u914d\u7f6e\u548c\u5bf9\u63a5\uff0c\u65b9\u4fbf\u5730\u642d\u5efa\u81ea\u5df1\u82af\u7247\u7684\u5f00\u53d1\u73af\u5883\u3002<\/p>\n\n\n\n<p>\u4e5f\u5c31\u662f\u8bf4\uff0cVSCode + platformIO + \u82af\u7247\u5382\u5546\u914d\u7f6e&nbsp;= \u8be5\u82af\u7247\u7684IDE\u7f16\u8bd1\u73af\u5883\u3002<\/p>\n\n\n\n<p>\u5728\u5d4c\u5165\u5f0f\u5f00\u53d1\u4e2d\uff0c\u5927\u5bb6\u6bd4\u8f83\u719f\u6089\u7684IDE\u4f1a\u6709 Keil\u3001IAR\u3002\u800c\u4e0a\u8fb9\u6784\u5efa\u51fa\u6765\u7684IDE\u73af\u5883\u5c31\u662f\u7c7b\u4f3cKeil\u3001IAR\u7684\u4e00\u6574\u5957\u53ef\u5f00\u53d1\u4eff\u771f\u7684\u73af\u5883\u3002\u53ea\u662f\u8fd9\u5957\u73af\u5883\u6bd4Keil\u548cIAR\u66f4\u5f3a\u5927\u3002<\/p>\n\n\n\n<p>\u65e2\u7136AG32\u82af\u7247\u662f\u57fa\u4e8eplatformIO\u5e73\u53f0\u7684\u5f00\u53d1\u73af\u5883\uff0c\u90a3\u4e48\u9879\u76ee\u4e2d\u7684\u914d\u7f6e\u5c31\u662f\u56f4\u7ed5platformIO\u5c55\u5f00\u7684\uff0c\u4e0a\u8fb9\u7ae0\u8282\u63cf\u8ff0\u7684platformio.ini\u914d\u7f6e\uff08\u914d\u7f6e\u7f16\u8bd1\u3001\u70e7\u5f55\u3001\u4eff\u771f\u7b49\u7684\u914d\u7f6e\u9879\uff09\u5c31\u662f\u7528\u5728\u8fd9\u91cc\u7684\u3002<\/p>\n\n\n\n<p><em>\u6269\u5c55<\/em><em>\u4fe1\u606f\uff1a<\/em><\/p>\n\n\n\n<p><em>\u67e5\u770bplatformIO\u7684\u5b98\u7f51\uff1a<\/em><em>platformIO\u7684\u5b9a\u4f4d\u662f\u65b0\u4e00\u4ee3\u7684IoT\u96c6\u6210\u5f00\u53d1\u73af\u5883\u3002\u5b83\u662f\u57fa\u4e8eVSCode\u7684\u4e00\u6b3e\u63d2\u4ef6\u3002VSCode\u8fd9\u6b3e\u5f3a\u5927\u7684\u6587\u672c\u7f16\u8f91\u5668\u8f85\u4ee5PlatformIO\u63d2\u4ef6\u5c31\u53ef\u4ee5\u5316\u8eab\u4e3a\u4e00\u6b3e\u5f3a\u5927\u7684MCU\u5f00\u53d1\u73af\u5883\uff0c\u652f\u6301\u7edd\u5927\u591a\u6570\u6d41\u884c\u7684\u5355\u7247\u673a\u5e73\u53f0\u3002<\/em><\/p>\n\n\n\n<p><em>\u6211\u4eec\u77e5\u9053\uff0c\u5d4c\u5165\u5f0fIot\u5f00\u53d1\u4e2d\uff0c\u6700\u8ba9\u4eba\u4e0d\u8212\u670d\u7684\u5c31\u662f\u4e0d\u540c\u5382\u5bb6\u7684\u82af\u7247\u8981\u4f7f\u7528\u4e0d\u540c\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\u3002\u4f8b\u5982\uff1aSTM32\u8981\u4f7f\u7528Keil\u6216IAR\uff0cArduino\u9ed8\u8ba4\u4f7f\u7528\u81ea\u5bb6Arduino\u5f00\u53d1\u73af\u5883\uff0cESP32\u8981\u4f7f\u7528linux\u73af\u5883\u6216\u8005\u5728windows\u4e0b\u90e8\u7f72eclipse\u518d\u7528\u4ea4\u53c9\u7f16\u8bd1\u3002\u90a3\u4e48\uff0c\u6709\u6ca1\u6709\u4e00\u4e2aIDE\u53ef\u4ee5\u5927\u4e00\u7edf\u8d77\u6765\uff0c\u96c6\u6210\u5927\u591a\u6570\u5e38\u7528\u7684\u82af\u7247\u548c\u6a21\u5757\u7684\u5f00\u53d1\u4efb\u52a1\uff0c\u53ea\u8981\u914d\u7f6e\u5b8c\u6210\u4e4b\u540e\u5c31\u4e00\u52b3\u6c38\u9038\u7684\u5462\uff1f\u6ca1\u9519\uff0c\u90a3\u5c31\u662f<\/em><em>&nbsp;<\/em><em>PlatformIO\u3002PlatformIO \u8bd5\u56fe\u6574\u5408\u8d77\u76ee\u524d\u6240\u6709\u4e3b\u6d41\u7684\u786c\u4ef6\u5e73\u53f0\uff1aTI\/ST\/EspressIf\/Intel\/Silicon\/<\/em><em>\u2026<\/em><em>&nbsp;\u7b49\uff0c\u5e76\u4e14\u63d0\u4f9b\u66f4\u4fbf\u5229\u7684\u63a5\u53e3\u548c\u66f4\u53cb\u597d\u7684\u4ea4\u4e92\uff0c\u4ee5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/em><\/p>\n\n\n\n<p><em>\u5173\u4e8eplatformIO\uff0c\u6709\u5174\u8da3\u53ef\u4ee5\u53bb\u5b98\u7f51\u83b7\u53d6\u66f4\u591a\u7684\u4fe1\u606f\uff1ahttps:\/\/platformio.org\/<\/em><em><\/em><\/p>\n\n\n\n<p><em>\u524d\u8fb9\u8bf4\u5230\uff0c\u6bcf\u4e00\u6b3e\u82af\u7247\u5728PlatformIO\u4e2d\u9700\u8981\u914d\u7f6e\uff0c\u6309\u7167PlatformIO\u7684\u683c\u5f0f\u914d\u7f6e\u540e\uff0c\u624d\u80fd\u88ab\u6b63\u5e38\u4f7f\u7528\uff08platformio.ini\u6709\u5927\u91cf\u7684\u6807\u51c6\u7684\u63a7\u5236\u9009\u9879\uff0c\u53ef\u8fdb\u5165\u5b98\u7f51\u67e5\u770b\uff09\u3002<\/em><\/p>\n\n\n\n<p><em>\u5b98\u65b9\u914d\u7f6e\uff1a<\/em><a href=\"#projectconf\"><em><u><em>https:\/\/docs.platformio.org\/en\/latest\/projectconf\/index.html#projectconf<\/em><\/u><\/em><\/a><em><\/em><\/p>\n\n\n\n<p><em>\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\uff0c\u9664\u4e86\u5b98\u65b9\u6807\u51c6\u914d\u7f6e\uff08\u7f16\u8bd1\u3001\u70e7\u5f55\uff09\u5916\uff0c\u82af\u7247\u65b9\u4e5f\u4f1a\u5728\u8fd9\u4e2a\u5f00\u653e\u5e73\u53f0\u4e0a\u81ea\u5b9a\u4e49\u4e00\u4e9b\u81ea\u5df1\u7279\u6709\u7684\u914d\u7f6e\u9879\u3002<\/em><\/p>\n\n\n\n<p>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u7f16\u8bd1\u7a0b\u5e8f \u7a0b\u5e8f\u7f16\u8bd1\u53ef\u4ee5\u901a\u8fc72\u79cd\u65b9\u5f0f\uff1apio\u5de6\u680f\u6309\u94ae\u3001\u547d\u4ee4\u884c\uff1b 1. Pio\u5de6\u680f\u6309\u94ae\uff1a \u70b9\u4e0b\u6309\u94ae\u7f16\u8bd1\u540e\uff0c\u4f1a\u81ea [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":21,"menu_order":17,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","footnotes":""},"class_list":["post-254","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"http:\/\/www.agm-support.com.cn\/index.php\/wp-json\/wp\/v2\/pages\/254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.agm-support.com.cn\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.agm-support.com.cn\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.agm-support.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.agm-support.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=254"}],"version-history":[{"count":6,"href":"http:\/\/www.agm-support.com.cn\/index.php\/wp-json\/wp\/v2\/pages\/254\/revisions"}],"predecessor-version":[{"id":283,"href":"http:\/\/www.agm-support.com.cn\/index.php\/wp-json\/wp\/v2\/pages\/254\/revisions\/283"}],"up":[{"embeddable":true,"href":"http:\/\/www.agm-support.com.cn\/index.php\/wp-json\/wp\/v2\/pages\/21"}],"wp:attachment":[{"href":"http:\/\/www.agm-support.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}