{"id":120194,"date":"2026-10-31T06:57:15","date_gmt":"2026-10-30T22:57:15","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/120194.html"},"modified":"2026-10-31T06:57:15","modified_gmt":"2026-10-30T22:57:15","slug":"%e3%80%90stm32%e3%80%91-%e5%86%85%e9%83%a8-flash-%e8%af%a6%e8%a7%a3%ef%bc%9a%e5%af%84%e5%ad%98%e5%99%a8%e9%80%90%e4%bd%8d%e6%8b%86%e8%a7%a3-%e5%b7%a5%e4%bd%9c%e6%b5%81%e7%a8%8b%e9%a1%ba%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/120194.html","title":{"rendered":"\u3010STM32\u3011 \u5185\u90e8 Flash \u8be6\u89e3\uff1a\u5bc4\u5b58\u5668\u9010\u4f4d\u62c6\u89e3 + \u5de5\u4f5c\u6d41\u7a0b\u987a\u5e8f\u5168\u8bb2 + EEPROM\u518d\u5b9e\u73b0"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1600\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030225707-6ae520c3330e0.png\" width=\"2848\" \/><\/p>\n<hr \/>\n<h2><span style=\"color:#a2e043\"><span style=\"background-color:#7b7f82\">\u00a0 \u5185\u90e8 Flash \u8be6\u89e3&#xff1a;\u5bc4\u5b58\u5668\u9010\u4f4d\u62c6\u89e3 &#043; \u5de5\u4f5c\u6d41\u7a0b\u987a\u5e8f\u5168\u8bb2\u00a0\u00a0<\/span><\/span><\/h2>\n<h3><span style=\"color:#1a439c\">\u4e00\u3001\u57fa\u7840\u6982\u5ff5&#xff08;\u56de\u987e&#xff09;<\/span><\/h3>\n<h4><span style=\"color:#511b78\">1.1 \u4ec0\u4e48\u662f\u5185\u90e8 Flash<\/span><\/h4>\n<p><span style=\"color:#0d0016\">Flash&#xff08;\u95ea\u5b58&#xff09; \u662f STM32 \u82af\u7247\u5185\u90e8\u7684\u975e\u6613\u5931\u6027\u5b58\u50a8\u5668&#xff1a;<\/span><\/p>\n<ul>\n<li><span style=\"color:#0d0016\">\u6389\u7535\u4e0d\u4e22\u5931&#xff1a;\u65ad\u7535\u540e\u6570\u636e\u4f9d\u7136\u4fdd\u7559&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u7247\u5185\u96c6\u6210&#xff1a;\u540c\u4e00\u9897\u82af\u7247\u5185&#xff0c;\u603b\u7ebf\u76f4\u63a5\u8bbf\u95ee&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u53ef\u64e6\u5199&#xff1a;\u53ef\u53cd\u590d\u64e6\u9664\u548c\u7f16\u7a0b&#xff08;\u5bff\u547d\u7ea6 1 \u4e07\u6b21&#xff09;\u3002<\/span><\/li>\n<\/ul>\n<h4><span style=\"color:#511b78\">1.2 Flash vs SRAM vs EEPROM<\/span><\/h4>\n<table>\n<tr><span style=\"color:#0d0016\">\u5bf9\u6bd4\u9879<\/span><span style=\"color:#0d0016\">\u5185\u90e8 Flash<\/span><span style=\"color:#0d0016\">SRAM<\/span><span style=\"color:#0d0016\">EEPROM&#xff08;\u5916\u90e8&#xff09;<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">\u6613\u5931\u6027<\/span><\/td>\n<td style=\"width:162px\"><span style=\"color:#0d0016\">\u975e\u6613\u5931<\/span><\/td>\n<td style=\"width:155px\"><span style=\"color:#0d0016\">\u6613\u5931<\/span><\/td>\n<td style=\"width:226px\"><span style=\"color:#0d0016\">\u975e\u6613\u5931<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u8bbf\u95ee\u901f\u5ea6<\/span><\/td>\n<td style=\"width:162px\"><span style=\"color:#0d0016\">\u5feb&#xff08;\u53ef\u53d6\u6307\u6267\u884c&#xff09;<\/span><\/td>\n<td style=\"width:155px\"><span style=\"color:#0d0016\">\u6700\u5feb<\/span><\/td>\n<td style=\"width:226px\"><span style=\"color:#0d0016\">\u6162&#xff08;I2C\/SPI&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u64e6\u5199\u5355\u4f4d<\/span><\/td>\n<td style=\"width:162px\"><span style=\"color:#0d0016\">\u9875\/\u6247\u533a\u64e6\u9664<\/span><\/td>\n<td style=\"width:155px\"><span style=\"color:#0d0016\">\u65e0\u9700\u64e6\u9664<\/span><\/td>\n<td style=\"width:226px\"><span style=\"color:#0d0016\">\u6309\u5b57\u8282<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u64e6\u5199\u5bff\u547d<\/span><\/td>\n<td style=\"width:162px\"><span style=\"color:#0d0016\">~10,000 \u6b21<\/span><\/td>\n<td style=\"width:155px\"><span style=\"color:#0d0016\">\u65e0\u9650<\/span><\/td>\n<td style=\"width:226px\"><span style=\"color:#0d0016\">~1,000,000 \u6b21<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u4e3b\u8981\u7528\u9014<\/span><\/td>\n<td style=\"width:162px\"><span style=\"color:#0d0016\">\u5b58\u4ee3\u7801\u3001\u5e38\u91cf\u3001\u6570\u636e<\/span><\/td>\n<td style=\"width:155px\"><span style=\"color:#0d0016\">\u53d8\u91cf\u3001\u6808\u3001\u5806<\/span><\/td>\n<td style=\"width:226px\"><span style=\"color:#0d0016\">\u5c0f\u91cf\u6389\u7535\u6570\u636e<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><span style=\"color:#511b78\">1.3 \u5185\u90e8 Flash \u80fd\u5e72\u4ec0\u4e48<\/span><\/h4>\n<li><span style=\"color:#0d0016\">\u5b58\u4ee3\u7801&#xff08;\u4e0a\u7535\u4ece 0x08000000 \u53d6\u6307\u6267\u884c&#xff09;&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u5b58\u5e38\u91cf&#xff08;const \u6570\u7ec4\u3001\u5b57\u7b26\u4e32&#xff09;&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u6389\u7535\u4fdd\u5b58\u6570\u636e&#xff08;\u6a21\u62df EEPROM&#xff09;&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">OTA \u5347\u7ea7&#xff08;Bootloader \u5199\u65b0\u56fa\u4ef6&#xff09;&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u914d\u7f6e\u82af\u7247\u884c\u4e3a&#xff08;\u9009\u9879\u5b57\u8282&#xff09;\u3002<\/span><\/li>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u4e8c\u3001Flash \u5185\u90e8\u7ed3\u6784<\/span><\/h3>\n<h4><span style=\"color:#511b78\">2.1 \u6574\u4f53\u5e03\u5c40&#xff08;F103 \u4e3a\u4f8b&#xff09;<\/span><\/h4>\n<p>STM32F103 \u5185\u90e8 Flash \u603b\u89c8<br \/>\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502 \u4e3b\u5b58\u50a8\u5757&#xff08;Main Memory&#xff09;                       \u2502<br \/>\n\u2502  0x0800_0000 \u2500\u2500\u25ba \u98750  (1KB)                  \u2502<br \/>\n\u2502  0x0800_0400 \u2500\u2500\u25ba \u98751  (1KB)                  \u2502<br \/>\n\u2502  &#8230;                                        \u2502<br \/>\n\u2502  0x0801_FC00 \u2500\u2500\u25ba \u9875127 (1KB)                \u2502<br \/>\n\u2502  \u5171 128 \u9875 \u00d7 1KB &#061; 128KB                    \u2502<br \/>\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524<br \/>\n\u2502 \u7cfb\u7edf\u5b58\u50a8\u5668&#xff08;System Memory&#xff09; 2KB Bootloader   \u2502<br \/>\n\u2502  0x1FFF_F000 ~ 0x1FFF_F7FF                  \u2502<br \/>\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524<br \/>\n\u2502 \u9009\u9879\u5b57\u8282&#xff08;Option Bytes&#xff09; 16B                 \u2502<br \/>\n\u2502  0x1FFF_F800 ~ 0x1FFF_F80F                  \u2502<br \/>\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524<br \/>\n\u2502 OTP \u533a\u57df&#xff08;\u4e00\u6b21\u6027\u53ef\u7f16\u7a0b&#xff09;                      \u2502<br \/>\n\u2502  0x1FFF_7800 ~ 0x1FFF_7A0F                  \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<h4><span style=\"color:#511b78\">2.2 F1 \u9875\u5f0f vs F4 \u6247\u533a\u5f0f<\/span><\/h4>\n<table>\n<tr><span style=\"color:#0d0016\">\u7cfb\u5217<\/span><span style=\"color:#0d0016\">\u7ed3\u6784<\/span><span style=\"color:#0d0016\">\u64e6\u9664\u5355\u4f4d<\/span><span style=\"color:#0d0016\">\u7f16\u7a0b\u5355\u4f4d<\/span><span style=\"color:#0d0016\">\u5178\u578b\u5bb9\u91cf<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">F1&#xff08;F103&#xff09;<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u9875\u5f0f<\/span><\/td>\n<td><span style=\"color:#0d0016\">1KB\/\u9875<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u534a\u5b57&#xff08;16bit&#xff09;<\/span><\/td>\n<td><span style=\"color:#0d0016\">64KB~512KB<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">F4&#xff08;F407&#xff09;<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u6247\u533a\u5f0f<\/span><\/td>\n<td><span style=\"color:#0d0016\">32KB\/128KB\/256KB<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u5b57&#xff08;32bit&#xff09;\/\u53cc\u5b57<\/span><\/td>\n<td><span style=\"color:#0d0016\">512KB~2MB<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#0d0016\">F4 \u6247\u533a&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Sector03 \u5404 32KB\u3001Sector4 128KB\u3001Sector511 \u5404 256KB&#xff08;1MB \u5bb9\u91cf\u65f6\u7528\u524d 12 \u4e2a\u6247\u533a&#xff09;\u3002<\/span><\/p>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u4e09\u3001\u5bc4\u5b58\u5668\u8be6\u89e3&#xff08;\u9010\u4f4d\u62c6\u89e3&#xff09;<\/span><\/h3>\n<p><span style=\"color:#0d0016\">STM32F1 \u7684 Flash \u63a5\u53e3\u4e00\u5171 8 \u4e2a\u5bc4\u5b58\u5668\u3002\u672c\u7ae0\u662f\u91cd\u70b9&#xff0c;\u9010\u4e2a\u5c55\u5f00\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">3.1 FLASH_ACR \u2014 \u8bbf\u95ee\u63a7\u5236\u5bc4\u5b58\u5668&#xff08;\u5730\u5740 0x4002_2000 &#043; 0x00&#xff09;<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u4f5c\u7528&#xff1a;\u914d\u7f6e Flash \u8bfb\u53d6\u65f6\u5e8f&#xff08;\u7b49\u5f85\u72b6\u6001\u3001\u9884\u53d6\u7f13\u51b2&#xff09;\u3002<\/span><\/p>\n<table>\n<tr><span style=\"color:#0d0016\">\u4f4d<\/span><span style=\"color:#0d0016\">\u540d\u79f0<\/span><span style=\"color:#0d0016\">\u7c7b\u578b<\/span><span style=\"color:#0d0016\">\u590d\u4f4d\u503c<\/span><span style=\"color:#0d0016\">\u4f5c\u7528<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">bit[2:0]<\/span><\/td>\n<td><span style=\"color:#0d0016\">LATENCY<\/span><\/td>\n<td><span style=\"color:#0d0016\">RW<\/span><\/td>\n<td><span style=\"color:#0d0016\">000<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u7b49\u5f85\u72b6\u6001&#xff08;\u89c1\u4e0b\u8868&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">bit3<\/span><\/td>\n<td><span style=\"color:#0d0016\">PRFTBE<\/span><\/td>\n<td><span style=\"color:#0d0016\">RW<\/span><\/td>\n<td><span style=\"color:#0d0016\">0<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u9884\u53d6\u7f13\u51b2\u4f7f\u80fd&#xff1a;1&#061;\u5f00\u542f&#xff0c;0&#061;\u5173\u95ed<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">bit4<\/span><\/td>\n<td><span style=\"color:#0d0016\">PRFTBS<\/span><\/td>\n<td><span style=\"color:#0d0016\">R<\/span><\/td>\n<td><span style=\"color:#0d0016\">0<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u9884\u53d6\u7f13\u51b2\u72b6\u6001&#xff1a;1&#061;\u7f13\u51b2\u5df2\u6ee1<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">bit5<\/span><\/td>\n<td><span style=\"color:#0d0016\">HLFCLK<\/span><\/td>\n<td><span style=\"color:#0d0016\">RW<\/span><\/td>\n<td><span style=\"color:#0d0016\">0<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u534a\u5468\u671f\u914d\u7f6e&#xff1a;1&#061;\u534a\u5468\u671f&#xff08;\u4ec5 8MHz \u4ee5\u4e0b\u4e14\u5173\u95ed\u9884\u53d6\u65f6\u7528&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">bit31:6<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u4fdd\u7559<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u2014<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u2014<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u2014<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#0d0016\">LATENCY \u7b49\u5f85\u72b6\u6001\u8868&#xff08;F103&#xff0c;HCLK \u9891\u7387\u51b3\u5b9a&#xff09;&#xff1a;<\/span><\/p>\n<table>\n<tr><span style=\"color:#0d0016\">HCLK \u9891\u7387<\/span><span style=\"color:#0d0016\">\u7535\u538b 2.7V~3.6V<\/span><span style=\"color:#0d0016\">\u7535\u538b 2.4V~2.7V<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">0 &lt; HCLK \u2264 24MHz<\/span><\/td>\n<td><span style=\"color:#0d0016\">0 \u4e2a\u7b49\u5f85<\/span><\/td>\n<td><span style=\"color:#0d0016\">0 \u4e2a\u7b49\u5f85<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">24MHz &lt; HCLK \u2264 48MHz<\/span><\/td>\n<td><span style=\"color:#0d0016\">1 \u4e2a\u7b49\u5f85<\/span><\/td>\n<td><span style=\"color:#0d0016\">1 \u4e2a\u7b49\u5f85<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">48MHz &lt; HCLK \u2264 72MHz<\/span><\/td>\n<td><span style=\"color:#0d0016\">2 \u4e2a\u7b49\u5f85<\/span><\/td>\n<td><span style=\"color:#0d0016\">2 \u4e2a\u7b49\u5f85<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#511b78\">\u4e3a\u4ec0\u4e48\u9700\u8981\u7b49\u5f85\u72b6\u6001&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Flash \u8bfb\u53d6\u901f\u5ea6\u662f\u56fa\u5b9a\u7684&#xff08;\u7ea6 24MHz \u4e00\u4e2a\u5468\u671f&#xff09;&#xff0c;CPU \u4e3b\u9891 72MHz \u65f6 CPU \u6bcf 13.9ns \u5c31\u8981\u53d6\u4e00\u6b21\u6307&#xff0c;Flash \u8ddf\u4e0d\u4e0a&#xff0c;\u5fc5\u987b\u63d2\u5165 2 \u4e2a\u7b49\u5f85\u5468\u671f\u8ba9\u6570\u636e\u7a33\u5b9a\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7b49\u5f85\u72b6\u6001\u914d\u9519 &#061; \u7a0b\u5e8f\u968f\u673a\u8dd1\u98de\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">3.2 FLASH_KEYR \u2014 \u5bc6\u94a5\u5bc4\u5b58\u5668&#xff08;\u504f\u79fb 0x04&#xff09;<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u4f5c\u7528&#xff1a;\u89e3\u9501 Flash \u7f16\u7a0b\/\u64e6\u9664\u3002<\/span><span style=\"color:#0d0016\">\u53ea\u5199\u5bc4\u5b58\u5668&#xff0c;\u8bfb\u65e0\u610f\u4e49\u3002<\/span><\/p>\n<table>\n<tr><span style=\"color:#0d0016\">\u5199\u5165\u503c<\/span><span style=\"color:#0d0016\">\u4f5c\u7528<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">\u7b2c\u4e00\u6b21\u5199 0x45670123<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u5bc6\u94a5\u5e8f\u5217\u7b2c\u4e00\u90e8\u5206<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u7b2c\u4e8c\u6b21\u5199 0xCDEF89AB<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u5bc6\u94a5\u5e8f\u5217\u7b2c\u4e8c\u90e8\u5206&#xff0c;\u5199\u5bf9\u540e\u89e3\u9501<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#0d0016\">\u89e3\u9501\u7ec6\u8282&#xff1a;<\/span><\/p>\n<ul>\n<li><span style=\"color:#0d0016\">\u4e24\u628a\u5bc6\u94a5\u5fc5\u987b\u6309\u987a\u5e8f\u8fde\u7eed\u5199\u5165&#xff0c;\u4e2d\u95f4\u4e0d\u80fd\u9694\u5176\u4ed6 Flash \u64cd\u4f5c&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u5199\u9519\u4efb\u610f\u4e00\u628a&#xff1a;\u672c\u6b21\u89e3\u9501\u5931\u8d25&#xff0c;\u9700\u8981\u91cd\u65b0\u4ece\u7b2c\u4e00\u628a\u5f00\u59cb&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u89e3\u9501\u6210\u529f\u540e&#xff0c;FLASH_CR \u7684 LOCK \u4f4d\u81ea\u52a8\u6e05 0&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u786c\u4ef6\u590d\u4f4d\u6216\u7f6e LOCK&#061;1 \u540e&#xff0c;Flash \u91cd\u65b0\u4e0a\u9501&#xff0c;\u9700\u91cd\u65b0\u89e3\u9501\u3002<\/span><\/li>\n<\/ul>\n<h4><span style=\"color:#511b78\">3.3 FLASH_OPTKEYR \u2014 \u9009\u9879\u5b57\u8282\u5bc6\u94a5\u5bc4\u5b58\u5668&#xff08;\u504f\u79fb 0x08&#xff09;<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u4f5c\u7528&#xff1a;\u89e3\u9501\u9009\u9879\u5b57\u8282\u7684\u7f16\u7a0b\/\u64e6\u9664&#xff08;\u5199 OB \u533a\u57df\u524d\u5fc5\u987b\u5148\u89e3\u9501&#xff09;\u3002<\/span><\/p>\n<table>\n<tr><span style=\"color:#0d0016\">\u5199\u5165\u503c<\/span><span style=\"color:#0d0016\">\u4f5c\u7528<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">\u7b2c\u4e00\u6b21\u5199 0x08192A3B<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u9009\u9879\u5b57\u8282\u5bc6\u94a5\u7b2c\u4e00\u90e8\u5206<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u7b2c\u4e8c\u6b21\u5199 0x4C5D6E7F<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u9009\u9879\u5b57\u8282\u5bc6\u94a5\u7b2c\u4e8c\u90e8\u5206<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#0d0016\">\u548c KEYR \u540c\u6837\u7684\u673a\u5236&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4e24\u628a\u5bc6\u94a5\u3001\u6309\u5e8f\u5199\u3001\u5199\u9519\u91cd\u6765\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u53ea\u6709\u8981\u4fee\u6539\u9009\u9879\u5b57\u8282&#xff08;\u8bfb\u4fdd\u62a4\/\u5199\u4fdd\u62a4\/\u786c\u4ef6\u72d7\u914d\u7f6e&#xff09;\u65f6\u624d\u7528\u8fd9\u4e2a\u5bc4\u5b58\u5668\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">3.4 FLASH_SR \u2014 \u72b6\u6001\u5bc4\u5b58\u5668&#xff08;\u504f\u79fb 0x0C&#xff09;<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u4f5c\u7528&#xff1a;\u67e5\u8be2 Flash \u64cd\u4f5c\u72b6\u6001\u3002\u8fd9\u662f\u7f16\u7a0b\u65f6\u67e5\u5f97\u6700\u591a\u7684\u5bc4\u5b58\u5668\u3002<\/span><\/p>\n<table>\n<tr><span style=\"color:#0d0016\">\u4f4d<\/span><span style=\"color:#0d0016\">\u540d\u79f0<\/span><span style=\"color:#0d0016\">\u7c7b\u578b<\/span><span style=\"color:#0d0016\">\u590d\u4f4d\u503c<\/span><span style=\"color:#0d0016\">\u4f5c\u7528<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">bit0<\/span><\/td>\n<td><span style=\"color:#0d0016\">BSY<\/span><\/td>\n<td><span style=\"color:#0d0016\">R<\/span><\/td>\n<td><span style=\"color:#0d0016\">0<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u5fd9\u6807\u5fd7&#xff1a;1&#061;\u6b63\u5728\u64e6\u9664\/\u7f16\u7a0b&#xff0c;\u4efb\u4f55\u65b0\u64cd\u4f5c\u524d\u5fc5\u987b\u7b49\u5b83&#061;0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">bit2<\/span><\/td>\n<td><span style=\"color:#0d0016\">PGERR<\/span><\/td>\n<td><span style=\"color:#0d0016\">RW0<\/span><\/td>\n<td><span style=\"color:#0d0016\">0<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u7f16\u7a0b\u9519\u8bef&#xff1a;1&#061;\u7f16\u7a0b\u64cd\u4f5c\u5931\u8d25&#xff08;\u672a\u64e6\u9664\/\u5730\u5740\u672a\u5bf9\u9f50\/\u8d8a\u754c&#xff09;&#xff0c;\u5199 1 \u6e05\u9664<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">bit4<\/span><\/td>\n<td><span style=\"color:#0d0016\">WRPRTERR<\/span><\/td>\n<td><span style=\"color:#0d0016\">RW0<\/span><\/td>\n<td><span style=\"color:#0d0016\">0<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u5199\u4fdd\u62a4\u9519\u8bef&#xff1a;1&#061;\u8bd5\u56fe\u5199\u88ab\u4fdd\u62a4\u7684\u9875&#xff0c;\u5199 1 \u6e05\u9664<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">bit5<\/span><\/td>\n<td><span style=\"color:#0d0016\">EOP<\/span><\/td>\n<td><span style=\"color:#0d0016\">RW0<\/span><\/td>\n<td><span style=\"color:#0d0016\">1<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u64cd\u4f5c\u5b8c\u6210&#xff1a;1&#061;\u64e6\u9664\/\u7f16\u7a0b\u6210\u529f\u7ed3\u675f&#xff0c;\u5199 1 \u6e05\u9664<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">bit1,3,6,7<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u4fdd\u7559<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u2014<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u2014<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u2014<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#0d0016\">\u5404\u6807\u5fd7\u7684\u4f7f\u7528\u573a\u666f&#xff1a;<\/span><\/p>\n<p>while(FLASH-&gt;SR &amp; FLASH_SR_BSY);      \/\/ \u2460 \u64cd\u4f5c\u524d&#xff1a;\u7b49\u4e0a\u4e00\u6b21\u5fd9\u5b8c<br \/>\n\/\/ &#8230; \u53d1\u8d77\u64e6\u9664\/\u7f16\u7a0b &#8230;<br \/>\nwhile(FLASH-&gt;SR &amp; FLASH_SR_BSY);      \/\/ \u2461 \u64cd\u4f5c\u540e&#xff1a;\u7b49\u672c\u6b21\u5b8c\u6210<\/p>\n<p>if(FLASH-&gt;SR &amp; FLASH_SR_PGERR) {      \/\/ \u2462 \u67e5\u7f16\u7a0b\u9519\u8bef<br \/>\n    \/\/ \u5904\u7406&#xff1a;\u4e00\u822c\u662f\u6ca1\u64e6\u9664\u5c31\u5199 \/ \u5730\u5740\u6ca1\u5bf9\u9f50<br \/>\n}<br \/>\nif(FLASH-&gt;SR &amp; FLASH_SR_WRPRTERR) {   \/\/ \u2463 \u67e5\u5199\u4fdd\u62a4\u9519\u8bef<br \/>\n    \/\/ \u5904\u7406&#xff1a;\u76ee\u6807\u9875\u88ab\u9009\u9879\u5b57\u8282\u5199\u4fdd\u62a4<br \/>\n}<br \/>\nFLASH-&gt;SR |&#061; FLASH_SR_EOP;            \/\/ \u2464 \u6e05\u9664\u5b8c\u6210\u6807\u5fd7&#xff08;\u5199 1 \u6e05 0&#xff09;<\/p>\n<p><span style=\"color:#0d0016\">\u4e3a\u4ec0\u4e48 EOP \u590d\u4f4d\u503c\u662f 1&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u82af\u7247\u8bbe\u8ba1\u65f6\u8ba9&#034;\u672a\u53d1\u751f\u8fc7\u64cd\u4f5c&#034;\u4e5f\u8868\u73b0\u4e3a\u5b8c\u6210&#xff0c;\u65b9\u4fbf\u8bfb\u53d6\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u771f\u6b63\u5224\u65ad&#034;\u672c\u6b21\u64cd\u4f5c\u5b8c\u6210&#034;\u8981\u770b BSY \u4ece 1 \u53d8 0&#xff0c;EOP \u53ea\u4f5c\u4e3a\u53ef\u9009\u7684\u5b8c\u6210\u786e\u8ba4\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">3.5 FLASH_CR \u2014 \u63a7\u5236\u5bc4\u5b58\u5668&#xff08;\u504f\u79fb 0x10&#xff09;<\/span><\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"341\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030225712-6ae520c87664c.png\" width=\"713\" \/><\/p>\n<p><span style=\"color:#0d0016\">\u4f5c\u7528&#xff1a;\u63a7\u5236 Flash \u7684\u6a21\u5f0f&#xff08;\u7f16\u7a0b\/\u64e6\u9664\/\u9009\u9879\u5b57\u8282&#xff09;\u548c\u542f\u52a8\u3002\u8fd9\u662f\u6700\u6838\u5fc3\u7684\u5bc4\u5b58\u5668\u3002<\/span><\/p>\n<table>\n<tr><span style=\"color:#0d0016\">\u4f4d<\/span><span style=\"color:#0d0016\">\u540d\u79f0<\/span><span style=\"color:#0d0016\">\u7c7b\u578b<\/span><span style=\"color:#0d0016\">\u590d\u4f4d\u503c<\/span><span style=\"color:#0d0016\">\u4f5c\u7528<\/span><\/tr>\n<tbody>\n<tr>\n<td style=\"width:50px\"><span style=\"color:#0d0016\">bit0<\/span><\/td>\n<td style=\"width:74px\"><span style=\"color:#0d0016\">PG<\/span><\/td>\n<td><span style=\"color:#0d0016\">RW<\/span><\/td>\n<td style=\"width:29px\"><span style=\"color:#0d0016\">0<\/span><\/td>\n<td style=\"width:450px\"><span style=\"color:#0d0016\">\u7f16\u7a0b\u4f7f\u80fd&#xff1a;1&#061;\u8fdb\u5165\u7f16\u7a0b\u6a21\u5f0f&#xff08;\u7f6e\u4f4d\u540e\u5199\u5730\u5740\u624d\u89e6\u53d1\u7f16\u7a0b&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width:50px\"><span style=\"color:#0d0016\">bit1<\/span><\/td>\n<td style=\"width:74px\"><span style=\"color:#0d0016\">PER<\/span><\/td>\n<td><span style=\"color:#0d0016\">RW<\/span><\/td>\n<td style=\"width:29px\"><span style=\"color:#0d0016\">0<\/span><\/td>\n<td style=\"width:450px\"><span style=\"color:#fe2c24\">\u9875\u64e6\u9664<\/span><span style=\"color:#0d0016\">\u4f7f\u80fd&#xff1a;1&#061;\u8fdb\u5165\u9875\u64e6\u9664\u6a21\u5f0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width:50px\"><span style=\"color:#0d0016\">bit2<\/span><\/td>\n<td style=\"width:74px\"><span style=\"color:#0d0016\">MER<\/span><\/td>\n<td><span style=\"color:#0d0016\">RW<\/span><\/td>\n<td style=\"width:29px\"><span style=\"color:#0d0016\">0<\/span><\/td>\n<td style=\"width:450px\"><span style=\"color:#fe2c24\">\u6574\u7247\u64e6\u9664<\/span><span style=\"color:#0d0016\">\u4f7f\u80fd&#xff1a;1&#061;\u8fdb\u5165\u5168\u7247\u64e6\u9664\u6a21\u5f0f&#xff08;\u5371\u9669&#xff01;&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width:50px\"><span style=\"color:#0d0016\">bit3<\/span><\/td>\n<td style=\"width:74px\"><span style=\"color:#0d0016\">OPTPG<\/span><\/td>\n<td><span style=\"color:#0d0016\">RW<\/span><\/td>\n<td style=\"width:29px\"><span style=\"color:#0d0016\">0<\/span><\/td>\n<td style=\"width:450px\"><span style=\"color:#0d0016\">\u9009\u9879\u5b57\u8282\u7f16\u7a0b\u4f7f\u80fd<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width:50px\"><span style=\"color:#0d0016\">bit4<\/span><\/td>\n<td style=\"width:74px\"><span style=\"color:#0d0016\">OPTER<\/span><\/td>\n<td><span style=\"color:#0d0016\">RW<\/span><\/td>\n<td style=\"width:29px\"><span style=\"color:#0d0016\">0<\/span><\/td>\n<td style=\"width:450px\"><span style=\"color:#0d0016\">\u9009\u9879\u5b57\u8282\u64e6\u9664\u4f7f\u80fd<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width:50px\"><span style=\"color:#0d0016\">bit5<\/span><\/td>\n<td style=\"width:74px\"><span style=\"color:#0d0016\">STRT<\/span><\/td>\n<td><span style=\"color:#0d0016\">RW<\/span><\/td>\n<td style=\"width:29px\"><span style=\"color:#0d0016\">0<\/span><\/td>\n<td style=\"width:450px\"><span style=\"color:#0d0016\">\u542f\u52a8\u64e6\u9664&#xff1a;\u5199 1 \u542f\u52a8\u5f53\u524d\u6a21\u5f0f\u7684\u64e6\u9664&#xff08;\u4ec5\u64e6\u9664\u9700\u8981&#xff0c;\u7f16\u7a0b\u4e0d\u9700\u8981&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width:50px\"><span style=\"color:#0d0016\">bit6<\/span><\/td>\n<td style=\"width:74px\"><span style=\"color:#0d0016\">LOCK<\/span><\/td>\n<td><span style=\"color:#0d0016\">RW<\/span><\/td>\n<td style=\"width:29px\"><span style=\"color:#0d0016\">1<\/span><\/td>\n<td style=\"width:450px\"><span style=\"color:#0d0016\">\u9501\u5b9a&#xff1a;1&#061;Flash \u9501\u5b9a&#xff1b;\u5199 1 \u4e0a\u9501&#xff0c;<\/span><span style=\"color:#fe2c24\">\u53ea\u80fd\u7531\u786c\u4ef6\u590d\u4f4d\u6216\u6210\u529f\u89e3\u9501\u6e05 0<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width:50px\"><span style=\"color:#0d0016\">bit7<\/span><\/td>\n<td style=\"width:74px\"><span style=\"color:#0d0016\">OPTWRE<\/span><\/td>\n<td><span style=\"color:#0d0016\">RW<\/span><\/td>\n<td style=\"width:29px\"><span style=\"color:#0d0016\">0<\/span><\/td>\n<td style=\"width:450px\"><span style=\"color:#0d0016\">\u9009\u9879\u5b57\u8282\u5199\u4f7f\u80fd&#xff1a;1&#061;\u5141\u8bb8\u5199\u9009\u9879\u5b57\u8282&#xff08;\u89e3\u9501 OPTKEYR \u540e\u81ea\u52a8\u7f6e 1&#xff09;<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#0d0016\">CR \u7684\u5173\u952e\u8bbe\u8ba1&#xff1a;<\/span><\/p>\n<ul>\n<li><span style=\"color:#0d0016\">\u6a21\u5f0f\u4f4d&#xff08;PG\/PER\/MER&#xff09;\u662f&#034;\u9884\u8bbe\u7f6e&#034;\u2014\u2014\u5148\u9009\u597d\u8981\u5e72\u4ec0\u4e48&#xff0c;\u518d\u89e6\u53d1&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">STRT \u53ea\u5bf9\u64e6\u9664\u6709\u6548\u2014\u2014\u64e6\u9664\u9700\u8981&#034;\u6309\u542f\u52a8\u6309\u94ae&#034;&#xff0c;\u7f16\u7a0b\u4e0d\u9700\u8981&#xff08;\u5199\u6570\u636e\u52a8\u4f5c\u672c\u8eab\u89e6\u53d1&#xff09;&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">LOCK \u53ea\u80fd\u5199 1 \u4e0d\u80fd\u5199 0\u2014\u2014\u4e0a\u9501\u5bb9\u6613&#xff0c;\u89e3\u9501\u5fc5\u987b\u8d70\u5bc6\u94a5\u6d41\u7a0b&#xff0c;\u9632\u8bef\u64cd\u4f5c\u3002<\/span><\/li>\n<\/ul>\n<h4><span style=\"color:#511b78\">3.6 FLASH_AR \u2014 \u5730\u5740\u5bc4\u5b58\u5668&#xff08;\u504f\u79fb 0x14&#xff09;<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u4f5c\u7528&#xff1a;\u6307\u5b9a\u64e6\u9664\u7684\u76ee\u6807\u5730\u5740\u3002<\/span><\/p>\n<table>\n<tr><span style=\"color:#0d0016\">\u4f4d<\/span><span style=\"color:#0d0016\">\u540d\u79f0<\/span><span style=\"color:#0d0016\">\u7c7b\u578b<\/span><span style=\"color:#0d0016\">\u4f5c\u7528<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">bit[31:0]<\/span><\/td>\n<td><span style=\"color:#0d0016\">FAR<\/span><\/td>\n<td><span style=\"color:#0d0016\">RW<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u9875\u64e6\u9664\u65f6\u5b58\u653e\u76ee\u6807\u9875\u5730\u5740<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u53ea\u6709\u9875\u64e6\u9664\u7528\u5230 AR&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6574\u7247\u64e6\u9664&#xff08;MER&#xff09;\u4e0d\u9700\u8981\u5730\u5740\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7f16\u7a0b\u4e5f\u4e0d\u901a\u8fc7 AR\u2014\u2014\u7f16\u7a0b\u5730\u5740\u5c31\u662f\u4f60\u8981\u5199\u6570\u636e\u7684\u90a3\u4e2a\u5730\u5740\u672c\u8eab&#xff08;\u76f4\u63a5\u5bf9 Flash \u5730\u5740\u5199&#xff09;\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">3.7 FLASH_OBR \u2014 \u9009\u9879\u5b57\u8282\u72b6\u6001\u5bc4\u5b58\u5668&#xff08;\u504f\u79fb 0x1C&#xff09;<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u4f5c\u7528&#xff1a;\u53ea\u8bfb&#xff0c;\u53cd\u6620\u5f53\u524d\u9009\u9879\u5b57\u8282\u7684\u914d\u7f6e\u72b6\u6001\u3002<\/span><\/p>\n<table>\n<tr><span style=\"color:#0d0016\">\u4f4d<\/span><span style=\"color:#0d0016\">\u540d\u79f0<\/span><span style=\"color:#0d0016\">\u7c7b\u578b<\/span><span style=\"color:#0d0016\">\u4f5c\u7528<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">bit0<\/span><\/td>\n<td><span style=\"color:#0d0016\">OPTERR<\/span><\/td>\n<td><span style=\"color:#0d0016\">R<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u9009\u9879\u5b57\u8282\u9519\u8bef&#xff1a;1&#061;\u9009\u9879\u5b57\u8282\u6821\u9a8c\u5931\u8d25<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">bit1<\/span><\/td>\n<td><span style=\"color:#0d0016\">RDPRT<\/span><\/td>\n<td><span style=\"color:#0d0016\">R<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u8bfb\u4fdd\u62a4\u7ea7\u522b&#xff1a;00&#061;Level 0&#xff0c;01&#061;Level 1&#xff0c;10\/11&#061;Level 2<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">bit2<\/span><\/td>\n<td><span style=\"color:#0d0016\">IWDG_SW<\/span><\/td>\n<td><span style=\"color:#0d0016\">R<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u770b\u95e8\u72d7\u914d\u7f6e&#xff1a;1&#061;\u8f6f\u4ef6\u770b\u95e8\u72d7&#xff0c;0&#061;\u786c\u4ef6\u770b\u95e8\u72d7<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">bit4:3<\/span><\/td>\n<td><span style=\"color:#0d0016\">BOR_LEV<\/span><\/td>\n<td><span style=\"color:#0d0016\">R<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u6389\u7535\u68c0\u6d4b\u9608\u503c\u7b49\u7ea7<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">bit[9:8]<\/span><\/td>\n<td><span style=\"color:#0d0016\">nBOOT1<\/span><\/td>\n<td><span style=\"color:#0d0016\">R<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u542f\u52a8\u6a21\u5f0f\u914d\u7f6e\u4f4d<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#0d0016\">\u8bfb\u8fd9\u4e2a\u5bc4\u5b58\u5668\u5c31\u80fd\u77e5\u9053\u82af\u7247\u5f53\u524d\u5904\u4e8e\u4ec0\u4e48\u4fdd\u62a4\/\u542f\u52a8\u72b6\u6001&#xff0c;\u4e0d\u7528\u56de\u8bfb\u9009\u9879\u5b57\u8282\u672c\u8eab\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">3.8 FLASH_WRPR \u2014 \u5199\u4fdd\u62a4\u5bc4\u5b58\u5668&#xff08;\u504f\u79fb 0x20&#xff09;<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u4f5c\u7528&#xff1a;\u6807\u8bb0\u54ea\u4e9b\u9875\u88ab\u5199\u4fdd\u62a4&#xff08;\u53ea\u8bfb&#xff0c;\u5b9e\u9645\u914d\u7f6e\u8981\u5199\u9009\u9879\u5b57\u8282\u533a&#xff09;\u3002<\/span><\/p>\n<table>\n<tr><span style=\"color:#0d0016\">\u4f4d<\/span><span style=\"color:#0d0016\">\u540d\u79f0<\/span><span style=\"color:#0d0016\">\u4f5c\u7528<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">bit[127:0]<\/span><\/td>\n<td><span style=\"color:#0d0016\">WRP<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u6bcf\u4e00\u4f4d\u5bf9\u5e94 4 \u9875&#xff08;F103 \u4e2d\u6bcf bit \u4fdd\u62a4 4 \u4e2a 1KB \u9875&#xff09;&#xff0c;1&#061;\u8be5\u7ec4\u88ab\u5199\u4fdd\u62a4<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u88ab\u5199\u4fdd\u62a4\u7684\u9875\u65e0\u6cd5\u64e6\u9664\u548c\u7f16\u7a0b&#xff0c;\u4f46\u53ef\u4ee5\u6b63\u5e38\u8bfb\u53d6\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7528\u4e8e\u4fdd\u62a4 Bootloader \u7b49\u91cd\u8981\u533a\u57df\u4e0d\u88ab\u8bef\u5199\u3002<\/span><\/p>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u56db\u3001Flash \u4e09\u5927\u7279\u6027<\/span><\/h3>\n<h4><span style=\"color:#511b78\">4.1 \u7279\u6027\u4e00&#xff1a;\u53ea\u80fd\u5199 0&#xff0c;\u4e0d\u80fd\u5199 1<\/span><\/h4>\n<p>Flash \u4f4d\u72b6\u6001&#xff1a;<br \/>\n 1&#xff08;\u672a\u7f16\u7a0b&#xff09;\u2500\u2500\u7f16\u7a0b\u2500\u2500\u25ba 0&#xff08;\u5df2\u7f16\u7a0b&#xff09;<br \/>\n 0&#xff08;\u5df2\u7f16\u7a0b&#xff09;\u2500\u2500\u64e6\u9664\u2500\u2500\u25ba 1&#xff08;\u672a\u7f16\u7a0b&#xff09;<\/p>\n<h4><span style=\"color:#511b78\">4.2 \u7279\u6027\u4e8c&#xff1a;\u64e6\u9664\u662f&#034;\u6309\u5757&#034;\u7684<\/span><\/h4>\n<ul>\n<li><span style=\"color:#0d0016\">\u64e6\u9664\u628a\u6574\u9875\/\u6574\u6247\u533a\u6062\u590d\u6210\u5168 1&#xff08;0xFF&#xff09;&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u4e0d\u80fd\u6309\u5b57\u8282\u64e6\u9664&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u4fee\u6539\u6570\u636e\u4e09\u6b65\u66f2&#xff1a;\u2460 \u8bfb\u51fa\u5230 SRAM \u2461 \u64e6\u6574\u9875 \u2462 \u91cd\u5199\u3002<\/span><\/li>\n<\/ul>\n<h4><span style=\"color:#511b78\">4.3 \u7279\u6027\u4e09&#xff1a;\u5199\u524d\u5fc5\u987b\u64e6\u9664&#xff0c;\u4e14\u8981\u7b49 BSY<\/span><\/h4>\n<ul>\n<li><span style=\"color:#0d0016\">\u6bcf\u6b21\u64cd\u4f5c\u524d\u5fc5\u987b\u67e5 FLASH_SR.BSY&#061;0&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u7f16\u7a0b\u5355\u4f4d&#xff1a;F1 \u534a\u5b57&#xff08;16bit&#xff09;\u3001F4 \u5b57&#xff08;32bit&#xff09;\/\u53cc\u5b57\u3002<\/span><\/li>\n<\/ul>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u4e94\u3001Flash \u5de5\u4f5c\u6d41\u7a0b\u987a\u5e8f&#xff08;\u91cd\u70b9&#xff0c;\u9010\u6b65\u62c6\u89e3&#xff09;<\/span><\/h3>\n<p><span style=\"color:#0d0016\">\u6838\u5fc3\u603b\u5e8f&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u89e3\u9501 \u2192 \u7b49\u5f85\u7a7a\u95f2 \u2192 \u914d\u7f6e\u6a21\u5f0f \u2192 \u6307\u5b9a\u5730\u5740 \u2192 \u89e6\u53d1\u64cd\u4f5c \u2192 \u7b49\u5f85\u5b8c\u6210 \u2192 \u6e05\u9664\u6807\u5fd7 \u2192 \u9000\u51fa\u6a21\u5f0f \u2192 \u52a0\u9501\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u4e0b\u9762\u6309&#034;\u4e3a\u4ec0\u4e48\u662f\u8fd9\u4e2a\u987a\u5e8f&#034;\u9010\u9636\u6bb5\u8bb2\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">5.0 \u5de5\u4f5c\u6d41\u7a0b\u603b\u89c8<\/span><\/h4>\n<p>\u9636\u6bb51  \u89e3\u9501         FLASH-&gt;KEYR \u8fde\u5199\u4e24\u628a\u5bc6\u94a5<br \/>\n   \u2502               &#xff08;\u5fc5\u987b\u5148\u4e8e\u4e00\u5207\u64cd\u4f5c&#xff0c;\u5426\u5219 CR \u88ab\u9501&#xff0c;\u64cd\u4f5c\u65e0\u6548&#xff09;<br \/>\n   \u25bc<br \/>\n\u9636\u6bb52  \u7b49\u7a7a\u95f2       while(SR.BSY)  \u2190 \u6bcf\u6b21\u90fd\u67e5<br \/>\n   \u2502<br \/>\n   \u25bc<br \/>\n\u9636\u6bb53  \u914d\u7f6e\u6a21\u5f0f     CR \u7f6e PG \/ PER \/ MER&#xff08;\u5148\u9009\u6a21\u5f0f&#xff09;<br \/>\n   \u2502<br \/>\n   \u25bc<br \/>\n\u9636\u6bb54  \u6307\u5b9a\u5730\u5740     AR &#061; \u76ee\u6807\u9875&#xff08;\u4ec5\u9875\u64e6\u9664\u9700\u8981&#xff09;<br \/>\n   \u2502<br \/>\n   \u25bc<br \/>\n\u9636\u6bb55  \u89e6\u53d1\u64cd\u4f5c     \u64e6\u9664&#xff1a;\u7f6e STRT&#061;1 \u542f\u52a8<br \/>\n   \u2502              \u7f16\u7a0b&#xff1a;\u76f4\u63a5\u5411 Flash \u5730\u5740\u5199\u6570\u636e&#xff08;\u5199\u52a8\u4f5c\u5373\u89e6\u53d1&#xff09;<br \/>\n   \u25bc<br \/>\n\u9636\u6bb56  \u7b49\u5b8c\u6210       while(SR.BSY)  \u2190 \u64cd\u4f5c\u671f\u95f4 CPU \u505c\u5728\u8fd9<br \/>\n   \u2502<br \/>\n   \u25bc<br \/>\n\u9636\u6bb57  \u6e05\u6807\u5fd7       SR \u5199 1 \u6e05 EOP&#xff08;\u53ca\u9519\u8bef\u6807\u5fd7&#xff09;<br \/>\n   \u2502<br \/>\n   \u25bc<br \/>\n\u9636\u6bb58  \u9000\u51fa\u6a21\u5f0f     CR \u6e05 PG \/ PER&#xff08;\u9632\u6b62\u8bef\u89e6\u53d1&#xff09;<br \/>\n   \u2502<br \/>\n   \u25bc<br \/>\n\u9636\u6bb59  \u52a0\u9501         CR \u7f6e LOCK&#061;1&#xff08;\u9632\u8dd1\u98de\u8bef\u64e6\u5199&#xff09;<\/p>\n<h4><span style=\"color:#511b78\">5.1 \u9636\u6bb5\u4e00&#xff1a;\u89e3\u9501\u2014\u2014\u4e3a\u4ec0\u4e48\u5fc5\u987b\u5148\u505a&#xff1f;<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u987a\u5e8f\u539f\u56e0&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0FLASH_CR \u7684 LOCK \u4f4d\u590d\u4f4d\u503c\u4e3a 1&#xff0c;Flash \u9ed8\u8ba4\u5904\u4e8e\u9501\u5b9a\u72b6\u6001\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u9501\u5b9a\u65f6&#xff0c;CR \u7684\u6240\u6709\u6a21\u5f0f\u4f4d&#xff08;PG\/PER\/MER&#xff09;\u5199\u4e0d\u8fdb&#xff0c;\u4e00\u5207\u64cd\u4f5c\u65e0\u6548\u3002<\/span><\/p>\n<p>FLASH-&gt;KEYR &#061; 0x45670123;   \/\/ \u5bc6\u94a5 1<br \/>\nFLASH-&gt;KEYR &#061; 0xCDEF89AB;   \/\/ \u5bc6\u94a5 2 \u2192 \u786c\u4ef6\u6821\u9a8c\u901a\u8fc7 \u2192 LOCK \u6e05 0<\/p>\n<p><span style=\"color:#0d0016\">\u7ec6\u8282&#xff1a;<\/span><\/p>\n<ul>\n<li><span style=\"color:#0d0016\">\u4e24\u628a\u5bc6\u94a5\u5fc5\u987b\u8fde\u7eed\u3001\u6309\u5e8f\u5199\u5165&#xff0c;\u4e2d\u95f4\u4e0d\u80fd\u63d2\u5165\u5176\u4ed6 Flash \u76f8\u5173\u64cd\u4f5c&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u5199\u9519\u4efb\u610f\u4e00\u628a&#xff1a;\u89e3\u9501\u5931\u8d25&#xff0c;CR \u4fdd\u6301\u9501\u5b9a&#xff0c;\u5fc5\u987b\u4ece\u5bc6\u94a5 1 \u91cd\u6765&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u89e3\u9501\u53ea\u89e3\u9664&#034;\u8fd9\u4e00\u6b21&#034;\u7684\u9501\u2014\u2014\u5982\u679c\u4e4b\u540e\u4f60\u7f6e LOCK&#061;1 \u6216\u53d1\u751f\u590d\u4f4d&#xff0c;\u9700\u8981\u91cd\u65b0\u89e3\u9501\u3002<\/span><\/li>\n<\/ul>\n<p><span style=\"color:#0d0016\">\u4e3a\u4ec0\u4e48\u8bbe\u8ba1\u6210\u4e24\u628a\u5bc6\u94a5&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u8dd1\u98de\u540e PC \u968f\u673a\u5199\u5bc4\u5b58\u5668&#xff0c;\u8fde\u7eed\u5199\u5bf9\u4e24\u4e2a 32 \u4f4d\u7279\u5b9a\u503c&#xff08;0x45670123 \u548c 0xCDEF89AB&#xff09;\u7684\u6982\u7387\u4e3a 1\/2^64&#xff0c;\u51e0\u4e4e\u4e0d\u53ef\u80fd\u8bef\u89e3\u9501\u2014\u2014\u9632\u6b62\u7a0b\u5e8f\u5931\u63a7\u540e\u628a\u81ea\u5df1\u7684\u4ee3\u7801\u64e6\u6ca1\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">5.2 \u9636\u6bb5\u4e8c&#xff1a;\u7b49\u5f85\u7a7a\u95f2\u2014\u2014\u6bcf\u6b21\u64cd\u4f5c\u524d\u540e\u90fd\u8981\u67e5<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u987a\u5e8f\u539f\u56e0&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Flash \u662f\u5355\u63a5\u53e3\u8bbe\u5907&#xff0c;\u540c\u4e00\u65f6\u95f4\u53ea\u80fd\u505a\u4e00\u4e2a\u64cd\u4f5c\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4e0a\u4e00\u6b21\u64e6\u9664\/\u7f16\u7a0b\u6ca1\u7ed3\u675f&#xff08;BSY&#061;1&#xff09;\u65f6&#xff0c;\u53d1\u8d77\u65b0\u64cd\u4f5c\u4f1a\u5bfc\u81f4\u672c\u6b21\u64cd\u4f5c\u65e0\u6548\u751a\u81f3\u9519\u8bef\u3002<\/span><\/p>\n<p>while(FLASH-&gt;SR &amp; FLASH_SR_BSY);   \/\/ \u5fd9\u5219\u6b7b\u7b49<\/p>\n<p><span style=\"color:#0d0016\">\u7ec6\u8282&#xff1a;<\/span><\/p>\n<ul>\n<li><span style=\"color:#0d0016\">BSY \u7531\u786c\u4ef6\u5728\u64cd\u4f5c\u5f00\u59cb\u7f6e 1\u3001\u7ed3\u675f\u6e05 0&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u89e3\u9501\u3001\u52a0\u9501\u4e0d\u9700\u8981\u7b49 BSY&#xff08;\u5b83\u4eec\u4e0d\u8bbf\u95ee\u5b58\u50a8\u9635\u5217&#xff09;&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u64e6\u9664\u3001\u7f16\u7a0b\u524d\u540e\u90fd\u8981\u67e5&#xff1a;\u524d\u9762\u7b49\u4e0a\u4e00\u6b21\u5b8c\u6210&#xff0c;\u540e\u9762\u7b49\u672c\u6b21\u5b8c\u6210\u3002<\/span><\/li>\n<\/ul>\n<h4><span style=\"color:#511b78\">5.3 \u9636\u6bb5\u4e09&#xff1a;\u914d\u7f6e\u6a21\u5f0f\u2014\u2014\u5148\u9009\u6a21\u5f0f\u518d\u89e6\u53d1<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u987a\u5e8f\u539f\u56e0&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0CR \u662f&#034;\u9884\u8bbe\u7f6e\u5bc4\u5b58\u5668&#034;\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5fc5\u987b\u5148\u628a\u6a21\u5f0f\u4f4d&#xff08;PG\/PER\/MER&#xff09;\u7f6e 1&#xff0c;\u518d\u89e6\u53d1&#xff0c;\u786c\u4ef6\u624d\u77e5\u9053\u63a5\u4e0b\u6765\u8981\u505a\u4ec0\u4e48\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u53cd\u8fc7\u6765&#xff08;\u5148\u89e6\u53d1\u518d\u8bbe\u6a21\u5f0f&#xff09;\u65e0\u6548\u3002<\/span><\/p>\n<p>\/\/ \u9875\u64e6\u9664\u6a21\u5f0f<br \/>\nFLASH-&gt;CR |&#061; FLASH_CR_PER;     \/\/ \u9009\u9875\u64e6\u9664<\/p>\n<p>\/\/ \u6574\u7247\u64e6\u9664\u6a21\u5f0f<br \/>\nFLASH-&gt;CR |&#061; FLASH_CR_MER;     \/\/ \u9009\u5168\u7247\u64e6\u9664&#xff08;\u5371\u9669&#xff09;<\/p>\n<p>\/\/ \u7f16\u7a0b\u6a21\u5f0f<br \/>\nFLASH-&gt;CR |&#061; FLASH_CR_PG;      \/\/ \u9009\u7f16\u7a0b<\/p>\n<p><span style=\"color:#0d0016\">\u7ec6\u8282&#xff1a;<\/span><\/p>\n<ul>\n<li><span style=\"color:#0d0016\">PG\u3001PER\u3001MER \u4e92\u65a5\u4f7f\u7528\u2014\u2014\u4e00\u6b21\u53ea\u80fd\u9009\u4e00\u4e2a\u6a21\u5f0f&#xff0c;\u505a\u5b8c\u8981\u6e05\u6389\u518d\u6362\u4e0b\u4e00\u4e2a&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u9009\u5b8c\u6a21\u5f0f\u540e&#xff0c;\u786c\u4ef6\u5728\u4e0b\u4e00\u6b21\u89e6\u53d1\/\u5199\u6570\u636e\u65f6\u6309\u6a21\u5f0f\u6267\u884c&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u6a21\u5f0f\u4f4d\u4e0d\u6e05\u9664\u7684\u8bdd&#xff0c;\u540e\u7eed\u4efb\u4f55\u5199 Flash \u5730\u5740\u7684\u64cd\u4f5c\u90fd\u4f1a\u88ab\u5f53\u6210\u7f16\u7a0b\/\u64e6\u9664\u89e6\u53d1\u2014\u2014\u7528\u5b8c\u5fc5\u987b\u6e05\u3002<\/span><\/li>\n<\/ul>\n<h4><span style=\"color:#511b78\">5.4 \u9636\u6bb5\u56db&#xff1a;\u6307\u5b9a\u5730\u5740\u2014\u2014\u53ea\u6709\u9875\u64e6\u9664\u9700\u8981 AR<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u987a\u5e8f\u539f\u56e0&#xff1a;\u64e6\u9664\u9700\u8981\u77e5\u9053&#034;\u64e6\u54ea\u4e00\u9875&#034;&#xff0c;\u5730\u5740\u5148\u7ed9\u786c\u4ef6&#xff0c;\u89e6\u53d1\u540e\u624d\u6267\u884c\u3002<\/span><\/p>\n<p>FLASH-&gt;AR &#061; page_addr;          \/\/ \u9875\u64e6\u9664\u76ee\u6807\u5730\u5740&#xff08;\u5fc5\u987b\u6309 1KB \u9875\u5bf9\u9f50&#xff09;<\/p>\n<p><span style=\"color:#0d0016\">\u7ec6\u8282&#xff1a;<\/span><\/p>\n<ul>\n<li><span style=\"color:#0d0016\">\u9875\u64e6\u9664&#xff1a;\u5fc5\u987b\u5199 AR&#xff0c;\u4e14\u5730\u5740\u8981\u9875\u5bf9\u9f50&#xff08;F1 \u6309 1KB \u5bf9\u9f50&#xff0c;\u5373\u5730\u5740\u4f4e 10 \u4f4d\u4e3a 0&#xff09;&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u6574\u7247\u64e6\u9664&#xff08;MER&#xff09;&#xff1a;\u4e0d\u9700\u8981 AR&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u7f16\u7a0b&#xff1a;\u4e0d\u9700\u8981 AR\u2014\u2014\u7f16\u7a0b\u76ee\u6807\u5730\u5740\u5c31\u662f\u4f60\u5199\u6570\u636e\u7684\u90a3\u4e2a\u5730\u5740&#xff08;*(volatile uint16_t*)addr &#061; data&#xff09;\u3002<\/span><\/li>\n<\/ul>\n<h4><span style=\"color:#511b78\">5.5 \u9636\u6bb5\u4e94&#xff1a;\u89e6\u53d1\u64cd\u4f5c\u2014\u2014\u64e6\u9664\u4e0e\u7f16\u7a0b\u7684\u89e6\u53d1\u65b9\u5f0f\u4e0d\u540c<\/span><\/h4>\n<p><span style=\"color:#0d0016\">\u64e6\u9664\u9700\u8981&#034;\u6309\u542f\u52a8\u6309\u94ae&#034;&#xff0c;\u7f16\u7a0b\u4e0d\u9700\u8981\u3002\u8fd9\u662f\u6700\u5bb9\u6613\u6df7\u7684\u70b9&#xff1a;<\/span><\/p>\n<p>\/\/ \u64e6\u9664\u89e6\u53d1&#xff1a;\u5199 STRT&#061;1<br \/>\nFLASH-&gt;CR |&#061; FLASH_CR_STRT;<\/p>\n<p>\/\/ \u7f16\u7a0b\u89e6\u53d1&#xff1a;\u76f4\u63a5\u5411 Flash \u5730\u5740\u5199\u6570\u636e&#xff0c;\u5199\u52a8\u4f5c\u672c\u8eab\u5373\u89e6\u53d1<br \/>\n*(volatile uint16_t*)addr &#061; data;<\/p>\n<p><span style=\"color:#0d0016\">\u4e3a\u4ec0\u4e48\u7f16\u7a0b\u4e0d\u7528 STRT&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7f16\u7a0b\u7684\u89e6\u53d1\u6761\u4ef6\u662f&#034;\u5411 Flash \u5730\u5740\u6267\u884c\u4e00\u6b21\u5199\u603b\u7ebf\u64cd\u4f5c&#034;\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u786c\u4ef6\u770b\u5230 PG&#061;1 \u4e14\u51fa\u73b0 Flash \u5199\u8bbf\u95ee&#xff0c;\u5c31\u81ea\u52a8\u5f00\u59cb\u7f16\u7a0b\u2014\u2014\u4e0d\u9700\u8981\u989d\u5916\u7684\u542f\u52a8\u4f4d\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u800c\u64e6\u9664\u6ca1\u6709&#034;\u5199\u5730\u5740&#034;\u8fd9\u4e2a\u52a8\u4f5c&#xff08;\u64e6\u9664\u662f\u6574\u9875\u64cd\u4f5c&#xff09;&#xff0c;\u5fc5\u987b\u7528 STRT \u624b\u52a8\u542f\u52a8\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">5.6 \u9636\u6bb5\u516d&#xff1a;\u7b49\u5f85\u5b8c\u6210\u2014\u2014\u64cd\u4f5c\u671f\u95f4 CPU \u53ea\u80fd\u7b49<\/span><\/h4>\n<p>while(FLASH-&gt;SR &amp; FLASH_SR_BSY);<\/p>\n<p><span style=\"color:#0d0016\">\u7ec6\u8282&#xff1a;<\/span><\/p>\n<ul>\n<li><span style=\"color:#0d0016\">\u64e6\u9664 1KB \u9875&#xff1a;\u5178\u578b\u8017\u65f6 20~40ms&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u7f16\u7a0b 1 \u4e2a\u534a\u5b57&#xff1a;\u5178\u578b\u8017\u65f6 40~50\u00b5s&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u8fd9\u6bb5\u65f6\u95f4\u5185\u4e0d\u8981\u518d\u53d1\u8d77\u4efb\u4f55 Flash \u64cd\u4f5c&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u64e6\u9664\u671f\u95f4&#xff08;F1&#xff09;\u4e0d\u80fd\u4ece\u88ab\u64e6\u9664\u7684 Flash \u6267\u884c\u4ee3\u7801\u2014\u2014\u56e0\u4e3a Flash \u63a5\u53e3\u6b63\u5fd9&#xff0c;\u53d6\u6307\u4f1a\u5931\u8d25\u3002\u64e6\u9664\/\u7f16\u7a0b\u51fd\u6570\u672c\u8eab\u8981\u653e\u5728 SRAM \u91cc\u8dd1&#xff0c;\u6216\u8005\u4fdd\u8bc1\u4ee3\u7801\u4e0d\u5728\u88ab\u64cd\u4f5c\u7684\u9875\u4e0a\u3002<\/span><\/li>\n<\/ul>\n<h4><span style=\"color:#511b78\">5.7 \u9636\u6bb5\u4e03&#xff1a;\u6e05\u9664\u6807\u5fd7\u2014\u2014\u5199 1 \u6e05 0<\/span><\/h4>\n<p>FLASH-&gt;SR |&#061; FLASH_SR_EOP;          \/\/ \u6e05\u9664\u5b8c\u6210\u6807\u5fd7<br \/>\nFLASH-&gt;SR |&#061; FLASH_SR_PGERR;        \/\/ \u82e5\u6709\u7f16\u7a0b\u9519\u8bef&#xff0c;\u6e05\u9664&#xff08;\u4e5f\u4fbf\u4e8e\u4e0b\u6b21\u5224\u65ad&#xff09;<br \/>\nFLASH-&gt;SR |&#061; FLASH_SR_WRPRTERR;     \/\/ \u82e5\u6709\u5199\u4fdd\u62a4\u9519\u8bef&#xff0c;\u6e05\u9664<\/p>\n<p><span style=\"color:#0d0016\">\u4e3a\u4ec0\u4e48\u5fc5\u987b\u6e05&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0EOP\u3001PGERR\u3001WRPRTERR \u662f\u7c98\u6027\u6807\u5fd7&#xff08;\u7f6e 1 \u540e\u4fdd\u6301&#xff09;\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4e0d\u6e05\u9664\u7684\u8bdd&#xff0c;\u4e0b\u6b21\u5224\u65ad\u4f1a\u8bef\u4ee5\u4e3a&#034;\u51fa\u9519&#034;\u6216&#034;\u5b8c\u6210&#034;\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5199 1 \u6e05 0&#xff0c;\u5199 0 \u65e0\u6548\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">5.8 \u9636\u6bb5\u516b&#xff1a;\u9000\u51fa\u6a21\u5f0f\u2014\u2014\u7528\u5b8c\u5fc5\u6e05<\/span><\/h4>\n<p>FLASH-&gt;CR &amp;&#061; ~FLASH_CR_PER;   \/\/ \u9000\u51fa\u9875\u64e6\u9664\u6a21\u5f0f<br \/>\nFLASH-&gt;CR &amp;&#061; ~FLASH_CR_PG;    \/\/ \u9000\u51fa\u7f16\u7a0b\u6a21\u5f0f<\/p>\n<p><span style=\"color:#0d0016\">\u4e3a\u4ec0\u4e48\u5fc5\u987b\u9000&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6a21\u5f0f\u4f4d\u4e0d\u6e05&#xff0c;\u4e4b\u540e\u4efb\u4f55\u4e00\u6b21\u8bef\u5199 Flash \u5730\u5740\u90fd\u4f1a\u89e6\u53d1\u7f16\u7a0b\/\u64e6\u9664&#xff0c;\u53ef\u80fd\u6bc1\u6389\u6570\u636e\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7528\u5b8c\u5373\u6e05&#xff0c;\u662f Flash \u9a71\u52a8\u7684\u57fa\u672c\u7d20\u517b\u3002<\/span><\/p>\n<h4><span style=\"color:#511b78\">5.9 \u9636\u6bb5\u4e5d&#xff1a;\u52a0\u9501\u2014\u2014\u6700\u540e\u4e00\u9053\u4fdd\u9669<\/span><\/h4>\n<p>FLASH-&gt;CR |&#061; FLASH_CR_LOCK;<\/p>\n<p><span style=\"color:#0d0016\">\u4e3a\u4ec0\u4e48\u6700\u540e\u52a0\u9501&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u52a0\u9501\u540e\u6240\u6709\u6a21\u5f0f\u4f4d\u5199\u4e0d\u8fdb\u53bb&#xff0c;Flash \u56de\u5230&#034;\u53ea\u8bfb&#034;\u72b6\u6001\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6b64\u65f6\u5373\u4f7f\u7a0b\u5e8f\u8dd1\u98de\u4e71\u5199\u5bc4\u5b58\u5668&#xff0c;\u4e5f\u65e0\u6cd5\u89e6\u53d1\u64e6\u9664\/\u7f16\u7a0b\u2014\u2014\u628a&#034;\u80fd\u7834\u574f Flash&#034;\u7684\u7a97\u53e3\u7f29\u5230\u6700\u5c0f\u3002<\/span><\/p>\n<h4 style=\"background-color:transparent\"><span style=\"color:#511b78\">5.10 \u5b8c\u6574\u5e26\u9519\u8bef\u5904\u7406\u7684\u5de5\u4f5c\u6d41\u7a0b\u4ee3\u7801&#xff08;F1 \u5bc4\u5b58\u5668\u7248&#xff09;<\/span><\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"538\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030225712-6ae520c890124.png\" width=\"713\" \/><\/p>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u516d\u3001HAL \u5e93\u64cd\u4f5c&#xff08;\u5bf9\u7167&#xff09;<\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"241\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030225712-6ae520c8b1898.png\" width=\"691\" \/><\/p>\n<h4><span style=\"color:#511b78\">6.1 F1 \u9875\u64e6\u9664<\/span><\/h4>\n<p>FLASH_EraseInitTypeDef erase;<br \/>\nuint32_t page_error &#061; 0;<\/p>\n<p>HAL_FLASH_Unlock();                      \/\/ \u2460 \u89e3\u9501&#xff08;\u5185\u90e8\u5e2e\u4f60\u5199\u4e86 KEYR \u4e24\u5bc6\u94a5&#xff09;<br \/>\nerase.TypeErase   &#061; FLASH_TYPEERASE_PAGES;<br \/>\nerase.PageAddress &#061; 0x08080000;<br \/>\nerase.NbPages     &#061; 1;<br \/>\nHAL_FLASHEx_Erase(&amp;erase, &amp;page_error);  \/\/ \u2461\u2462\u2463\u2464 \u64e6\u9664&#xff08;\u5185\u90e8\u5b8c\u6210\u5168\u90e8\u6d41\u7a0b&#xff09;<br \/>\nHAL_FLASH_Lock();                        \/\/ \u2465 \u52a0\u9501<\/p>\n<h4><span style=\"color:#511b78\">6.2 F4 \u6247\u533a\u64e6\u9664<\/span><\/h4>\n<p>FLASH_EraseInitTypeDef erase;<br \/>\nuint32_t sector_error &#061; 0;<\/p>\n<p>HAL_FLASH_Unlock();<br \/>\nerase.TypeErase    &#061; FLASH_TYPEERASE_SECTORS;<br \/>\nerase.Sector       &#061; FLASH_SECTOR_6;<br \/>\nerase.NbSectors    &#061; 1;<br \/>\nerase.VoltageRange &#061; FLASH_VOLTAGE_RANGE_3;<br \/>\nHAL_FLASHEx_Erase(&amp;erase, &amp;sector_error);<br \/>\nHAL_FLASH_Lock();<\/p>\n<h4><span style=\"color:#511b78\">6.3 \u7f16\u7a0b<\/span><\/h4>\n<p>HAL_FLASH_Unlock();<br \/>\nHAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD, 0x08080000, 0x1234);  \/\/ F1<br \/>\n\/\/ HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD, 0x08080000, 0x12345678); \/\/ F4<br \/>\nHAL_FLASH_Lock();<\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0HAL \u5e93\u5e2e\u4f60\u5305\u597d\u4e86&#034;\u7b49 BSY\u3001\u6e05 EOP\u3001\u6a21\u5f0f\u5207\u6362&#034;\u8fd9\u4e9b\u810f\u6d3b&#xff0c;\u4f46\u5185\u90e8\u6d41\u7a0b\u548c\u6211\u4eec\u624b\u5199\u7684\u5b8c\u5168\u4e00\u81f4\u3002<\/span><\/p>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u4e03\u3001\u9009\u9879\u5b57\u8282&#xff08;Option Bytes&#xff09;<\/span><\/h3>\n<h4><span style=\"color:#511b78\">7.1 \u914d\u7f6e\u9879\u603b\u8868<\/span><\/h4>\n<table>\n<tr><span style=\"color:#0d0016\">\u914d\u7f6e\u9879<\/span><span style=\"color:#0d0016\">\u4f5c\u7528<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">RDP&#xff08;\u8bfb\u4fdd\u62a4&#xff09;<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u9632\u8c03\u8bd5\u5668\/\u7a0b\u5e8f\u8bfb\u51fa Flash<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">WRP&#xff08;\u5199\u4fdd\u62a4&#xff09;<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u9632\u8bef\u64e6\u5199\u6307\u5b9a\u9875<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">IWDG_SW<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u8f6f\u4ef6\u770b\u95e8\u72d7 \/ \u786c\u4ef6\u770b\u95e8\u72d7<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">BOR \u7ea7\u522b<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u6389\u7535\u68c0\u6d4b\u9608\u503c<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">nBOOT1<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u542f\u52a8\u6a21\u5f0f\u914d\u7f6e<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><span style=\"color:#511b78\">7.2 \u786c\u4ef6\u770b\u95e8\u72d7&#xff08;\u4e0e IWDG \u8054\u52a8&#xff09;<\/span><\/h4>\n<p>IWDG_SW &#061; 0&#xff1a;\u786c\u4ef6\u770b\u95e8\u72d7 \u2192 \u4e0a\u7535\u540e IWDG \u81ea\u52a8\u542f\u52a8&#xff0c;\u8f6f\u4ef6\u5173\u4e0d\u6389<br \/>\nIWDG_SW &#061; 1&#xff1a;\u8f6f\u4ef6\u770b\u95e8\u72d7 \u2192 \u9700\u8f6f\u4ef6\u5199 KR&#061;0xCCCC \u542f\u52a8<\/p>\n<h4><span style=\"color:#511b78\">7.3 \u8bfb\u4fdd\u62a4\u7ea7\u522b<\/span><\/h4>\n<table>\n<tr><span style=\"color:#0d0016\">\u7ea7\u522b<\/span><span style=\"color:#0d0016\">\u542b\u4e49<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">Level 0<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u65e0\u4fdd\u62a4<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">Level 1<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u7981\u6b62\u8c03\u8bd5\u53e3\u8bfb Flash&#xff08;SWD\/JTAG&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">Level 2<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u6c38\u4e45\u9501\u5b9a&#xff0c;\u65e0\u6cd5\u964d\u7ea7&#xff08;\u53d8\u7816&#xff09;<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u516b\u3001\u5b9e\u6218&#xff1a;\u6389\u7535\u4fdd\u5b58\u6570\u636e<\/span><\/h3>\n<p>#define SAVE_ADDR  0x08080000   \/\/ \u4fdd\u5b58\u533a&#xff08;Flash \u6700\u540e 1KB \u9875&#xff0c;\u907f\u5f00\u7a0b\u5e8f&#xff09;<\/p>\n<p>uint16_t Flash_ReadData(void)<br \/>\n{<br \/>\n    return *(volatile uint16_t*)SAVE_ADDR;   \/\/ \u8bfb&#xff08;\u65e0\u9700\u89e3\u9501&#xff0c;\u8bfb\u4e0d\u53d7\u9501\u5f71\u54cd&#xff09;<br \/>\n}<\/p>\n<p>void Flash_SaveData(uint16_t data)<br \/>\n{<br \/>\n    \/\/ \u5b8c\u6574 9 \u9636\u6bb5\u6d41\u7a0b&#xff08;\u89c1 5.10 \u5b8c\u6574\u4ee3\u7801&#xff09;<br \/>\n    Flash_WriteHalfWord(SAVE_ADDR, data);<br \/>\n}<\/p>\n<p>int main(void)<br \/>\n{<br \/>\n    uint16_t counter &#061; Flash_ReadData();<br \/>\n    counter&#043;&#043;;<br \/>\n    \/\/ &#8230; \u4e1a\u52a1 &#8230;<br \/>\n    Flash_SaveData(counter);   \/\/ \u6389\u7535\u524d\u4fdd\u5b58<br \/>\n}<\/p>\n<p><span style=\"color:#0d0016\">\u6ce8\u610f&#xff1a;\u4fdd\u5b58\u533a\u5fc5\u987b\u7f16\u8bd1\u94fe\u63a5\u65f6\u6392\u9664&#xff08;\u6539\u5206\u6563\u52a0\u8f7d\/\u94fe\u63a5\u811a\u672c&#xff09;&#xff0c;\u5426\u5219\u7a0b\u5e8f\u4ee3\u7801\u4f1a\u5199\u8fdb\u8fd9\u4e00\u9875\u3002<\/span><\/p>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u4e5d\u3001\u5de5\u7a0b\u5751\u4f4d\u603b\u7ed3<\/span><\/h3>\n<table>\n<tr><span style=\"color:#0d0016\">\u5751<\/span><span style=\"color:#0d0016\">\u539f\u56e0<\/span><span style=\"color:#0d0016\">\u89e3\u51b3<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">\u5199\u524d\u4e0d\u64e6\u9664 \u2192 \u6570\u636e\u4e0d\u5bf9<\/span><\/td>\n<td><span style=\"color:#0d0016\">Flash \u53ea\u80fd 1\u21920<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u5fc5\u987b\u5148\u64e6\u6574\u9875<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u64e6\u9664\u65f6\u5361\u6b7b<\/span><\/td>\n<td><span style=\"color:#0d0016\">Flash \u63a5\u53e3\u5fd9 &#043; \u4e0d\u80fd\u6267\u884c Flash \u5185\u4ee3\u7801<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u7b49 BSY&#xff1b;\u64e6\u5199\u51fd\u6570\u653e SRAM<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u4e2d\u65ad\u91cc\u64cd\u4f5c Flash<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u64e6\u5199\u65f6\u95f4\u957f&#xff0c;\u4e2d\u65ad\u6253\u65ad<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u5173\u4e2d\u65ad\u6216\u907f\u5f00<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">WRPERR<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u76ee\u6807\u533a\u88ab WRP \u5199\u4fdd\u62a4 \/ \u672a\u89e3\u9501<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u68c0\u67e5\u9009\u9879\u5b57\u8282<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">PGERR<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u672a\u64e6\u9664 \/ \u5730\u5740\u672a\u5bf9\u9f50<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u5148\u64e6\u540e\u5199\u3001\u6309\u534a\u5b57\/\u5b57\u5bf9\u9f50<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u6a21\u5f0f\u4f4d\u6ca1\u6e05<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u4e4b\u540e\u8bef\u5199\u5730\u5740\u89e6\u53d1\u7f16\u7a0b<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u7528\u5b8c\u5373\u6e05 PG\/PER<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">Flash \u8d8a\u7528\u8d8a\u6162\/\u574f<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u5bff\u547d ~1 \u4e07\u6b21<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u6a21\u62df EEPROM \u78e8\u635f\u5747\u8861<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u8c03\u8bd5\u6539\u4e86 Flash<\/span><\/td>\n<td><span style=\"color:#0d0016\">SWD \u76f4\u63a5\u5199<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u751f\u4ea7\u524d\u8bbe\u8bfb\u4fdd\u62a4<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u9762\u8bd5\u9898&#xff08;30 \u9053&#xff0c;\u7b54\u6848\u540c\u9875&#xff09;<\/span><\/h3>\n<h4><span style=\"color:#511b78\">\u4e00\u3001\u57fa\u7840\u6982\u5ff5&#xff08;\u539f 20 \u9053\u4fdd\u7559&#xff09;<\/span><\/h4>\n<p><span style=\"color:#b95514\">Q1. Flash \u548c SRAM \u7684\u672c\u8d28\u533a\u522b&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Flash \u975e\u6613\u5931&#xff08;\u6389\u7535\u4fdd\u7559&#xff09;&#xff0c;\u5b58\u4ee3\u7801\u548c\u957f\u671f\u6570\u636e&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0SRAM \u6613\u5931&#xff0c;\u5b58\u8fd0\u884c\u53d8\u91cf\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Flash \u9700\u64e6\u9664\u624d\u80fd\u91cd\u5199\u4e14\u5bff\u547d\u6709\u9650\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q2. \u4e3a\u4ec0\u4e48 Flash \u5199\u4e4b\u524d\u5fc5\u987b\u64e6\u9664&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7f16\u7a0b\u53ea\u80fd\u628a\u4f4d\u4ece 1 \u53d8\u6210 0&#xff0c;\u4e0d\u80fd 0\u21921\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u53ea\u6709\u64e6\u9664\u80fd\u628a\u6574\u9875\u6062\u590d\u6210\u5168 1&#xff0c;\u6240\u4ee5\u4fee\u6539\u5df2\u4e3a 0 \u7684\u4f4d\u5fc5\u987b\u5148\u64e6\u9664\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q3. F1 \u548c F4 \u7684 Flash \u64e6\u9664\u5355\u4f4d\u533a\u522b&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0F1 \u9875\u5f0f 1KB\/\u9875&#xff1b;F4 \u6247\u533a\u5f0f 32KB\/128KB\/256KB\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0F4 \u6539\u4e00\u4e2a\u5b57\u8282\u4e5f\u5f97\u64e6\u6574\u4e2a\u6247\u533a\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q4. \u89e3\u9501 Flash \u4e3a\u4ec0\u4e48\u8981\u5199\u4e24\u628a\u5bc6\u94a5&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u9632\u6b62\u7a0b\u5e8f\u8dd1\u98de\u540e\u8bef\u64e6 Flash\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u8fde\u7eed\u5199\u5bf9 0x45670123 \u548c 0xCDEF89AB \u6982\u7387\u6781\u4f4e&#xff0c;\u51e0\u4e4e\u4e0d\u53ef\u80fd\u8bef\u89e3\u9501\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q5. FLASH_SR \u6709\u54ea\u4e9b\u6807\u5fd7\u4f4d&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0BSY&#xff08;\u5fd9&#xff09;\u3001PGERR&#xff08;\u7f16\u7a0b\u9519\u8bef&#xff09;\u3001WRPRTERR&#xff08;\u5199\u4fdd\u62a4\u9519\u8bef&#xff09;\u3001EOP&#xff08;\u5b8c\u6210&#xff09;\u3002\u64cd\u4f5c\u524d\u67e5 BSY&#xff0c;\u51fa\u9519\u67e5 PGERR\/WRPRTERR&#xff0c;\u5b8c\u6210\u540e\u6e05 EOP\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q6. \u64e6\u9664\u548c\u7f16\u7a0b\u7684\u64cd\u4f5c\u6d41\u7a0b&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u89e3\u9501\u2192\u7b49 BSY&#061;0\u2192\u8bbe CR \u6a21\u5f0f&#xff08;PER\/PG&#xff09;\u2192\u8bbe AR\u2192\u89e6\u53d1&#xff08;\u64e6\u9664\u5199 STRT&#xff0c;\u7f16\u7a0b\u76f4\u63a5\u5199\u5730\u5740&#xff09;\u2192\u7b49 BSY&#061;0\u2192\u6e05 EOP\u2192\u9000\u51fa\u6a21\u5f0f\u2192\u52a0\u9501\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q7. \u64e6\u9664\/\u7f16\u7a0b\u65f6\u4e3a\u4ec0\u4e48\u4e0d\u80fd\u6267\u884c Flash \u5185\u4ee3\u7801&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u64cd\u4f5c\u671f\u95f4 Flash \u63a5\u53e3\u88ab\u5360\u7528&#xff0c;\u65e0\u6cd5\u54cd\u5e94\u53d6\u6307\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0F1 \u4ece Flash \u53d6\u6307\u4f1a\u505c\u987f\u5361\u6b7b\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u89e3\u51b3&#xff1a;\u64e6\u5199\u51fd\u6570\u653e SRAM \u6267\u884c\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q8. \u4ec0\u4e48\u662f\u9009\u9879\u5b57\u8282&#xff1f;\u80fd\u914d\u7f6e\u4ec0\u4e48&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Flash \u72ec\u7acb\u5c0f\u533a\u57df&#xff0c;\u914d\u7f6e\u786c\u4ef6\u884c\u4e3a&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0RDP \u8bfb\u4fdd\u62a4\u3001WRP \u5199\u4fdd\u62a4\u3001IWDG_SW \u786c\u4ef6\u770b\u95e8\u72d7\u3001BOR \u9608\u503c\u3001\u542f\u52a8\u6a21\u5f0f\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4e0a\u7535\u81ea\u52a8\u8bfb\u53d6\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q9. \u786c\u4ef6\u770b\u95e8\u72d7\u9009\u9879\u662f\u4ec0\u4e48\u610f\u601d&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0IWDG_SW&#061;0 \u65f6 IWDG \u4e0a\u7535\u81ea\u52a8\u542f\u52a8&#xff0c;\u65e0\u9700\u8f6f\u4ef6\u5199 0xCCCC&#xff0c;\u8f6f\u4ef6\u4e5f\u5173\u4e0d\u6389\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4fdd\u8bc1\u4ee3\u7801\u6ca1\u8dd1\u8d77\u6765\u72d7\u5df2\u5728\u76d1\u63a7\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q10. \u8bfb\u4fdd\u62a4 RDP \u7684\u4e09\u4e2a\u7ea7\u522b&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Level 0 \u65e0\u4fdd\u62a4&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Level 1 \u7981\u6b62\u8c03\u8bd5\u53e3\u8bfb Flash&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Level 2 \u6c38\u4e45\u9501\u5b9a\u65e0\u6cd5\u964d\u7ea7&#xff08;\u53d8\u7816&#xff09;\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q11. \u6a21\u62df EEPROM \u662f\u4ec0\u4e48&#xff1f;\u4e3a\u4ec0\u4e48\u9700\u8981&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7528 Flash \u6a21\u62df\u6309\u5b57\u8282\u5199\u7684 EEPROM\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u56e0 Flash \u64e6\u9664\u5355\u4f4d\u5927\u3001\u5bff\u547d\u77ed&#xff0c;\u901a\u8fc7&#034;\u5199\u6ee1\u4e00\u9875\u624d\u64e6&#034;\u3001\u78e8\u635f\u5747\u8861\u3001\u65e5\u5fd7\u5f0f\u5199\u5165\u5ef6\u957f\u5bff\u547d\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q12. Flash \u64e6\u5199\u5bff\u547d\u591a\u5c11&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5178\u578b 10,000 \u6b21\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u9891\u7e41\u64e6\u5199\u533a\u57df\u8981\u8bbe\u8ba1\u78e8\u635f\u5747\u8861\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q13. \u6389\u7535\u4fdd\u5b58\u6570\u636e\u7684\u4e00\u822c\u6b65\u9aa4&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u2460 \u89c4\u5212\u7a0b\u5e8f\u7528\u4e0d\u5230\u7684\u9875&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u2461 \u4fdd\u5b58&#xff1a;\u8bfb\u65e7\u503c\u2192\u64e6\u6574\u9875\u2192\u5199\u65b0\u503c&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u2462 \u4e0a\u7535\u4ece\u56fa\u5b9a\u5730\u5740\u8bfb\u56de\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q14. \u4e3a\u4ec0\u4e48\u5199 0xFF \u7b49\u4e8e&#034;\u65e0\u64cd\u4f5c&#034;&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a00xFF \u5168\u4f4d\u4e3a 1&#xff0c;\u7f16\u7a0b\u53ea\u80fd 1\u21920\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5199 0xFF \u4e0d\u6539\u53d8\u4efb\u4f55\u4f4d&#xff0c;\u6240\u4ee5\u5bf9\u5168 1 \u533a\u57df\u5199\u65e0\u6548&#xff0c;\u5fc5\u987b\u5148\u64e6\u9664\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q15. \u7f16\u7a0b\u5730\u5740\u4e3a\u4ec0\u4e48\u8981\u5bf9\u9f50&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0F1 \u6309\u534a\u5b57&#xff08;16bit&#xff09;\u5bf9\u9f50&#xff0c;F4 \u6309\u5b57&#xff08;32bit&#xff09;\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u672a\u5bf9\u9f50\u89e6\u53d1 PGERR\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q16. \u9884\u53d6\u7f13\u51b2\u548c\u7b49\u5f85\u72b6\u6001\u662f\u4ec0\u4e48&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0CPU \u4e3b\u9891\u9ad8\u65f6 Flash \u8bfb\u53d6\u8ddf\u4e0d\u4e0a&#xff0c;\u9700\u63d2\u7b49\u5f85\u5468\u671f&#xff08;WS&#xff09;\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u9884\u53d6\u7f13\u51b2\u63d0\u524d\u53d6\u6307\u51cf\u5c11\u7b49\u5f85\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ACR \u914d\u7f6e\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q17. \u7a0b\u5e8f\u80fd\u76f4\u63a5\u4ece Flash \u6267\u884c\u5417&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u80fd\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Flash \u5728\u7edf\u4e00\u7f16\u5740\u7a7a\u95f4&#xff08;0x08000000&#xff09;&#xff0c;CPU \u7ecf ICode \u603b\u7ebf\u76f4\u63a5\u53d6\u6307&#xff08;XIP&#xff09;\u3002\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6bd4\u5916\u90e8 SPI Flash \u5feb\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q18. OTP \u533a\u57df\u662f\u4ec0\u4e48&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4e00\u6b21\u6027\u53ef\u7f16\u7a0b\u533a&#xff0c;\u53ea\u80fd\u5199\u4e00\u6b21\u4e0d\u53ef\u64e6\u9664\u3002\u5b58\u5e8f\u5217\u53f7\u3001MAC\u3001\u5bc6\u94a5\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q19. \u624b\u6495&#xff1a;\u89e3\u9501\u548c\u52a0\u9501\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p>void Flash_Unlock(void) {<br \/>\n    FLASH-&gt;KEYR &#061; 0x45670123;<br \/>\n    FLASH-&gt;KEYR &#061; 0xCDEF89AB;<br \/>\n}<br \/>\nvoid Flash_Lock(void) {<br \/>\n    FLASH-&gt;CR |&#061; FLASH_CR_LOCK;<br \/>\n}<\/p>\n<h4><span style=\"color:#511b78\">\u4e8c\u3001\u5bc4\u5b58\u5668\u4e13\u9898<\/span><\/h4>\n<p><span style=\"color:#b95514\">Q21. FLASH_ACR \u7684 LATENCY \u662f\u5e72\u4ec0\u4e48\u7684&#xff1f;F103 \u5728 72MHz \u4e0b\u5e94\u8bbe\u591a\u5c11&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Flash \u8bfb\u53d6\u7b49\u5f85\u72b6\u6001\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0CPU \u4e3b\u9891\u9ad8\u8fc7 Flash \u901f\u5ea6\u65f6\u63d2\u5165\u7b49\u5f85\u5468\u671f\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0F103 \u5728 72MHz&#xff08;2.7~3.6V&#xff09;\u4e0b\u5e94\u8bbe 2 \u4e2a\u7b49\u5f85\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u8bbe\u9519\u4f1a\u5bfc\u81f4\u53d6\u6307\u9519\u4e71\u3001\u7a0b\u5e8f\u8dd1\u98de\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q22. FLASH_CR \u7684 PG\u3001PER\u3001MER \u5206\u522b\u662f\u4ec0\u4e48&#xff1f;\u80fd\u540c\u65f6\u7f6e\u4f4d\u5417&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0PG&#061;\u7f16\u7a0b\u6a21\u5f0f\u3001PER&#061;\u9875\u64e6\u9664\u6a21\u5f0f\u3001MER&#061;\u6574\u7247\u64e6\u9664\u6a21\u5f0f\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4e09\u4e2a\u4e92\u65a5&#xff0c;\u4e00\u6b21\u53ea\u80fd\u9009\u4e00\u4e2a&#xff0c;\u7528\u5b8c\u5fc5\u987b\u6e05\u9664\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q23. STRT \u4f4d\u662f\u4ec0\u4e48&#xff1f;\u4e3a\u4ec0\u4e48\u7f16\u7a0b\u4e0d\u9700\u8981\u5b83&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0STRT \u662f\u64e6\u9664\u542f\u52a8\u4f4d&#xff0c;\u5199 1 \u542f\u52a8\u5f53\u524d\u6a21\u5f0f\u7684\u64e6\u9664\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7f16\u7a0b\u4e0d\u9700\u8981&#xff0c;\u56e0\u4e3a\u7f16\u7a0b\u7684\u89e6\u53d1\u6761\u4ef6\u662f&#034;\u5411 Flash \u5730\u5740\u5199\u6570\u636e&#034;\u8fd9\u4e2a\u603b\u7ebf\u52a8\u4f5c\u672c\u8eab\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q24. LOCK \u4f4d\u4e3a\u4ec0\u4e48\u53ea\u80fd\u5199 1 \u4e0d\u80fd\u5199 0&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0 \u00a0 \u00a0 \u00a0 \u4e0a\u9501\u5bb9\u6613&#xff0c;\u89e3\u9501\u5fc5\u987b\u8d70 KEYR \u4e24\u5bc6\u94a5\u6d41\u7a0b\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u9632\u6b62\u7a0b\u5e8f\u8dd1\u98de\u540e\u76f4\u63a5\u5199 LOCK&#061;0 \u89e3\u9501\u7136\u540e\u4e71\u64e6\u5199\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q25. FLASH_AR \u4ec0\u4e48\u65f6\u5019\u7528&#xff1f;\u4ec0\u4e48\u65f6\u5019\u4e0d\u7528&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u9875\u64e6\u9664\u65f6\u7528&#xff08;\u6307\u5b9a\u76ee\u6807\u9875&#xff0c;\u9700\u9875\u5bf9\u9f50&#xff09;&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6574\u7247\u64e6\u9664\u548c\u7f16\u7a0b\u4e0d\u7528\u2014\u2014\u6574\u7247\u64e6\u9664\u4e0d\u9700\u8981\u5730\u5740&#xff0c;\u7f16\u7a0b\u5730\u5740\u5c31\u662f\u5199\u6570\u636e\u7684\u5730\u5740\u672c\u8eab\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q26. EOP \u6807\u5fd7\u4e3a\u4ec0\u4e48\u590d\u4f4d\u503c\u662f 1&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u82af\u7247\u8bbe\u8ba1\u8ba9&#034;\u672a\u53d1\u751f\u64cd\u4f5c&#034;\u4e5f\u8868\u73b0\u4e3a\u5b8c\u6210\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u771f\u6b63\u5224\u65ad\u64cd\u4f5c\u5b8c\u6210\u8981\u770b BSY \u4ece 1 \u53d8 0&#xff0c;EOP \u53ea\u4f5c\u53ef\u9009\u786e\u8ba4\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7528\u5b8c\u5199 1 \u6e05\u9664\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q27. OPTKEYR \u7684\u5bc6\u94a5\u662f\u4ec0\u4e48&#xff1f;\u4ec0\u4e48\u65f6\u5019\u7528&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a00x08192A3B \u548c 0x4C5D6E7F\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4fee\u6539\u9009\u9879\u5b57\u8282&#xff08;\u8bfb\u4fdd\u62a4\u3001\u5199\u4fdd\u62a4\u3001\u786c\u4ef6\u770b\u95e8\u72d7&#xff09;\u524d\u5fc5\u987b\u5148\u89e3\u9501 OPTKEYR\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q28. OBR \u5bc4\u5b58\u5668\u80fd\u8bfb\u51fa\u4ec0\u4e48&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u53ea\u8bfb&#xff0c;\u53cd\u6620\u5f53\u524d\u9009\u9879\u5b57\u8282\u72b6\u6001&#xff1a;OPTERR \u6821\u9a8c\u9519\u8bef\u3001RDPRT \u8bfb\u4fdd\u62a4\u7ea7\u522b\u3001IWDG_SW \u770b\u95e8\u72d7\u6a21\u5f0f\u3001BOR_LEV \u6389\u7535\u9608\u503c\u3001nBOOT1 \u542f\u52a8\u914d\u7f6e\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q29. WRPR \u5199\u4fdd\u62a4\u5bc4\u5b58\u5668\u548c\u9009\u9879\u5b57\u8282 WRP \u4ec0\u4e48\u5173\u7cfb&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0WRPR \u662f\u53ea\u8bfb\u53cd\u6620\u4f4d&#xff0c;\u771f\u6b63\u7684\u5199\u4fdd\u62a4\u914d\u7f6e\u5728\u9009\u9879\u5b57\u8282\u91cc\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0WRPR \u6bcf\u4e00\u4f4d\u5bf9\u5e94 4 \u9875&#xff08;F1&#xff09;&#xff0c;1&#061;\u8be5\u7ec4\u88ab\u5199\u4fdd\u62a4&#xff0c;\u4e0d\u53ef\u64e6\u5199\u4f46\u53ef\u8bfb\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q30. \u624b\u6495&#xff1a;\u8bf4\u51fa Flash \u89e3\u9501\u5931\u8d25\u540e\u5982\u4f55\u6062\u590d\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u89e3\u9501\u5931\u8d25&#xff08;\u5bc6\u94a5\u5199\u9519&#xff09;\u4e0d\u4f1a\u635f\u574f Flash&#xff0c;\u53ea\u662f\u4fdd\u6301\u9501\u5b9a\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u53ea\u9700\u91cd\u65b0\u6309\u987a\u5e8f\u5199\u4e24\u628a\u5bc6\u94a5\u5373\u53ef&#xff0c;\u4e0d\u9700\u8981\u590d\u4f4d\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u82e5\u64cd\u4f5c\u4e2d\u4ea7\u751f PGERR\/WRPRTERR&#xff0c;\u5148\u6e05\u6807\u5fd7\u518d\u91cd\u65b0\u8d70\u6d41\u7a0b\u3002<\/span><\/p>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u5b8c\u6574\u5b9e\u73b0EEPROM&#xff08;F103 \u5bc4\u5b58\u5668\u7248&#xff09;<\/span><\/h3>\n<h4><span style=\"color:#511b78\">\u00a0\u5934\u6587\u4ef6 eeprom_sim.h<\/span><\/h4>\n<p>#ifndef __EEPROM_SIM_H<br \/>\n#define __EEPROM_SIM_H<\/p>\n<p>#include &lt;stdint.h&gt;<\/p>\n<p>\/* \u53c2\u6570\u914d\u7f6e *\/<br \/>\n#define EEPROM_PAGE_SIZE   1024          \/* F103 \u4e00\u9875 1KB *\/<br \/>\n#define EEPROM_PAGE0       0x08080000    \/* \u98750&#xff08;\u907f\u5f00\u7a0b\u5e8f\u533a&#xff0c;\u9700\u94fe\u63a5\u6392\u9664&#xff09; *\/<br \/>\n#define EEPROM_PAGE1       0x08080400    \/* \u98751 *\/<br \/>\n#define EEPROM_SLOT_SIZE   4             \/* \u6bcf\u6761\u8bb0\u5f55 4 \u5b57\u8282&#xff1a;\u6570\u636e(2B)&#043;\u72b6\u6001(2B) *\/<br \/>\n#define EEPROM_SLOTS       (EEPROM_PAGE_SIZE \/ EEPROM_SLOT_SIZE)  \/* \u6bcf\u9875 256 \u69fd *\/<\/p>\n<p>\/* \u72b6\u6001\u5b57\u8282 *\/<br \/>\n#define STATUS_EMPTY       0xFFFF        \/* \u7a7a\u69fd&#xff08;\u64e6\u9664\u6001&#xff09; *\/<br \/>\n#define STATUS_VALID       0xAAAA        \/* \u6709\u6548\u8bb0\u5f55 *\/<br \/>\n#define STATUS_INVALID     0x0000        \/* \u65e0\u6548\u8bb0\u5f55 *\/<\/p>\n<p>\/* \u5bf9\u5916\u63a5\u53e3 *\/<br \/>\nvoid     EEPROM_Init(void);<br \/>\nuint16_t EEPROM_Read(uint16_t default_val);<br \/>\nvoid     EEPROM_Write(uint16_t data);<\/p>\n<p>#endif<\/p>\n<h4><span style=\"color:#511b78\">\u00a0\u5e95\u5c42 Flash \u9a71\u52a8<\/span><\/h4>\n<p>\/* Flash \u5e95\u5c42&#xff1a;\u89e3\u9501\u3001\u64e6\u9875\u3001\u5199\u534a\u5b57 *\/<br \/>\nstatic void Flash_Unlock(void)<br \/>\n{<br \/>\n    FLASH-&gt;KEYR &#061; 0x45670123;<br \/>\n    FLASH-&gt;KEYR &#061; 0xCDEF89AB;<br \/>\n}<\/p>\n<p>static void Flash_Lock(void)<br \/>\n{<br \/>\n    FLASH-&gt;CR |&#061; FLASH_CR_LOCK;<br \/>\n}<\/p>\n<p>\/* \u64e6\u9664\u4e00\u9875 *\/<br \/>\nstatic void Flash_ErasePage(uint32_t page_addr)<br \/>\n{<br \/>\n    while(FLASH-&gt;SR &amp; FLASH_SR_BSY);<br \/>\n    FLASH-&gt;CR |&#061; FLASH_CR_PER;            \/* \u9875\u64e6\u9664\u6a21\u5f0f *\/<br \/>\n    FLASH-&gt;AR  &#061; page_addr;               \/* \u76ee\u6807\u9875 *\/<br \/>\n    FLASH-&gt;CR |&#061; FLASH_CR_STRT;           \/* \u542f\u52a8 *\/<br \/>\n    while(FLASH-&gt;SR &amp; FLASH_SR_BSY);<br \/>\n    FLASH-&gt;SR |&#061; FLASH_SR_EOP;<br \/>\n    FLASH-&gt;CR &amp;&#061; ~FLASH_CR_PER;           \/* \u9000\u51fa\u6a21\u5f0f *\/<br \/>\n}<\/p>\n<p>\/* \u7f16\u7a0b\u4e00\u4e2a\u534a\u5b57 *\/<br \/>\nstatic void Flash_ProgramHalfWord(uint32_t addr, uint16_t data)<br \/>\n{<br \/>\n    while(FLASH-&gt;SR &amp; FLASH_SR_BSY);<br \/>\n    FLASH-&gt;CR |&#061; FLASH_CR_PG;             \/* \u7f16\u7a0b\u6a21\u5f0f *\/<br \/>\n    *(volatile uint16_t*)addr &#061; data;     \/* \u5199\u6570\u636e\u5373\u89e6\u53d1 *\/<br \/>\n    while(FLASH-&gt;SR &amp; FLASH_SR_BSY);<br \/>\n    FLASH-&gt;SR |&#061; FLASH_SR_EOP;<br \/>\n    FLASH-&gt;CR &amp;&#061; ~FLASH_CR_PG;            \/* \u9000\u51fa\u6a21\u5f0f *\/<br \/>\n}<\/p>\n<h4>\u00a0<span style=\"color:#511b78\">\u6a21\u62df EEPROM \u6838\u5fc3\u5b9e\u73b0 eeprom_sim.c<\/span><\/h4>\n<p>#include &#034;eeprom_sim.h&#034;<br \/>\n#include &#034;stm32f10x.h&#034;   \/* \u6309\u4f60\u7684\u5de5\u7a0b\u6539\u5934\u6587\u4ef6 *\/<\/p>\n<p>static uint32_t g_cur_page;     \/* \u5f53\u524d\u5199\u9875 *\/<br \/>\nstatic uint16_t g_last_valid;   \/* \u7f13\u5b58\u6700\u65b0\u503c&#xff08;\u52a0\u901f\u8bfb\u53d6 &#043; \u7ffb\u9875\u7528&#xff09; *\/<\/p>\n<p>\/* &#8212;&#8212;&#8212;- \u69fd\u4f4d\u8bbf\u95ee\u8f85\u52a9 &#8212;&#8212;&#8212;- *\/<br \/>\nstatic uint16_t slot_data(uint32_t page, uint16_t idx)<br \/>\n{<br \/>\n    return *(volatile uint16_t*)(page &#043; idx * EEPROM_SLOT_SIZE);<br \/>\n}<\/p>\n<p>static uint16_t slot_status(uint32_t page, uint16_t idx)<br \/>\n{<br \/>\n    return *(volatile uint16_t*)(page &#043; idx * EEPROM_SLOT_SIZE &#043; 2);<br \/>\n}<\/p>\n<p>\/* \u5199\u69fd\u4f4d\u6570\u636e&#xff08;\u6b64\u65f6\u72b6\u6001\u8fd8\u662f\u7a7a&#xff0c;\u8bfb\u4e0d\u5230&#xff09; *\/<br \/>\nstatic void slot_write_data(uint32_t page, uint16_t idx, uint16_t data)<br \/>\n{<br \/>\n    Flash_ProgramHalfWord(page &#043; idx * EEPROM_SLOT_SIZE, data);<br \/>\n}<\/p>\n<p>\/* \u6570\u636e\u5199\u5b8c\u540e&#xff0c;\u628a\u72b6\u6001 0xFFFF \u2192 0xAAAA&#xff08;\u6807\u8bb0\u6709\u6548&#xff0c;1\u21920 \u65e0\u9700\u64e6\u9664&#xff09; *\/<br \/>\nstatic void slot_mark_valid(uint32_t page, uint16_t idx)<br \/>\n{<br \/>\n    Flash_ProgramHalfWord(page &#043; idx * EEPROM_SLOT_SIZE &#043; 2, STATUS_VALID);<br \/>\n}<\/p>\n<p>\/* &#8212;&#8212;&#8212;- \u6838\u5fc3\u67e5\u8be2&#xff1a;\u4ece\u9875\u5c3e\u5411\u524d\u627e\u6700\u540e\u4e00\u6761\u6709\u6548\u8bb0\u5f55 &#8212;&#8212;&#8212;- *\/<br \/>\nstatic int find_last_valid(uint32_t page, uint16_t *idx, uint16_t *data)<br \/>\n{<br \/>\n    int i;<br \/>\n    for (i &#061; EEPROM_SLOTS &#8211; 1; i &gt;&#061; 0; i&#8211;) {<br \/>\n        if (slot_status(page, i) &#061;&#061; STATUS_VALID) {<br \/>\n            *idx  &#061; (uint16_t)i;<br \/>\n            *data &#061; slot_data(page, i);<br \/>\n            return 1;<br \/>\n        }<br \/>\n    }<br \/>\n    return 0;   \/* \u9875\u91cc\u6ca1\u6709\u6709\u6548\u8bb0\u5f55 *\/<br \/>\n}<\/p>\n<p>\/* \u627e\u7b2c\u4e00\u4e2a\u7a7a\u69fd&#xff1b;\u9875\u6ee1\u8fd4\u56de -1 *\/<br \/>\nstatic int find_first_empty(uint32_t page)<br \/>\n{<br \/>\n    int i;<br \/>\n    for (i &#061; 0; i &lt; EEPROM_SLOTS; i&#043;&#043;) {<br \/>\n        if (slot_status(page, i) &#061;&#061; STATUS_EMPTY)<br \/>\n            return i;<br \/>\n    }<br \/>\n    return -1;<br \/>\n}<\/p>\n<p>\/* &#8212;&#8212;&#8212;- \u521d\u59cb\u5316&#xff1a;\u626b\u63cf\u4e24\u9875&#xff0c;\u786e\u5b9a\u5f53\u524d\u5199\u9875\u548c\u6700\u65b0\u503c &#8212;&#8212;&#8212;- *\/<br \/>\nvoid EEPROM_Init(void)<br \/>\n{<br \/>\n    uint16_t d0, d1, i0, i1;<br \/>\n    int f0 &#061; find_last_valid(EEPROM_PAGE0, &amp;i0, &amp;d0);<br \/>\n    int f1 &#061; find_last_valid(EEPROM_PAGE1, &amp;i1, &amp;d1);<\/p>\n<p>    if (!f0 &amp;&amp; !f1) {<br \/>\n        \/* \u5168\u65b0\u82af\u7247&#xff1a;\u4e24\u9875\u90fd\u7a7a&#xff0c;\u7528\u98750 *\/<br \/>\n        g_cur_page   &#061; EEPROM_PAGE0;<br \/>\n        g_last_valid &#061; 0;<br \/>\n    } else if (f0 &amp;&amp; !f1) {<br \/>\n        g_cur_page   &#061; EEPROM_PAGE0;<br \/>\n        g_last_valid &#061; d0;<br \/>\n    } else if (!f0 &amp;&amp; f1) {<br \/>\n        g_cur_page   &#061; EEPROM_PAGE1;<br \/>\n        g_last_valid &#061; d1;<br \/>\n    } else {<br \/>\n        \/* \u4e24\u9875\u90fd\u6709\u6709\u6548\u8bb0\u5f55&#xff1a;\u53d6&#034;\u69fd\u5e8f\u53f7\u66f4\u5927&#034;\u7684\u4e00\u9875&#xff08;\u66f4\u65b0\u7684\u65e5\u5fd7&#xff09; *\/<br \/>\n        if (i0 &gt;&#061; i1) {<br \/>\n            g_cur_page   &#061; EEPROM_PAGE0;<br \/>\n            g_last_valid &#061; d0;<br \/>\n        } else {<br \/>\n            g_cur_page   &#061; EEPROM_PAGE1;<br \/>\n            g_last_valid &#061; d1;<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>\/* &#8212;&#8212;&#8212;- \u8bfb\u53d6&#xff1a;\u4f18\u5148\u5f53\u524d\u9875&#xff0c;\u627e\u4e0d\u5230\u518d\u67e5\u53e6\u4e00\u9875 &#8212;&#8212;&#8212;- *\/<br \/>\nuint16_t EEPROM_Read(uint16_t default_val)<br \/>\n{<br \/>\n    uint16_t data, idx;<br \/>\n    if (find_last_valid(g_cur_page, &amp;idx, &amp;data))<br \/>\n        return data;<br \/>\n    \/* \u5f53\u524d\u9875\u65e0\u6709\u6548\u8bb0\u5f55&#xff08;\u53ef\u80fd\u4e0a\u6b21\u7ffb\u9875\u9014\u4e2d\u6389\u7535&#xff09;&#xff0c;\u67e5\u53e6\u4e00\u9875 *\/<br \/>\n    {<br \/>\n        uint32_t other &#061; (g_cur_page &#061;&#061; EEPROM_PAGE0) ? EEPROM_PAGE1 : EEPROM_PAGE0;<br \/>\n        if (find_last_valid(other, &amp;idx, &amp;data))<br \/>\n            return data;<br \/>\n    }<br \/>\n    return default_val;   \/* \u4ece\u672a\u5199\u8fc7 *\/<br \/>\n}<\/p>\n<p>\/* &#8212;&#8212;&#8212;- \u5199\u5165 &#8212;&#8212;&#8212;- *\/<br \/>\nvoid EEPROM_Write(uint16_t data)<br \/>\n{<br \/>\n    int idx &#061; find_first_empty(g_cur_page);   \/* \u627e\u5f53\u524d\u9875\u7a7a\u69fd *\/<\/p>\n<p>    if (idx &lt; 0) {<br \/>\n        \/* \u9875\u6ee1 \u2192 \u9875\u7ffb\u8f6c *\/<br \/>\n        uint32_t other &#061; (g_cur_page &#061;&#061; EEPROM_PAGE0) ? EEPROM_PAGE1 : EEPROM_PAGE0;<\/p>\n<p>        \/* \u2460 \u5148\u64e6\u5907\u7528\u9875 *\/<br \/>\n        Flash_Unlock();<br \/>\n        Flash_ErasePage(other);<br \/>\n        Flash_Lock();<\/p>\n<p>        \/* \u2461 \u628a\u6700\u65b0\u503c\u5199\u5165\u65b0\u9875\u69fd0&#xff08;\u5148\u6570\u636e\u540e\u72b6\u6001&#xff0c;\u6389\u7535\u5b89\u5168&#xff09; *\/<br \/>\n        Flash_Unlock();<br \/>\n        slot_write_data(other, 0, g_last_valid);<br \/>\n        slot_mark_valid(other, 0);<br \/>\n        Flash_Lock();<\/p>\n<p>        \/* \u2462 \u518d\u64e6\u65e7\u9875&#xff08;\u6b64\u65f6\u6700\u65b0\u503c\u5df2\u5728 other \u9875&#xff0c;\u65e7\u9875\u53ef\u5b89\u5168\u64e6\u9664&#xff09; *\/<br \/>\n        Flash_Unlock();<br \/>\n        Flash_ErasePage(g_cur_page);<br \/>\n        Flash_Lock();<\/p>\n<p>        \/* \u2463 \u5207\u6362\u5f53\u524d\u5199\u9875&#xff0c;\u65b0\u9875\u69fd0\u5df2\u88ab\u5360\u7528&#xff0c;\u4e0b\u4e00\u4e2a\u7a7a\u69fd\u662f\u69fd1 *\/<br \/>\n        g_cur_page &#061; other;<br \/>\n        idx &#061; 1;<br \/>\n    }<\/p>\n<p>    \/* \u5199\u5165\u65b0\u8bb0\u5f55&#xff1a;\u5148\u5199\u6570\u636e&#xff0c;\u518d\u6807\u6709\u6548 *\/<br \/>\n    Flash_Unlock();<br \/>\n    slot_write_data(g_cur_page, (uint16_t)idx, data);<br \/>\n    slot_mark_valid(g_cur_page, (uint16_t)idx);<br \/>\n    Flash_Lock();<\/p>\n<p>    g_last_valid &#061; data;   \/* \u66f4\u65b0\u7f13\u5b58 *\/<br \/>\n}<\/p>\n<h4><span style=\"color:#511b78\">\u6d4b\u8bd5 main.c<\/span><\/h4>\n<p>#include &#034;eeprom_sim.h&#034;<br \/>\n#include &lt;stdio.h&gt;<\/p>\n<p>int main(void)<br \/>\n{<br \/>\n    uint16_t boot_count;<\/p>\n<p>    EEPROM_Init();                        \/* \u2460 \u521d\u59cb\u5316&#xff08;\u626b\u63cf\u4e24\u9875&#xff09; *\/<\/p>\n<p>    boot_count &#061; EEPROM_Read(0);          \/* \u2461 \u8bfb\u56de\u4e0a\u6b21\u7684\u8ba1\u6570\u503c *\/<br \/>\n    boot_count&#043;&#043;;                         \/* \u2462 \u672c\u6b21\u5f00\u673a &#043;1 *\/<br \/>\n    printf(&#034;boot count: %d\\\\n&#034;, boot_count);<\/p>\n<p>    EEPROM_Write(boot_count);             \/* \u2463 \u4fdd\u5b58&#xff08;\u5199\u4e00\u4e2a\u65b0\u69fd&#xff09; *\/<\/p>\n<p>    while(1);<br \/>\n}<\/p>\n<hr \/>\n<h2><span style=\"color:#1a439c\">\u4e3a\u4ec0\u4e48 Flash \u6709\u534a\u5b57\u3001\u5355\u5b57\u3001\u53cc\u5b57\u5199\u5165<\/span><\/h2>\n<p><span style=\"color:#0d0016\">\u4e00\u53e5\u8bdd\u7b54\u6848&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#034;\u6700\u5c0f\u5199\u5165\u5355\u4f4d&#034;\u7531 Flash \u5b58\u50a8\u9635\u5217\u7684\u7269\u7406\u7ed3\u6784\u51b3\u5b9a\u2014\u2014\u7f16\u7a0b\u4e0d\u662f&#034;\u5199\u4e00\u4e2a\u5b57\u8282&#034;&#xff0c;\u800c\u662f&#034;\u6cbf\u4e00\u884c\u5b57\u7ebf\u3001\u7ed9\u6574\u884c\u5355\u5143\u5e76\u884c\u6ce8\u5165\u7535\u8377&#034;\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u8fd9\u884c\u6709\u591a\u5bbd&#xff0c;\u6700\u5c0f\u7f16\u7a0b\u5355\u4f4d\u5c31\u662f\u591a\u5bbd\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0F1 \u7684\u7f16\u7a0b\u884c\u662f 16bit&#xff0c;\u6240\u4ee5\u53ea\u80fd\u534a\u5b57\u5199&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0F4 \u7684\u884c\u662f 32bit&#xff0c;\u6240\u4ee5\u662f\u5b57\u5199&#xff1b;F7\/H7 \u7684\u884c\u66f4\u5bbd&#xff0c;\u652f\u6301 64bit \u53cc\u5b57\u3002<\/span><\/p>\n<h3><span style=\"color:#511b78\">\u4e00\u3001\u5148\u5206\u6e05\u4e09\u4e2a\u7c92\u5ea6<\/span><\/h3>\n<table>\n<tr><span style=\"color:#0d0016\">\u64cd\u4f5c<\/span><span style=\"color:#0d0016\">\u672c\u8d28<\/span><span style=\"color:#0d0016\">F1 (F103)<\/span><span style=\"color:#0d0016\">F4 (F407)<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">\u8bfb\u53d6<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u8bd1\u7801\u5bfb\u5740&#xff0c;\u8bfb\u4efb\u610f\u5b57\u8282<\/span><\/td>\n<td style=\"width:98px\"><span style=\"color:#0d0016\">\u6309\u5b57\u8282\u8bfb<\/span><\/td>\n<td style=\"width:277px\"><span style=\"color:#0d0016\">\u6309\u5b57\u8282\u8bfb<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u7f16\u7a0b&#xff08;\u5199&#xff09;<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u5411\u6d6e\u6805\u6ce8\u5165\u7535\u8377<\/span><\/td>\n<td style=\"width:98px\"><span style=\"color:#0d0016\">\u534a\u5b57 16bit<\/span><\/td>\n<td style=\"width:277px\"><span style=\"color:#0d0016\">\u5b57 32bit&#xff08;\u5927\u5bb9\u91cf\u578b\u53f7\u652f\u6301\u53cc\u5b57 64bit&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u64e6\u9664<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u4ece\u6d6e\u6805\u62bd\u53d6\u7535\u8377<\/span><\/td>\n<td style=\"width:98px\"><span style=\"color:#0d0016\">\u6574\u9875 1KB<\/span><\/td>\n<td style=\"width:277px\"><span style=\"color:#0d0016\">\u6574\u6247\u533a 32KB&#043;<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#0d0016\">\u8bfb\u53ef\u4ee5\u6309\u5b57\u8282&#xff0c;\u5199\u4e0d\u884c&#xff0c;\u64e6\u9664\u66f4\u662f\u4e00\u6574\u5757\u2014\u2014\u56e0\u4e3a\u4e09\u8005\u662f\u5b8c\u5168\u4e0d\u540c\u7684\u7269\u7406\u8fc7\u7a0b\u3002<\/span><\/p>\n<hr \/>\n<h3><span style=\"color:#511b78\">\u4e8c\u3001\u7f16\u7a0b\u6700\u5c0f\u5355\u4f4d\u7684\u7269\u7406\u672c\u8d28<\/span><\/h3>\n<p><span style=\"color:#0d0016\">Flash \u5b58\u50a8\u5355\u5143\u662f\u6d6e\u6805\u6676\u4f53\u7ba1&#xff0c;\u9635\u5217\u7ec4\u7ec7\u662f&#034;\u5b57\u7ebf \u00d7 \u4f4d\u7ebf&#034;&#xff1a;<\/span><\/p>\n<p>Flash \u5b58\u50a8\u9635\u5217&#xff08;\u793a\u610f&#xff0c;\u6bcf\u884c &#061; \u4e00\u6b21\u7f16\u7a0b\u64cd\u4f5c\u7684\u5355\u4f4d&#xff09;<\/p>\n<p>       \u4f4d\u7ebf0   \u4f4d\u7ebf1   \u4f4d\u7ebf2  &#8230;  \u4f4d\u7ebf15   \u2190 \u4e00&#034;\u884c&#034;\u5171 16 \u6761\u4f4d\u7ebf&#xff08;F1 \u534a\u5b57&#xff09;<br \/>\n         \u2502       \u2502       \u2502          \u2502<br \/>\n\u5b57\u7ebf0  \u2500\u2500\u253c\u2500[\u5355\u5143]\u2500\u253c\u2500[\u5355\u5143]\u2500\u253c\u2500\u2500[\u5355\u5143]\u2500\u2500\u253c\u2500\u2500  \u2500\u2500\u25ba \u7f16\u7a0b\u65f6\u6574\u884c\u4e00\u8d77\u6ce8\u5165\u7535\u8377<br \/>\n\u5b57\u7ebf1  \u2500\u2500\u253c\u2500[\u5355\u5143]\u2500\u253c\u2500[\u5355\u5143]\u2500\u253c\u2500\u2500[\u5355\u5143]\u2500\u2500\u253c\u2500\u2500<br \/>\n  \u2502      \u2502       \u2502       \u2502          \u2502<\/p>\n<p><span style=\"color:#0d0016\">\u5173\u952e\u673a\u5236&#xff1a;<\/span><\/p>\n<li><span style=\"color:#0d0016\">\u7f16\u7a0b &#061; \u5728\u5b57\u7ebf\u4e0a\u52a0\u9ad8\u538b&#xff0c;\u540c\u65f6\u628a\u6570\u636e\u9501\u5b58\u5230\u8fd9\u4e00\u884c\u7684**\u7f16\u7a0b\u7f13\u51b2\u5668&#xff08;write buffer\/latch&#xff09;**\u91cc&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u7f13\u51b2\u5668\u91cc\u662f 1 \u7684\u4f4d\u4e0d\u6ce8\u5165\u7535\u8377&#xff08;\u4fdd\u6301\u6d6e\u6805\u7a7a&#xff09;&#xff0c;\u662f 0 \u7684\u4f4d\u6ce8\u5165\u7535\u8377&#xff08;\u6d6e\u6805\u5145\u7535 \u2192 \u9608\u503c\u7535\u538b\u5347\u9ad8 \u2192 \u8bfb\u51fa\u4e3a 0&#xff09;&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u6574\u884c\u5355\u5143\u662f\u4e00\u6b21\u6027\u5e76\u884c\u64cd\u4f5c\u7684\u2014\u2014\u786c\u4ef6\u53ea\u63d0\u4f9b&#034;\u4e00\u884c&#034;\u7684\u7535\u8377\u6ce8\u5165\u901a\u8def&#xff0c;\u8fd9\u5c31\u662f\u6700\u5c0f\u7f16\u7a0b\u5355\u4f4d&#xff1b;<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u8fd9\u4e00\u884c\u8fde\u4e86\u591a\u5c11\u6761\u4f4d\u7ebf&#xff0c;\u6700\u5c0f\u5355\u4f4d\u5c31\u662f\u591a\u5c11 bit\u3002<\/span><\/li>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"468\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030225712-6ae520c8cb802.png\" width=\"716\" \/><\/p>\n<hr \/>\n<h3><span style=\"color:#511b78\">\u4e09\u3001\u4e3a\u4ec0\u4e48\u4e0d\u540c\u7cfb\u5217\u4e0d\u4e00\u6837\u5bbd<\/span><\/h3>\n<table>\n<tr><span style=\"color:#0d0016\">\u56e0\u7d20<\/span><span style=\"color:#0d0016\">F1 (F103)<\/span><span style=\"color:#0d0016\">F4 (F407)<\/span><span style=\"color:#0d0016\">F7\/H7<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">\u5185\u6838<\/span><\/td>\n<td><span style=\"color:#0d0016\">Cortex-M3&#xff08;32bit&#xff09;<\/span><\/td>\n<td><span style=\"color:#0d0016\">Cortex-M4&#xff08;32bit&#xff09;<\/span><\/td>\n<td><span style=\"color:#0d0016\">Cortex-M7&#xff08;\u53cc\u53d1\u5c04&#xff0c;\u53d6\u6307 64bit&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u5236\u9020\u5de5\u827a<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u8f83\u8001&#xff08;90nm \u7ea7&#xff09;<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u8f83\u65b0&#xff08;65nm \u7ea7&#xff09;<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u66f4\u65b0&#xff08;40nm \u7ea7&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u7f16\u7a0b\u6700\u5c0f\u5355\u4f4d<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u534a\u5b57 16bit<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u5b57 32bit&#xff08;\u4f4e\u5bb9\u91cf&#xff09;\/ \u53cc\u5b57 64bit&#xff08;\u9ad8\u5bb9\u91cf&#xff09;<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u53cc\u5b57 64bit&#xff08;\u90e8\u5206 256bit&#xff09;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u64e6\u9664\u5355\u4f4d<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u9875 1KB<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u6247\u533a 32KB&#043;<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u6247\u533a 32KB\/64KB\/128KB<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#0d0016\">\u5177\u4f53\u539f\u56e0&#xff1a;<\/span><\/p>\n<li><span style=\"color:#0d0016\">\u603b\u7ebf\u4e0e\u5185\u6838\u5bbd\u5ea6&#xff1a;CPU \u6570\u636e\u603b\u7ebf\u662f 32bit&#xff0c;F1 \u65f6\u4ee3 Flash \u63a5\u53e3\u6309 16bit \u7ec4\u7ec7&#xff08;\u534a\u5b57&#xff09;&#xff0c;\u4e00\u6b21\u5199\u64cd\u4f5c\u5bf9\u5e94\u4e00\u6761\u7269\u7406\u7f16\u7a0b\u884c&#xff1b;F4 \u628a\u7f16\u7a0b\u884c\u52a0\u5bbd\u5230 32bit&#xff0c;\u4e0e\u603b\u7ebf\u5bf9\u9f50&#xff1b;M7 \u5185\u6838\u53d6\u6307\u662f 64bit&#xff0c;Flash \u63a5\u53e3\u968f\u4e4b\u52a0\u5bbd\u5230 64bit\u2014\u2014\u63a5\u53e3\u8d8a\u5bbd&#xff0c;\u7f16\u7a0b\u884c\u8d8a\u5bbd&#xff0c;\u6700\u5c0f\u5355\u4f4d\u8d8a\u5927\u3002<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u5de5\u827a\u4e0e\u9762\u79ef\u6210\u672c&#xff1a;\u7f16\u7a0b\u884c\u52a0\u5bbd\u610f\u5473\u7740\u540c\u4e00\u65f6\u523b\u5e76\u884c\u6ce8\u5165\u7535\u8377\u7684\u5355\u5143\u66f4\u591a&#xff0c;\u9700\u8981\u66f4\u5927\u7684\u7535\u8377\u6cf5&#xff08;charge pump&#xff09;\u8f93\u51fa\u7535\u6d41\u3001\u66f4\u7c97\u7684\u7535\u6e90\/\u5730\u8d70\u7ebf\u3001\u66f4\u5927\u7684\u5b58\u50a8\u5355\u5143\u9762\u79ef\u3002\u8001\u5de5\u827a\u505a\u4e0d\u4e86\u592a\u5bbd\u7684\u7f16\u7a0b\u884c&#xff0c;\u65b0\u5de5\u827a\u53ef\u4ee5\u3002<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u6027\u80fd\u6743\u8861&#xff1a;\u884c\u8d8a\u5bbd&#xff0c;\u4e00\u6b21\u7f16\u7a0b\u5199\u5165\u7684\u6570\u636e\u8d8a\u591a&#xff08;\u7f16\u7a0b\u65f6\u95f4\u51e0\u4e4e\u4e0d\u53d8&#xff09;&#xff0c;\u5199\u5165\u541e\u5410\u7387\u8d8a\u9ad8\u3002F7 \u53cc\u5b57\u5199\u5165\u6bd4 F1 \u534a\u5b57\u5199\u5165\u5feb 4 \u500d\u3002<\/span><\/li>\n<hr \/>\n<h3><span style=\"color:#511b78\">\u56db\u3001\u4e3a\u4ec0\u4e48\u4e0d\u80fd\u6309\u5b57\u8282\u5199&#xff1f;&#xff08;\u7269\u7406\u9650\u5236&#xff09;<\/span><\/h3>\n<p><span style=\"color:#0d0016\">\u4f60\u53ef\u80fd\u60f3\u95ee&#xff1a;<\/span><span style=\"color:#b95514\">\u4e3a\u4ec0\u4e48 EEPROM \u80fd\u6309\u5b57\u8282\u5199&#xff0c;Flash \u4e0d\u884c&#xff1f;<\/span><\/p>\n<li><span style=\"color:#0d0016\">\u7f16\u7a0b\u5e72\u6270&#xff08;Program Disturb&#xff09;&#xff1a;\u7ed9\u4e00\u884c\u52a0\u9ad8\u538b\u65f6&#xff0c;\u540c\u4e00\u5b57\u7ebf\u4e0a\u7684\u5176\u4ed6\u5355\u5143\u4e5f\u4f1a\u53d7\u5230\u5e94\u529b&#xff0c;\u53ef\u80fd\u88ab\u8bef\u7f16\u7a0b\u3002\u884c\u8d8a\u7a84&#xff0c;\u53d7\u5f71\u54cd\u7684\u90bb\u5355\u5143\u8d8a\u5c11\u3002Flash \u8ffd\u6c42\u5bc6\u5ea6&#xff0c;\u7528&#034;\u6574\u884c\u5e76\u884c&#034;\u6765\u6362\u53d6\u9762\u79ef&#xff0c;\u4ee3\u4ef7\u5c31\u662f\u6700\u5c0f\u5355\u4f4d\u5927\u3002<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u7535\u8377\u6cf5\u80fd\u529b&#xff1a;\u6309\u5b57\u8282\u5199\u8981\u5355\u72ec\u7ed9\u4e00\u4e2a\u5355\u5143\u52a0\u9ad8\u538b&#xff0c;\u800c Flash \u5355\u5143\u7684\u5199\u5165\u7535\u538b\u8981\u9760\u7247\u5185\u7535\u8377\u6cf5\u4ece 1.8V\/3.3V \u5347\u5230 ~10V\u3002\u4e00\u6b21\u9a71\u52a8\u6574\u884c\u7684\u7535\u6d41\u9884\u7b97\u56fa\u5b9a&#xff0c;\u5e76\u884c\u5199\u6574\u884c\u6bd4\u9010\u4e2a\u5199\u5b57\u8282\u66f4\u9ad8\u6548&#xff08;\u603b\u65f6\u95f4\u66f4\u77ed&#xff09;\u3002<\/span><\/li>\n<li><span style=\"color:#0d0016\">\u67b6\u6784\u7ee7\u627f&#xff1a;NOR Flash \u6700\u521d\u5c31\u662f\u6309&#034;\u884c&#xff08;word line&#xff09;&#034;\u7ec4\u7ec7\u7684&#xff0c;\u534a\u5bfc\u4f53\u5382\u7684 Flash IP \u884c\u5bbd\u56fa\u5b9a&#xff0c;MCU \u53ea\u662f\u628a\u8fd9\u4e00\u884c\u5bbd\u66b4\u9732\u7ed9\u7528\u6237&#xff1a;F1 \u66b4\u9732 16bit\u3001F4 \u66b4\u9732 32bit\u3002<\/span><\/li>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5916\u90e8 I2C EEPROM \u6309\u5b57\u8282\u5199&#xff0c;\u662f\u56e0\u4e3a\u5b83\u7684\u5b58\u50a8\u5bc6\u5ea6\u4f4e\u3001\u5355\u5143\u5927\u3001\u5de5\u827a\u5bb9\u5fcd\u9010\u5b57\u8282\u64cd\u4f5c\u2014\u2014\u4ee3\u4ef7\u662f\u5bb9\u91cf\u5c0f&#xff08;Kbit \u7ea7&#xff09;\u3001\u901f\u5ea6\u6162\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5185\u90e8 Flash \u8ffd\u6c42\u9ad8\u5bc6\u5ea6\u5927\u5bb9\u91cf&#xff0c;\u5c31\u5f97\u63a5\u53d7&#034;\u6574\u884c\u5199\u3001\u6574\u5757\u64e6&#034;\u7684\u7269\u7406\u7ea6\u675f\u3002<\/span><\/p>\n<hr \/>\n<h3><span style=\"color:#511b78\">\u4e94\u3001\u5bf9\u5f00\u53d1\u8005\u7684\u5b9e\u9645\u5f71\u54cd<\/span><\/h3>\n<table>\n<tr><span style=\"color:#0d0016\">\u5f71\u54cd\u70b9<\/span><span style=\"color:#0d0016\">\u8bf4\u660e<\/span><\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#0d0016\">\u5730\u5740\u5bf9\u9f50<\/span><\/td>\n<td><span style=\"color:#0d0016\">F1 \u534a\u5b57\u5199\u5fc5\u987b 2 \u5b57\u8282\u5bf9\u9f50&#xff1b;F4 \u5b57\u5199\u5fc5\u987b 4 \u5b57\u8282\u5bf9\u9f50&#xff1b;\u672a\u5bf9\u9f50 \u2192 PGERR<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u6a21\u62df EEPROM \u69fd\u4f4d\u8bbe\u8ba1<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u69fd\u4f4d\u5bbd\u5ea6\u5fc5\u987b \u2265 \u7f16\u7a0b\u5355\u4f4d&#xff1a;F1 \u69fd\u4f4d 4B&#xff08;2B \u6570\u636e&#043;2B \u72b6\u6001&#xff09;\u6ca1\u95ee\u9898&#xff1b;F4 \u4e0a\u8981\u6309 4\/8B \u8bbe\u8ba1&#xff0c;\u72b6\u6001\u5b57\u6bb5\u6700\u597d\u7528\u5b8c\u6574\u5b57<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u5199\u6570\u7ec4\/\u7ed3\u6784\u4f53<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u4e0d\u80fd\u76f4\u63a5 memcpy \u5230 Flash\u2014\u2014\u5fc5\u987b\u6309\u534a\u5b57\/\u5b57\u9010\u4e2a\u7f16\u7a0b<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#0d0016\">\u8de8\u884c\u8fb9\u754c<\/span><\/td>\n<td><span style=\"color:#0d0016\">\u4e00\u4e2a&#034;\u6570\u636e\u9879&#034;\u4e0d\u80fd\u6a2a\u8de8\u4e24\u4e2a\u7f16\u7a0b\u884c\u8fb9\u754c&#xff0c;\u5426\u5219\u8981\u62c6\u6210\u4e24\u6b21\u64cd\u4f5c<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3><span style=\"color:#1a439c\">\u9762\u8bd5\u9898<\/span><\/h3>\n<p><span style=\"color:#b95514\">Q1. F1 \u548c F4 \u7684 Flash \u7f16\u7a0b\u6700\u5c0f\u5355\u4f4d\u5206\u522b\u662f\u4ec0\u4e48&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0F1 \u534a\u5b57 16bit&#xff08;2 \u5b57\u8282\u5bf9\u9f50&#xff09;&#xff0c;F4 \u5b57 32bit&#xff08;4 \u5b57\u8282\u5bf9\u9f50&#xff09;&#xff0c;\u5927\u5bb9\u91cf F4 \u53ca F7 \u652f\u6301\u53cc\u5b57 64bit\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q2. \u4e3a\u4ec0\u4e48\u7f16\u7a0b\u5355\u4f4d\u662f\u534a\u5b57\/\u5b57\u800c\u4e0d\u662f\u5b57\u8282&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7f16\u7a0b\u662f\u7269\u7406\u4e0a&#034;\u6574\u884c\u5e76\u884c\u6ce8\u5165\u7535\u8377&#034;&#xff0c;\u884c\u5bbd\u7531\u5b58\u50a8\u9635\u5217\u7684\u4f4d\u7ebf\u6570\u91cf\u51b3\u5b9a\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Flash \u4ee5\u884c\u7ec4\u7ec7\u8ffd\u6c42\u5bc6\u5ea6&#xff0c;\u6700\u5c0f\u7f16\u7a0b\u5355\u4f4d &#061; \u884c\u5bbd&#xff0c;\u65e0\u6cd5\u50cf EEPROM \u90a3\u6837\u9010\u5b57\u8282\u64cd\u4f5c\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q3. \u7f16\u7a0b\u5355\u4f4d\u8ddf\u4ec0\u4e48\u786c\u4ef6\u6709\u5173&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5185\u6838\u603b\u7ebf\u5bbd\u5ea6&#xff08;M3 32bit \/ M7 64bit&#xff09;\u3001\u5236\u9020\u5de5\u827a&#xff08;\u65b0\u5de5\u827a\u80fd\u652f\u6491\u66f4\u5bbd\u7684\u7f16\u7a0b\u884c\u548c\u66f4\u5927\u7684\u7535\u8377\u6cf5&#xff09;\u3001Flash IP \u7684\u5b58\u50a8\u9635\u5217\u7ec4\u7ec7\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q4. \u672a\u5bf9\u9f50\u5199\u4f1a\u600e\u6837&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u89e6\u53d1\u7f16\u7a0b\u9519\u8bef\u6807\u5fd7 PGERR&#xff0c;\u6570\u636e\u4e0d\u5199\u5165\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0F1 \u5199 3 \u5b57\u8282\u5bf9\u9f50\u5730\u5740\u3001F4 \u5199 2 \u5b57\u8282\u5bf9\u9f50\u5730\u5740\u90fd\u4f1a\u62a5\u9519\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q5. F4 \u4e0a\u505a\u6a21\u62df EEPROM \u8981\u6ce8\u610f\u4ec0\u4e48&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u69fd\u4f4d\u6309 4\/8 \u5b57\u8282\u5bf9\u9f50\u8bbe\u8ba1&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6247\u533a\u6700\u5c0f 32KB&#xff0c;\u64e6\u9664\u4ee3\u4ef7\u5927&#xff0c;\u4e24\u9875\u7ffb\u8f6c\u8981\u5360 64KB&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7f16\u7a0b\u5355\u4f4d\u662f\u5b57&#xff0c;\u72b6\u6001\u5b57\u6bb5\u4e5f\u8981\u7528\u5b8c\u6574\u5b57\u5199\u5165\u3002<\/span><\/p>\n<hr \/>\n<p><span style=\"color:#b95514\">Q6. \u4e3a\u4ec0\u4e48\u8bfb\u53d6\u53ef\u4ee5\u6309\u5b57\u8282\u800c\u5199\u5165\u4e0d\u884c&#xff1f;<\/span><\/p>\n<p><span style=\"color:#0d0016\">A&#xff1a;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u8bfb\u53d6\u662f\u4f4e\u7535\u538b\u8bd1\u7801\u5bfb\u5740&#xff0c;\u4e0d\u6539\u53d8\u7535\u8377&#xff0c;\u53ef\u4ee5\u4efb\u610f\u5bfb\u5740\u4efb\u610f\u5b57\u8282&#xff1b;<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5199\u5165\u9700\u8981\u5347\u538b\u3001\u6574\u884c\u5e76\u884c\u6ce8\u5165\u7535\u8377&#xff0c;\u53ea\u80fd\u6309\u884c&#xff08;\u7f16\u7a0b\u5355\u4f4d&#xff09;\u64cd\u4f5c\u3002<\/span><\/p>\n<\/p>\n<hr \/>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1292\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030225712-6ae520c8e92a1.png\" width=\"2558\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5185\u90e8 Flash \u8be6\u89e3&#xff1a;\u5bc4\u5b58\u5668\u9010\u4f4d\u62c6\u89e3  \u5de5\u4f5c\u6d41\u7a0b\u987a\u5e8f\u5168\u8bb2\u00a0\u00a0\u4e00\u3001\u57fa\u7840\u6982\u5ff5&#xff08;\u56de\u987e&#xff09;1.1 \u4ec0\u4e48\u662f\u5185\u90e8 FlashFlash&#xff08;\u95ea\u5b58&#xff09; \u662f STM32 \u82af\u7247\u5185\u90e8\u7684\u975e\u6613\u5931\u6027\u5b58\u50a8\u5668&#xff1a;\u6389\u7535\u4e0d\u4e22\u5931&#xff1a;\u65ad\u7535\u540e\u6570\u636e\u4f9d\u7136\u4fdd\u7559&#xff1b;\u7247\u5185\u96c6\u6210&#xff1a;\u540c\u4e00\u9897\u82af\u7247\u5185&#xff0c;\u603b\u7ebf\u76f4\u63a5\u8bbf\u95ee&#xff1b;\u53ef\u64e6\u5199&#xff1a;\u53ef\u53cd\u590d\u64e6\u9664\u548c\u7f16\u7a0b&#xff08;\u5bff\u547d\u7ea6 1 \u4e07\u6b21&amp;#xff0<\/p>\n","protected":false},"author":2,"featured_media":120188,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[868,217,270,269],"topic":[],"class_list":["post-120194","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-868","tag-stm32","tag-270","tag-269"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010STM32\u3011 \u5185\u90e8 Flash \u8be6\u89e3\uff1a\u5bc4\u5b58\u5668\u9010\u4f4d\u62c6\u89e3 + \u5de5\u4f5c\u6d41\u7a0b\u987a\u5e8f\u5168\u8bb2 + EEPROM\u518d\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/120194.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010STM32\u3011 \u5185\u90e8 Flash \u8be6\u89e3\uff1a\u5bc4\u5b58\u5668\u9010\u4f4d\u62c6\u89e3 + \u5de5\u4f5c\u6d41\u7a0b\u987a\u5e8f\u5168\u8bb2 + EEPROM\u518d\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5185\u90e8 Flash \u8be6\u89e3&#xff1a;\u5bc4\u5b58\u5668\u9010\u4f4d\u62c6\u89e3 \u5de5\u4f5c\u6d41\u7a0b\u987a\u5e8f\u5168\u8bb2\u00a0\u00a0\u4e00\u3001\u57fa\u7840\u6982\u5ff5&#xff08;\u56de\u987e&#xff09;1.1 \u4ec0\u4e48\u662f\u5185\u90e8 FlashFlash&#xff08;\u95ea\u5b58&#xff09; \u662f STM32 \u82af\u7247\u5185\u90e8\u7684\u975e\u6613\u5931\u6027\u5b58\u50a8\u5668&#xff1a;\u6389\u7535\u4e0d\u4e22\u5931&#xff1a;\u65ad\u7535\u540e\u6570\u636e\u4f9d\u7136\u4fdd\u7559&#xff1b;\u7247\u5185\u96c6\u6210&#xff1a;\u540c\u4e00\u9897\u82af\u7247\u5185&#xff0c;\u603b\u7ebf\u76f4\u63a5\u8bbf\u95ee&#xff1b;\u53ef\u64e6\u5199&#xff1a;\u53ef\u53cd\u590d\u64e6\u9664\u548c\u7f16\u7a0b&#xff08;\u5bff\u547d\u7ea6 1 \u4e07\u6b21&amp;#xff0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/120194.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-30T22:57:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030225707-6ae520c3330e0.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"14 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/120194.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/120194.html\",\"name\":\"\u3010STM32\u3011 \u5185\u90e8 Flash \u8be6\u89e3\uff1a\u5bc4\u5b58\u5668\u9010\u4f4d\u62c6\u89e3 + \u5de5\u4f5c\u6d41\u7a0b\u987a\u5e8f\u5168\u8bb2 + EEPROM\u518d\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-30T22:57:15+00:00\",\"dateModified\":\"2026-10-30T22:57:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/120194.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/120194.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/120194.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010STM32\u3011 \u5185\u90e8 Flash \u8be6\u89e3\uff1a\u5bc4\u5b58\u5668\u9010\u4f4d\u62c6\u89e3 + \u5de5\u4f5c\u6d41\u7a0b\u987a\u5e8f\u5168\u8bb2 + EEPROM\u518d\u5b9e\u73b0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010STM32\u3011 \u5185\u90e8 Flash \u8be6\u89e3\uff1a\u5bc4\u5b58\u5668\u9010\u4f4d\u62c6\u89e3 + \u5de5\u4f5c\u6d41\u7a0b\u987a\u5e8f\u5168\u8bb2 + EEPROM\u518d\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/120194.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010STM32\u3011 \u5185\u90e8 Flash \u8be6\u89e3\uff1a\u5bc4\u5b58\u5668\u9010\u4f4d\u62c6\u89e3 + \u5de5\u4f5c\u6d41\u7a0b\u987a\u5e8f\u5168\u8bb2 + EEPROM\u518d\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5185\u90e8 Flash \u8be6\u89e3&#xff1a;\u5bc4\u5b58\u5668\u9010\u4f4d\u62c6\u89e3 \u5de5\u4f5c\u6d41\u7a0b\u987a\u5e8f\u5168\u8bb2\u00a0\u00a0\u4e00\u3001\u57fa\u7840\u6982\u5ff5&#xff08;\u56de\u987e&#xff09;1.1 \u4ec0\u4e48\u662f\u5185\u90e8 FlashFlash&#xff08;\u95ea\u5b58&#xff09; \u662f STM32 \u82af\u7247\u5185\u90e8\u7684\u975e\u6613\u5931\u6027\u5b58\u50a8\u5668&#xff1a;\u6389\u7535\u4e0d\u4e22\u5931&#xff1a;\u65ad\u7535\u540e\u6570\u636e\u4f9d\u7136\u4fdd\u7559&#xff1b;\u7247\u5185\u96c6\u6210&#xff1a;\u540c\u4e00\u9897\u82af\u7247\u5185&#xff0c;\u603b\u7ebf\u76f4\u63a5\u8bbf\u95ee&#xff1b;\u53ef\u64e6\u5199&#xff1a;\u53ef\u53cd\u590d\u64e6\u9664\u548c\u7f16\u7a0b&#xff08;\u5bff\u547d\u7ea6 1 \u4e07\u6b21&amp;#xff0","og_url":"https:\/\/www.wsisp.com\/helps\/120194.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-30T22:57:15+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030225707-6ae520c3330e0.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"14 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/120194.html","url":"https:\/\/www.wsisp.com\/helps\/120194.html","name":"\u3010STM32\u3011 \u5185\u90e8 Flash \u8be6\u89e3\uff1a\u5bc4\u5b58\u5668\u9010\u4f4d\u62c6\u89e3 + \u5de5\u4f5c\u6d41\u7a0b\u987a\u5e8f\u5168\u8bb2 + EEPROM\u518d\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-30T22:57:15+00:00","dateModified":"2026-10-30T22:57:15+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/120194.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/120194.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/120194.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010STM32\u3011 \u5185\u90e8 Flash \u8be6\u89e3\uff1a\u5bc4\u5b58\u5668\u9010\u4f4d\u62c6\u89e3 + \u5de5\u4f5c\u6d41\u7a0b\u987a\u5e8f\u5168\u8bb2 + EEPROM\u518d\u5b9e\u73b0"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/120194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=120194"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/120194\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/120188"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=120194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=120194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=120194"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=120194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}