{"id":8688,"date":"2024-05-30T09:01:01","date_gmt":"2024-05-30T01:01:01","guid":{"rendered":""},"modified":"2024-05-30T09:01:01","modified_gmt":"2024-05-30T01:01:01","slug":"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd","status":"publish","type":"post","link":"https:\/\/mushiming.com\/8688.html","title":{"rendered":"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd"},"content":{"rendered":"

\n <\/path> \n<\/svg> <\/p>\n

1.STM32\u9a71\u52a8ESP8266\u6a21\u5757<\/h3>\n

\u7b14\u8005\u6240\u4f7f\u7528\u7684ESP8266\u6a21\u5757\u4e3a\u6b63\u70b9\u539f\u5b50\u5f00\u53d1\u7684\u6a21\u5757\uff0c\u8be5\u6a21\u5757\u5c06\u901a\u4fe1\u63a5\u53e3\u53d8\u6210\u4e86\u4e32\u53e3\u3002\u63a5\u4e0b\u6765\u5173\u4e8eESP8266\u6a21\u5757\u7684\u4ecb\u7ecd\u5747\u4ee5\u6b64\u6a21\u5757\u4e3a\u57fa\u7840\u3002<\/p>\n

1.1 CubeMX\u914d\u7f6eSTM32F103C8T6\u82af\u7247\u5f15\u811a<\/h4>\n

1.1.1 \u9009\u62e9\u82af\u7247\u578b\u53f7<\/h5>\n

\u6211\u4eec\u9700\u8981\u7ed9\u82af\u7247\u914d\u7f6e\u5f15\u811a\uff0c\u4f7f\u5b83\u80fd\u591f\u5b8c\u6210\u6211\u4eec\u6240\u9700\u8981\u7684\u529f\u80fd\u3002<\/p>\n

1.\u53cc\u51fb\u6253\u5f00CubeMX\u8f6f\u4ef6\uff0c\u5f39\u51fa\u754c\u9762\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

2.\u70b9\u51fb\u4e0a\u56fe\u4e2d\u7684\u201cACCESS TO MCU SELECTOR\u201d\u6309\u94ae\uff0c\u8fdb\u5165\u5982\u4e0b\u754c\u9762\uff1a<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

3.\u5728\u201cPart Number\u201d\u4e2d\u8f93\u5165\u201cSTM32F103C8\u201d\u5b57\u7b26\uff0c\u7136\u540e\u53cc\u51fb\u201cReference\u201d\u4e2d\u7684\u201cSTM32F103C8Tx\u201d\uff0c\u8fdb\u5165\u5982\u4e0b\u754c\u9762\uff1a<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

\u8fd9\u6837\uff0c\u6211\u4eec\u5c31\u9009\u62e9\u597d\u4e86\u82af\u7247\u7c7b\u578b\u3002\u5728\u4e0a\u56fe\u6240\u793a\u7684\u754c\u9762\u4e2d\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u914d\u7f6e\u82af\u7247\u5f15\u811a\uff0c\u4ee5\u6ee1\u8db3\u6211\u4eec\u7684\u5f00\u53d1\u9700\u8981\u3002<\/p>\n

1.1.2 \u914d\u7f6e\u4e32\u53e3\u5f15\u811a\u548c\u65f6\u949f\u9891\u7387<\/h5>\n

1.\u70b9\u51fb\u201cSystem Core\u201d\uff0c\u518d\u70b9\u51fb\u201cRCC\u201d\uff0c\u5c06\u65f6\u949f\u6e90\u8bbe\u7f6e\u4e3a\u5916\u90e8\u65f6\u949f\u6e90\uff1a<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

2.\u70b9\u51fb\u201cSYS\u201d\uff0c\u5c06\u201cDebug\u201d\u8bbe\u7f6e\u4e3a\u201cSerial Wire\u201d\uff0c\u201cTimebase Source\u201d\u8bbe\u7f6e\u4e3a\u201cSysTick\u201d\uff1a<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

3.\u70b9\u51fb\u201cConnectivity\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201cUSART3\u201d\uff0c\u5c06\u901a\u4fe1\u65b9\u5f0f\u8bbe\u7f6e\u4e3a\u201cAsynchronous\u201d\uff08\u5f02\u6b65\u901a\u4fe1\uff09\uff1a<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

4.\u5728\u201cUART3\u201d\u754c\u9762\uff0c\u70b9\u51fb\u201cDMA Settings\u201d\uff0c\u5c06\u4e32\u53e33\u7684\u901a\u4fe1\u5f15\u811a\u6a21\u5f0f\u8bbe\u7f6e\u4e3aDMA\uff08\u76f4\u63a5\u5bc4\u5b58\u5668\u8bbf\u95ee\uff09\u6a21\u5f0f\u3002\u8fd9\u662f\u56e0\u4e3a\u5728\u7b14\u8005\u7684\u5de5\u7a0b\u4e2d\uff0cWiFi\u9700\u8981\u4e0d\u65ad\u5730\u63a5\u6536\u9640\u87ba\u4eea\u53d1\u9001\u8fc7\u6765\u7684\u6570\u636e\u5e76\u4e0d\u65ad\u5730\u5c06\u5176\u53d1\u9001\u51fa\u53bb\uff0c\u6240\u4ee5\u91c7\u7528DMA\u6a21\u5f0f\uff0c\u51cf\u8f7bCPU\u7684\u8d1f\u62c5\uff1a<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

\u8bfb\u8005\u5728\u65b0\u5efa\u5de5\u7a0b\u65f6\uff0c\u9700\u8981\u70b9\u51fb\u201cAdd\u201d\u6dfb\u52a0DMA\u901a\u9053\u3002\u6dfb\u52a0\u597d\u540e\uff0c\u5c06\u201cMode\u201d\u8bbe\u7f6e\u4e3a\u201cNormal\u201d\uff0c\u201cData Width\u201d\u8bbe\u7f6e\u4e3a\u201cByte\u201d\uff0c\u5982\u4e0a\u56fe\u6240\u793a\u3002<\/p>\n

6.\u70b9\u51fb\u201cClock Configuration\u201d\uff0c\u5c06\u201cHCLK\uff08MHz\uff09\u201d\u8bbe\u7f6e\u4e3a72\uff1a<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

1.1.3 \u751f\u6210keil\u5de5\u7a0b\u6587\u4ef6<\/h5>\n

1.\u6240\u6709\u7684\u90e8\u5206\u90fd\u914d\u7f6e\u597d\u540e\uff0c\u70b9\u51fb\u201cProject Manager\u201d\uff0c\u5728\u201cToolchain\/IDE\u201d\u4e2d\u9009\u62e9\u7f16\u8f91\u5668\u4e3a\u201cMDK-ARM\u201d\uff0c\u7136\u540e\u5728\u201cMin Version\u201d\u4e2d\u9009\u62e9\u201cV5\u201d\uff08\u6b64\u5904\u7b14\u8005\u7535\u8111\u5b89\u88c5\u7684\u662fV5\u7248\u672c\uff0c\u8bfb\u8005\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u5b89\u88c5\u7684Keil\u7248\u672c\u9009\u62e9\u5bf9\u5e94\u7248\u672c\uff09\uff1a<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

2.\u5728\u201cProject Manager\u201d\u754c\u9762\uff0c\u70b9\u51fb\u201cCode Generator\u201d\uff0c\u5728\u201cGenerated files\u201d\u4e2d\u5c06\u7b2c\u4e00\u9879\u4e5f\u52fe\u9009\u4e0a\uff1a<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

3.\u70b9\u51fb\u754c\u9762\u53f3\u4e0a\u89d2\u7684\u201cGENERATE CODE\u201d\uff1a<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

\u51fa\u73b0\u4e0a\u8ff0\u754c\u9762\uff0c\u5c31\u8bf4\u660e\u4ee3\u7801\u5df2\u7ecf\u751f\u6210\u597d\u4e86\u3002<\/p>\n

4.\u9009\u62e9\u4e0a\u56fe\u4e2d\u7684\u201cOpen Project\u201d\uff0c\u4ee3\u7801\u754c\u9762\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

\u81f3\u6b64\uff0c\u6211\u4eec\u5c31\u914d\u7f6e\u597d\u4e86\u82af\u7247\u7684\u5f15\u811a\u5e76\u751f\u6210\u4e86\u4ee3\u7801\u3002<\/p>\n

1.2 \u63a5\u7ebf<\/h4>\n

\u6b63\u70b9\u539f\u5b50ESP8266\u6a21\u5757\u4fdd\u7559\u4e86\u516d\u4e2a\u9488\u811a\uff0c\u5206\u522b\u662fVCC\u3001GND\u3001RXD\u3001TXD\u3001RST\u548cIO0\u3002\u5e73\u5e38\u4f7f\u7528\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u4ec5\u4ec5\u9700\u8981\u4f7f\u7528\u524d\u56db\u4e2a\u5f15\u811a\u5373\u53ef\u3002\u5728\u4e0a\u9762\u7684\u914d\u7f6e\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u9009\u62e9\u4f7f\u7528\u4e32\u53e33\u4e0eESP8266\u6a21\u5757\u8fdb\u884c\u901a\u4fe1\uff0c\u56e0\u6b64\u9700\u8981\u770b\u82af\u7247\u7684\u5f15\u811a\u5b9a\u4e49\uff0c\u770b\u54ea\u4e24\u4e2a\u5f15\u811a\u662f\u4e32\u53e33\u7684\u5f15\u811a\uff1a<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

\u53ef\u4ee5\u770b\u5230\uff0cPB10\u4e3aTX\uff08\u53d1\u9001\uff09\uff0cPB11\u4e3aRX\uff08\u63a5\u6536\uff09\u3002\u5219PB10\u63a5\u6a21\u5757\u7684RX\u811a\uff0cPB11\u63a5\u6a21\u5757\u7684TX\u811a\u3002\u63a5\u7ebf\u65b9\u5f0f\u5982\u4e0b\uff1a<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

\u82af\u7247\u677f\u53ef\u4ee5\u901a\u8fc7micro-USB\u7ebf\u4f9b\u7535\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5916\u63a5\u7535\u6e90\u7a33\u538b\u6a21\u5757\u4f9b\u7535\u3002\u6ce8\u610f\uff0c\u5728\u4f7f\u7528\u7a33\u538b\u6a21\u5757\u65f6\uff0c\u6700\u597d\u4f7f\u75285V\u7535\u538b\u7ed9\u82af\u7247\u4f9b\u7535\uff0c\u5426\u5219\u70e7\u5f55\u5668\u65e0\u6cd5\u8bc6\u522b\u5230\u82af\u7247\u677f\u7684\u5b58\u5728\u3002ESP8266\u4e5f\u53ef\u4ee5\u4f7f\u7528\u7a33\u538b\u6a21\u5757\u5411\u5176\u4f9b\u7535\uff0c5V\u548c3.3V\u5747\u53ef\u3002<\/p>\n

1.3 \u9a71\u52a8\u903b\u8f91\u548c\u4ee3\u7801<\/h4>\n

\u8981\u5b9e\u73b0\u4e00\u4e2a\u5b8c\u6574\u7684\u5de5\u7a0b\uff0c\u6211\u4eec\u9700\u8981\u8bbe\u8ba1\u597d\u6a21\u5757\u7684\u4f7f\u7528\u903b\u8f91\u5e76\u4f7f\u7528\u4ee3\u7801\u5c06\u5176\u5b9e\u73b0\u3002<\/p>\n

1.3.1 AT\u6307\u4ee4\u4e0e\u6a21\u5757\u914d\u7f6e\u8fc7\u7a0b\u4ecb\u7ecd<\/h5>\n

\u9996\u5148\u6211\u4eec\u8981\u914d\u7f6e\u6a21\u5757\u7684\u5404\u9879\u53c2\u6570\u3002\u53c2\u8003\u6b63\u70b9\u539f\u5b50\u7684\u6a21\u5757\u4f7f\u7528\u8d44\u6599\uff0c\u7ed3\u5408\u672c\u8eab\u9879\u76ee\u9700\u6c42\uff0c\u7b14\u8005\u9009\u62e9\u5c06\u6a21\u5757\u8bbe\u7f6e\u4e3aAP\u6a21\u5f0f\uff0c\u4f7f\u7528AP\u6a21\u5f0f\u4e0b\u7684\u900f\u4f20\u529f\u80fd\u5b9e\u73b0\u5927\u91cf\u6570\u636e\u7684\u900f\u660e\u4f20\u8f93\u3002\u914d\u7f6e\u8fc7\u7a0b\u5982\u4e0b\uff1a<\/p>\n

\"esp8266\u4f7f\u7528\u6559\u7a0b_ESP8266\u6a21\u5757\u4ecb\u7ecd<\/p>\n

\u6211\u4eec\u9700\u8981\u6309\u4e0a\u8ff0\u6d41\u7a0b\u5b8c\u6210\u6a21\u5757\u6a21\u5f0f\u7684\u914d\u7f6e\u3002\u90a3\u4e48\uff0c\u6211\u4eec\u9700\u8981\u5b8c\u6210\u5982\u4e0b\u51e0\u4ef6\u4e8b\u8bf7\uff1a<\/p>\n