{"id":89,"date":"2026-03-20T22:23:41","date_gmt":"2026-03-20T14:23:41","guid":{"rendered":"https:\/\/www.esdkaiyuan.online\/?p=89"},"modified":"2026-03-20T22:23:41","modified_gmt":"2026-03-20T14:23:41","slug":"%e5%b0%86%e5%ae%98%e6%96%b9%e5%9b%ba%e4%bb%b6%e7%83%a7%e5%bd%95%e5%88%b0esp32","status":"publish","type":"post","link":"https:\/\/www.esdkaiyuan.online\/index.php\/2026\/03\/20\/%e5%b0%86%e5%ae%98%e6%96%b9%e5%9b%ba%e4%bb%b6%e7%83%a7%e5%bd%95%e5%88%b0esp32\/","title":{"rendered":"\u5c06\u5b98\u65b9\u56fa\u4ef6\u70e7\u5f55\u5230ESP32"},"content":{"rendered":"\n<p>\u5c06\u5b98\u65b9\u56fa\u4ef6\u70e7\u5f55\u5230ESP32\u4e3b\u8981\u5206\u4e3a\u4e24\u4e2a\u9636\u6bb5\uff1a<strong>\u51c6\u5907\u56fa\u4ef6\u6587\u4ef6<\/strong>\u548c<strong>\u6267\u884c\u70e7\u5f55<\/strong>\u3002\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u4e50\u946b\u5b98\u65b9\u63d0\u4f9b\u7684&nbsp;<strong>esptool.py<\/strong>&nbsp;\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5b83\u7a33\u5b9a\u4e14\u652f\u6301\u6240\u6709ESP\u7cfb\u5217\u82af\u7247<a href=\"https:\/\/docs.espressif.com\/projects\/esp-faq\/zh_CN\/latest\/development-environment\/firmware-update.html?highlight=flash\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><a href=\"https:\/\/linuxcommandlibrary.com\/man\/esptool#parameters\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a>\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u662f\u8be6\u7ec6\u7684\u64cd\u4f5c\u6b65\u9aa4\uff0c\u6211\u5c06\u5176\u62c6\u89e3\u4e3a\u4e09\u4e2a\u6838\u5fc3\u90e8\u5206\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e00\u6b65\uff1a\u51c6\u5907\u5de5\u4f5c<\/h3>\n\n\n\n<p>\u4f60\u9700\u8981\u786e\u8ba4\u4e24\u4ef6\u4e8b\uff1a<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>\u83b7\u53d6\u56fa\u4ef6\u6587\u4ef6<\/strong>\uff1a\u6839\u636e\u4f60\u7684\u9700\u6c42\uff0c\u53bb\u4e50\u946b\u5b98\u7f51\u6216\u76f8\u5173\u9879\u76ee\uff08\u5982MicroPython\u3001ESPHome\uff09\u4e0b\u8f7d\u6b63\u786e\u7684\u56fa\u4ef6\uff08<code>.bin<\/code>\u6587\u4ef6\uff09<a href=\"https:\/\/www.espressif.com.cn\/zh-hans\/support\/download\/all\/1000\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a>\u3002\u6ce8\u610f\u9009\u62e9\u4e0e\u4f60\u5f00\u53d1\u677f\u578b\u53f7\uff08\u5982ESP32\u3001ESP32-S3\u3001ESP32-C3\uff09\u5339\u914d\u7684\u56fa\u4ef6\u3002<\/li>\n\n\n\n<li><strong>\u5b89\u88c5\u70e7\u5f55\u5de5\u5177<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li><strong>\u63a8\u8350\u65b9\u6cd5<\/strong>\uff1a\u5728\u7535\u8111\u4e0a\u6253\u5f00\u547d\u4ee4\u884c\uff08CMD\u6216\u7ec8\u7aef\uff09\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u00a0<code>esptool<\/code>\uff1a<\/li>\n\n\n\n<li><strong>\u5907\u9009\u65b9\u6cd5<\/strong>\uff1a\u5982\u679c\u4f60\u4e0d\u60f3\u7528\u547d\u4ee4\u884c\uff0c\u4e5f\u53ef\u4ee5\u4e0b\u8f7d\u4e50\u946b\u5b98\u65b9\u7684\u56fe\u5f62\u5316\u70e7\u5f55\u5de5\u5177\u2014\u2014<strong>Flash Download Tool<\/strong>\uff08\u4ec5\u652f\u6301Windows\uff09<a href=\"https:\/\/en.eeworld.com.cn\/bbs\/forum.php?mod=viewthread&amp;tid=1320484&amp;page=1\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><a href=\"https:\/\/docs.espressif.com\/projects\/esp-faq\/zh_CN\/latest\/development-environment\/firmware-update.html?highlight=flash\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a>\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u547d\u4ee4\u5b89\u88c5\u00a0esptool\uff1a<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install esptool<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e8c\u6b65\uff1a\u6267\u884c\u70e7\u5f55\uff08\u6838\u5fc3\u6b65\u9aa4\uff09<\/h3>\n\n\n\n<p>\u70e7\u5f55\u524d\uff0c\u6700\u597d\u5148\u64e6\u9664\u4e00\u4e0bFlash\uff0c\u907f\u514d\u65e7\u6570\u636e\u5e72\u6270\u65b0\u56fa\u4ef6<a href=\"https:\/\/wiki.seeedstudio.com\/xiao_esp32c5_with_micropyhton\/\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a>\u3002\u7136\u540e\u5728\u547d\u4ee4\u884c\u4e2d\uff0c\u5bfc\u822a\u5230\u4f60\u5b58\u653e\u56fa\u4ef6\u6587\u4ef6\u7684\u6587\u4ef6\u5939\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1. \u64e6\u9664Flash<\/h4>\n\n\n\n<p>\u5c06\u4e0b\u9762\u547d\u4ee4\u4e2d\u7684&nbsp;<code>&lt;\u4f60\u7684\u4e32\u53e3\u53f7&gt;<\/code>&nbsp;\u66ff\u6362\u4e3a\u5b9e\u9645\u7684\u7aef\u53e3\uff08\u5982 Windows \u7684&nbsp;<code>COM3<\/code>\uff0cLinux \u7684&nbsp;<code>\/dev\/ttyUSB0<\/code>\uff09\uff1a<\/p>\n\n\n\n<p>bash<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>esptool.py --port &lt;\u4f60\u7684\u4e32\u53e3\u53f7> erase_flash<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2. \u5199\u5165\u65b0\u56fa\u4ef6<\/h4>\n\n\n\n<p>\u64e6\u9664\u6210\u529f\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u70e7\u5f55\u56fa\u4ef6\u3002\u8bf7<strong>\u52a1\u5fc5\u6ce8\u610f<\/strong>&nbsp;<code>0x10000<\/code>&nbsp;\u8fd9\u4e2a\u8d77\u59cb\u5730\u5740\uff0c\u5b83\u662fESP32\u5b58\u653e\u5e94\u7528\u7a0b\u5e8f\u7684\u6807\u51c6\u4f4d\u7f6e\uff0c\u5199\u9519\u4f1a\u5bfc\u81f4\u65e0\u6cd5\u542f\u52a8<a href=\"https:\/\/wiki.seeedstudio.com\/xiao_esp32c5_with_micropyhton\/\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><a href=\"https:\/\/docs.espressif.com\/projects\/esp-idf\/zh_CN\/v5.0.6\/esp32\/get-started\/start-project.html\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><a href=\"https:\/\/manpages.debian.org\/testing\/esptool\/esptool.1.en.html\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a>\u3002<\/p>\n\n\n\n<p>bash<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>esptool.py --port &lt;\u4f60\u7684\u4e32\u53e3\u53f7> --baud 460800 write_flash 0x10000 &lt;\u4f60\u7684\u56fa\u4ef6\u6587\u4ef6\u540d>.bin<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>--baud 460800<\/code>\u00a0\u662f\u70e7\u5f55\u901f\u5ea6\uff0c\u5982\u679c\u5931\u8d25\u53ef\u4ee5\u964d\u4f4e\u5230\u00a0<code>115200<\/code>\u3002<\/li>\n\n\n\n<li>\u5982\u679c\u7cfb\u7edf\u81ea\u52a8\u8bc6\u522b\u4e32\u53e3\u5931\u8d25\uff0c\u53ef\u4ee5\u50cf\u64e6\u9664\u547d\u4ee4\u4e00\u6837\uff0c\u624b\u52a8\u6307\u5b9a\u00a0<code>--port<\/code>\u00a0\u53c2\u6570\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">3. \u624b\u52a8\u8fdb\u5165\u4e0b\u8f7d\u6a21\u5f0f\uff08\u5982\u679c\u70e7\u5f55\u5931\u8d25\uff09<\/h4>\n\n\n\n<p>\u5982\u679c\u547d\u4ee4\u884c\u4e00\u76f4\u663e\u793a\u201cConnecting&#8230;\u201d\u6216\u5931\u8d25\uff0c\u4f60\u9700\u8981\u624b\u52a8\u5c06ESP32\u7f6e\u4e8e\u4e0b\u8f7d\u6a21\u5f0f\uff1a<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>\u6309\u4f4f\u5f00\u53d1\u677f\u4e0a\u7684\u00a0<strong>BOOT<\/strong>\u00a0\u6309\u94ae\u4e0d\u653e\u3002<\/li>\n\n\n\n<li>\u6309\u4e00\u4e0b\u00a0<strong>EN<\/strong>\uff08\u6216RST\uff09\u6309\u94ae\u540e\u677e\u5f00\u3002<\/li>\n\n\n\n<li>\u518d\u677e\u5f00\u00a0<strong>BOOT<\/strong>\u00a0\u6309\u94ae\u3002<\/li>\n\n\n\n<li>\u6b64\u65f6\u82af\u7247\u5df2\u8fdb\u5165\u7b49\u5f85\u4e0b\u8f7d\u72b6\u6001\uff0c\u53ef\u4ee5\u518d\u6b21\u5c1d\u8bd5\u8fd0\u884c\u70e7\u5f55\u547d\u4ee4<a href=\"https:\/\/docs.espressif.com\/projects\/esp-idf\/zh_CN\/v5.0.6\/esp32\/get-started\/start-project.html\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><a href=\"https:\/\/docs.espressif.com\/projects\/esp-at\/zh_CN\/release-v5.0.0.0\/esp32c61\/Get_Started\/Downloading_guide.html#check-whether-at-works\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a>\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e09\u6b65\uff1a\u9a8c\u8bc1\u56fa\u4ef6\u662f\u5426\u6210\u529f<\/h3>\n\n\n\n<p>\u70e7\u5f55\u5b8c\u6210\u540e\uff0c\u5f00\u53d1\u677f\u901a\u5e38\u4f1a\u81ea\u52a8\u590d\u4f4d\u3002\u4f60\u53ef\u4ee5\u7528\u4e32\u53e3\u5de5\u5177\uff08\u5982&nbsp;<strong>PuTTY<\/strong>\u3001<strong>Thonny<\/strong>&nbsp;\u6216&nbsp;<strong>Arduino IDE<\/strong>&nbsp;\u7684\u4e32\u53e3\u76d1\u89c6\u5668\uff09\u6765\u68c0\u67e5\uff1a<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>\u5c06\u6ce2\u7279\u7387\u8bbe\u7f6e\u4e3a\u00a0<strong>115200<\/strong>\u3002<\/li>\n\n\n\n<li>\u6309\u4e0b\u5f00\u53d1\u677f\u7684\u00a0<strong>EN<\/strong>\u00a0\u6309\u94ae\u91cd\u542f\u3002<\/li>\n\n\n\n<li>\u5982\u679c\u770b\u5230\u7c7b\u4f3c\u00a0<code>rst:0x1 (POWERON_RESET)<\/code>\u00a0\u7684\u7cfb\u7edf\u65e5\u5fd7\u6216MicroPython\u7684\u00a0<code>>>><\/code>\u00a0\u63d0\u793a\u7b26\uff0c\u5c31\u8bf4\u660e\u56fa\u4ef6\u5df2\u7ecf\u6210\u529f\u8fd0\u884c\u4e86<a href=\"https:\/\/docs.espressif.com\/projects\/esp-at\/zh_CN\/release-v5.0.0.0\/esp32c61\/Get_Started\/Downloading_guide.html#check-whether-at-works\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a>\u3002<\/li>\n<\/ol>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>\u5173\u4e8eESP-IDF\u56fa\u4ef6\u7684\u7279\u522b\u8bf4\u660e<\/strong>\uff1a\u5982\u679c\u4f60\u70e7\u5f55\u7684\u662f\u81ea\u5df1\u7528\u4e50\u946b\u7269\u8054\u7f51\u5f00\u53d1\u6846\u67b6\u7f16\u8bd1\u51fa\u6765\u7684\u56fa\u4ef6\uff0c\u901a\u5e38\u9700\u8981\u70e7\u5f55\u4e09\u4e2a\u6587\u4ef6\uff1a\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f (<code>bootloader.bin<\/code>)\u3001\u5206\u533a\u8868 (<code>partition-table.bin<\/code>) \u548c\u5e94\u7528\u7a0b\u5e8f (<code>&lt;your_app&gt;.bin<\/code>)\u3002\u5b83\u4eec\u7684\u8d77\u59cb\u5730\u5740\u901a\u5e38\u662f&nbsp;<code>0x1000<\/code>\u3001<code>0x8000<\/code>&nbsp;\u548c&nbsp;<code>0x10000<\/code>\uff0c\u5177\u4f53\u8def\u5f84\u5728\u7f16\u8bd1\u5b8c\u6210\u540e\u4f1a\u5728\u7ec8\u7aef\u91cc\u663e\u793a<a href=\"https:\/\/docs.espressif.com\/projects\/esp-idf\/zh_CN\/v5.0.6\/esp32\/get-started\/start-project.html\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a>\u3002<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u5c06\u5b98\u65b9\u56fa\u4ef6\u70e7\u5f55\u5230ESP32\u4e3b\u8981\u5206\u4e3a\u4e24\u4e2a\u9636\u6bb5\uff1a\u51c6\u5907\u56fa\u4ef6\u6587\u4ef6\u548c\u6267\u884c\u70e7\u5f55\u3002\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u4e50\u946b\u5b98\u65b9\u63d0\u4f9b\u7684&#038;nbsp [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.esdkaiyuan.online\/index.php\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esdkaiyuan.online\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.esdkaiyuan.online\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.esdkaiyuan.online\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esdkaiyuan.online\/index.php\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":1,"href":"https:\/\/www.esdkaiyuan.online\/index.php\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":90,"href":"https:\/\/www.esdkaiyuan.online\/index.php\/wp-json\/wp\/v2\/posts\/89\/revisions\/90"}],"wp:attachment":[{"href":"https:\/\/www.esdkaiyuan.online\/index.php\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esdkaiyuan.online\/index.php\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esdkaiyuan.online\/index.php\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}