{"id":100733,"date":"2026-09-05T07:17:13","date_gmt":"2026-09-04T23:17:13","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/100733.html"},"modified":"2026-09-05T07:17:13","modified_gmt":"2026-09-04T23:17:13","slug":"%e6%a0%88%e5%a4%9f%e7%94%a8%e5%8d%b4%e9%9a%8f%e6%9c%ba-hardfault%ef%bc%9a%e9%92%a9%e5%ad%90%e5%87%bd%e6%95%b0%e9%80%92%e5%bd%92%e5%95%83%e7%a9%bf-msp%ef%bc%8c%e6%a0%88%e6%b0%b4%e7%ba%bf%e5%ae%9e","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/100733.html","title":{"rendered":"\u6808\u591f\u7528\u5374\u968f\u673a HardFault\uff1a\u94a9\u5b50\u51fd\u6570\u9012\u5f52\u5543\u7a7f MSP\uff0c\u6808\u6c34\u7ebf\u5b9e\u6d4b + \u94a9\u5b50\u6539\u8fed\u4ee3"},"content":{"rendered":"<h2>\u6808\u591f\u7528\u5374\u968f\u673a HardFault&#xff1a;\u94a9\u5b50\u51fd\u6570\u9012\u5f52\u5543\u7a7f MSP&#xff0c;\u6808\u6c34\u7ebf\u5b9e\u6d4b &#043; \u94a9\u5b50\u6539\u8fed\u4ee3<\/h2>\n<h3>\u4e00\u3001\u5f00\u7bc7&#xff1a;\u4e00\u4e2a\u771f\u5b9e\u7ffb\u8f66\u73b0\u573a<\/h3>\n<p>\u505a\u4e00\u53f0\u5e26 RTOS \u7684\u91c7\u96c6\u5668&#xff08;STM32F4 &#043; FreeRTOS&#xff09;&#xff0c;\u8dd1\u51e0\u5929\u5076\u5c14 HardFault&#xff0c;\u590d\u4f4d\u53c8\u6b63\u5e38\u3002\u5806\u6808\u914d\u5f97\u5f88\u5927&#xff08;\u4efb\u52a1\u6808 1KB\u3001\u603b\u5806\u4e5f\u591f&#xff09;&#xff0c;\u6309\u7406\u4e0d\u8be5\u6ea2\u51fa\u3002\u6211\u7528 uxTaskGetStackHighWaterMark \u770b\u5404\u4efb\u52a1\u6808\u6c34\u7ebf&#xff0c;\u90fd\u8fd8\u5269\u4e00\u5927\u622a\u2014\u2014\u53ef\u5b83\u5c31\u662f\u5d29\u3002<\/p>\n<p>\u6700\u540e\u5728 HardFault \u5904\u7406\u51fd\u6570\u91cc dump \u6808\u5e27&#xff0c;\u53d1\u73b0 PC \u6307\u5411\u4e00\u4e2a&#034;\u94a9\u5b50\u51fd\u6570&#034;\u7684\u9012\u5f52\u8c03\u7528\u6df1\u5904\u3002\u539f\u6765\u8fd9\u4e2a\u94a9\u5b50\u5728\u5904\u7406\u67d0\u4e8b\u4ef6\u65f6\u4f1a\u9012\u5f52\u8c03\u7528\u81ea\u5df1&#xff08;A \u8c03 A&#xff09;&#xff0c;\u800c\u4e8b\u4ef6\u89e6\u53d1\u9891\u7e41\u65f6\u9012\u5f52\u6df1\u5ea6\u7d2f\u79ef&#xff0c;\u628a MSP&#xff08;\u4e3b\u6808&#xff0c;\u4e2d\u65ad\/HardFault \u7528\u7684\u6808&#xff09;\u4e00\u70b9\u70b9\u5543\u7a7f\u2014\u2014\u4efb\u52a1\u6808\u6c34\u7ebf\u770b\u7740\u6ca1\u4e8b&#xff0c;\u56e0\u4e3a\u5d29\u5728 MSP \u4e0a\u3002<\/p>\n<p>\u6839\u56e0\u4e00\u53e5\u8bdd&#xff1a;RTOS \u91cc\u6709\u4e24\u4e2a\u6808\u2014\u2014\u4efb\u52a1\u6808&#xff08;PSP&#xff09;\u548c\u4e3b\u6808 MSP&#xff08;\u4e2d\u65ad\/HardFault \u4e0a\u4e0b\u6587\u7528&#xff09;\u3002\u5982\u679c\u67d0\u4e2a\u5728\u4e2d\u65ad\u6216\u7cfb\u7edf\u8c03\u7528\u91cc\u89e6\u53d1\u7684\u94a9\u5b50\u51fd\u6570\u5199\u6210\u9012\u5f52&#xff0c;\u9012\u5f52\u6d88\u8017\u7684\u662f MSP&#xff1b;\u9891\u7e41\u89e6\u53d1\u65f6 MSP \u88ab\u6084\u6084\u5543\u7a7f&#xff0c;\u89e6\u53d1 HardFault\u3002\u4efb\u52a1\u6808\u6c34\u7ebf\u6b63\u5e38\u662f\u56e0\u4e3a\u5d29\u7684\u6839\u672c\u4e0d\u662f\u4efb\u52a1\u6808\u3002<\/p>\n<p>\u9002\u7528\u8bfb\u8005&#xff1a;FreeRTOS \u4e0b\u5076\u53d1 HardFault\u3001\u6808\u6c34\u7ebf\u770b\u7740\u591f\u5374\u5d29\u3001\u94a9\u5b50\/\u56de\u8c03\u91cc\u8c03\u7528\u4e86\u4f1a\u9012\u5f52\u7684\u903b\u8f91\u7684\u540c\u5b66\u3002<br \/>\n\u8bfb\u5b8c\u4f60\u80fd\u505a&#xff1a;\u8bc6\u522b&#034;\u94a9\u5b50\u9012\u5f52\u5543\u7a7f MSP&#034;\u578b HardFault&#xff0c;\u901a\u8fc7\u5b9e\u6d4b MSP \u6c34\u7ebf\u5b9a\u4f4d&#xff0c;\u5e76\u628a\u9012\u5f52\u94a9\u5b50\u6539\u6210\u8fed\u4ee3\/\u9650\u5236\u6df1\u5ea6\u3002<\/p>\n<h3>\u4e8c\u3001\u5148\u641e\u61c2&#xff1a;RTOS \u91cc\u7a76\u7adf\u6709\u51e0\u5757\u6808&#xff08;\u8ba4\u77e5&#xff09;<\/h3>\n<h4>2.1 PSP \u548c MSP<\/h4>\n<p>Cortex-M \u6709\u4e24\u4e2a\u6808\u6307\u9488&#xff1a;\u7ebf\u7a0b\u6a21\u5f0f\u9ed8\u8ba4\u7528 PSP&#xff08;\u4efb\u52a1\u6808&#xff09;&#xff0c;\u5904\u7406\u6a21\u5f0f&#xff08;\u4e2d\u65ad\/HardFault&#xff09;\u7528 MSP&#xff08;\u4e3b\u6808&#xff09;\u3002FreeRTOS \u6bcf\u4e2a\u4efb\u52a1\u6709\u81ea\u5df1 PSP&#xff1b;\u800c\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f\u3001HardFault\u3001\u4ee5\u53ca\u4e2d\u65ad\u91cc\u8c03\u7528\u7684\u94a9\u5b50\u7528\u7684\u662f MSP\u2014\u2014\u5b83\u662f\u542f\u52a8\u6587\u4ef6\u91cc Stack_Size \u914d\u7684\u90a3\u5757&#xff08;\u901a\u5e38\u8f83\u5c0f&#xff0c;\u5982 1KB&#xff09;\u3002<\/p>\n<h4>2.2 \u94a9\u5b50\u4e3a\u4ec0\u4e48\u5403 MSP<\/h4>\n<p>\u5f88\u591a RTOS \u94a9\u5b50&#xff08;\u5982 vApplicationStackOverflowHook\u3001idle hook\u3001\u5b9a\u65f6\u5668\u56de\u8c03&#xff09;\u53ef\u80fd\u5728\u4e2d\u65ad\u4e0a\u4e0b\u6587\u6216\u7279\u6743\u6001\u88ab\u8c03\u7528&#xff0c;\u4f7f\u7528\u7684\u662f MSP\u3002\u82e5\u94a9\u5b50\u91cc\u5199\u4e86\u9012\u5f52\u51fd\u6570&#xff0c;\u9012\u5f52\u6bcf\u6df1\u4e00\u5c42\u5c31\u538b\u4e00\u5e27\u5230 MSP&#xff0c;\u9891\u7e41\/\u6df1\u5c42\u65f6\u628a MSP \u5543\u7a7f \u2192 HardFault\u3002<\/p>\n<table>\n<tr>\u6808\u8c01\u7528\u5d29\u4e86\u8868\u73b0\u4e3a<\/tr>\n<tbody>\n<tr>\n<td>PSP \u4efb\u52a1\u6808<\/td>\n<td>\u4efb\u52a1\u4ee3\u7801<\/td>\n<td>\u4efb\u52a1\u6808\u6ea2\u51fa\u94a9\u5b50\u62a5<\/td>\n<\/tr>\n<tr>\n<td>MSP \u4e3b\u6808<\/td>\n<td>\u4e2d\u65ad\/HardFault\/\u94a9\u5b50<\/td>\n<td>\u9759\u9ed8\u5543\u7a7f\u2192HardFault<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>#mermaid-svg-Knp3TKP8LgQ7zvSc{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-Knp3TKP8LgQ7zvSc .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-Knp3TKP8LgQ7zvSc .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-Knp3TKP8LgQ7zvSc .error-icon{fill:#552222;}#mermaid-svg-Knp3TKP8LgQ7zvSc .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-Knp3TKP8LgQ7zvSc .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-Knp3TKP8LgQ7zvSc .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-Knp3TKP8LgQ7zvSc .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-Knp3TKP8LgQ7zvSc .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-Knp3TKP8LgQ7zvSc .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-Knp3TKP8LgQ7zvSc .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-Knp3TKP8LgQ7zvSc .marker{fill:#333333;stroke:#333333;}#mermaid-svg-Knp3TKP8LgQ7zvSc .marker.cross{stroke:#333333;}#mermaid-svg-Knp3TKP8LgQ7zvSc svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-Knp3TKP8LgQ7zvSc p{margin:0;}#mermaid-svg-Knp3TKP8LgQ7zvSc .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-Knp3TKP8LgQ7zvSc .cluster-label text{fill:#333;}#mermaid-svg-Knp3TKP8LgQ7zvSc .cluster-label span{color:#333;}#mermaid-svg-Knp3TKP8LgQ7zvSc .cluster-label span p{background-color:transparent;}#mermaid-svg-Knp3TKP8LgQ7zvSc .label text,#mermaid-svg-Knp3TKP8LgQ7zvSc span{fill:#333;color:#333;}#mermaid-svg-Knp3TKP8LgQ7zvSc .node rect,#mermaid-svg-Knp3TKP8LgQ7zvSc .node circle,#mermaid-svg-Knp3TKP8LgQ7zvSc .node ellipse,#mermaid-svg-Knp3TKP8LgQ7zvSc .node polygon,#mermaid-svg-Knp3TKP8LgQ7zvSc .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-Knp3TKP8LgQ7zvSc .rough-node .label text,#mermaid-svg-Knp3TKP8LgQ7zvSc .node .label text,#mermaid-svg-Knp3TKP8LgQ7zvSc .image-shape .label,#mermaid-svg-Knp3TKP8LgQ7zvSc .icon-shape .label{text-anchor:middle;}#mermaid-svg-Knp3TKP8LgQ7zvSc .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-Knp3TKP8LgQ7zvSc .rough-node .label,#mermaid-svg-Knp3TKP8LgQ7zvSc .node .label,#mermaid-svg-Knp3TKP8LgQ7zvSc .image-shape .label,#mermaid-svg-Knp3TKP8LgQ7zvSc .icon-shape .label{text-align:center;}#mermaid-svg-Knp3TKP8LgQ7zvSc .node.clickable{cursor:pointer;}#mermaid-svg-Knp3TKP8LgQ7zvSc .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-Knp3TKP8LgQ7zvSc .arrowheadPath{fill:#333333;}#mermaid-svg-Knp3TKP8LgQ7zvSc .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-Knp3TKP8LgQ7zvSc .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-Knp3TKP8LgQ7zvSc .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-Knp3TKP8LgQ7zvSc .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-Knp3TKP8LgQ7zvSc .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-Knp3TKP8LgQ7zvSc .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-Knp3TKP8LgQ7zvSc .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-Knp3TKP8LgQ7zvSc .cluster text{fill:#333;}#mermaid-svg-Knp3TKP8LgQ7zvSc .cluster span{color:#333;}#mermaid-svg-Knp3TKP8LgQ7zvSc div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-Knp3TKP8LgQ7zvSc .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-Knp3TKP8LgQ7zvSc rect.text{fill:none;stroke-width:0;}#mermaid-svg-Knp3TKP8LgQ7zvSc .icon-shape,#mermaid-svg-Knp3TKP8LgQ7zvSc .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-Knp3TKP8LgQ7zvSc .icon-shape p,#mermaid-svg-Knp3TKP8LgQ7zvSc .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-Knp3TKP8LgQ7zvSc .icon-shape .label rect,#mermaid-svg-Knp3TKP8LgQ7zvSc .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-Knp3TKP8LgQ7zvSc .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-Knp3TKP8LgQ7zvSc .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-Knp3TKP8LgQ7zvSc :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5426<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u662f \u9891\u7e41\u89e6\u53d1<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u4e8b\u4ef6\u89e6\u53d1\u94a9\u5b50<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u94a9\u5b50\u9012\u5f52?<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6b63\u5e38<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6bcf\u5e27\u538bMSP<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>MSP\u88ab\u5543\u7a7f<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>HardFault<\/p>\n<p><\/span><\/p>\n<p>\u56fe 1&#xff1a;\u94a9\u5b50\u9012\u5f52\u5543\u7a7f MSP&#xff08;\u5982\u56fe 1 \u6240\u793a&#xff0c;\u5d29\u5728 MSP \u800c\u975e\u4efb\u52a1\u6808&#xff09;\u3002<\/p>\n<p>[\u6ce8\u610f] \u542f\u52a8\u6587\u4ef6 Stack_Size \u901a\u5e38\u9ed8\u8ba4 1KB&#xff08;0x400&#xff09;&#xff0c;\u6bd4\u4efb\u52a1\u6808\u5c0f\u5f97\u591a\u3002\u4e2d\u65ad\u5d4c\u5957\u6df1 &#043; \u94a9\u5b50\u9012\u5f52&#xff0c;\u6781\u6613\u8d85\u3002\u6539\u5927 Stack_Size \u80fd\u7f13\u89e3\u4f46\u4e0d\u80fd\u6839\u6cbb&#xff08;\u9012\u5f52\u65e0\u754c\u7167\u6837\u5d29&#xff09;\u3002<\/p>\n<h3>\u4e09\u3001\u4e3a\u4ec0\u4e48\u4f1a HardFault&#xff08;\u539f\u7406 &#043; \u771f\u5b9e\u9519\u8bef\u4ee3\u7801&#xff09;<\/h3>\n<h4>3.1 \u6211\u6700\u521d\u7684\u5199\u6cd5&#xff08;\u9519\u8bef\u7248&#xff09;<\/h4>\n<p><span class=\"token comment\">\/\/ \u274c \u9519\u8bef\u5199\u6cd5&#xff1a;\u94a9\u5b50\u91cc\u5199\u9012\u5f52&#xff0c;\u9891\u7e41\u89e6\u53d1\u5543\u7a7f MSP<\/span><br \/>\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">vApplicationIdleHook<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">void<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span>        <span class=\"token comment\">\/\/ \u7a7a\u95f2\u94a9\u5b50&#xff0c;\u7528 MSP<\/span><br \/>\n    <span class=\"token function\">process_pending_events<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>            <span class=\"token comment\">\/\/ \u53ef\u80fd\u9012\u5f52<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">process_pending_events<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">void<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token function\">has_event<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token function\">handle_event<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">process_pending_events<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>        <span class=\"token comment\">\/\/ \u2190 \u9012\u5f52\u8c03\u7528\u81ea\u5df1&#xff0c;\u538b MSP<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u9519\u5728\u54ea&#xff1a;<\/p>\n<li>\u7a7a\u95f2\u94a9\u5b50\u5728 RTOS \u7a7a\u95f2\u4efb\u52a1\u91cc\u8dd1&#xff0c;\u7528\u7684\u662f MSP&#xff08;\u4e3b\u6808&#xff09;\u3002<\/li>\n<li>process_pending_events \u9012\u5f52&#xff0c;\u6bcf\u5904\u7406\u4e00\u4e2a\u4e8b\u4ef6\u538b\u4e00\u5e27\u3002\u4e8b\u4ef6\u591a\u65f6\u9012\u5f52\u5f88\u6df1\u3002<\/li>\n<li>\u6bcf\u5e27\u6d88\u8017 MSP \u7a7a\u95f4&#xff0c;MSP \u672c\u5c31\u5c0f&#xff08;1KB&#xff09;&#xff0c;\u4e8b\u4ef6\u5806\u79ef\u65f6\u8fc5\u901f\u5543\u7a7f\u3002<\/li>\n<li>MSP \u6ea2\u51fa \u2192 \u8e29\u5230\u76f8\u90bb RAM\/\u5411\u91cf\u8868 \u2192 HardFault\u3002\u4efb\u52a1\u6808\u6c34\u7ebf uxTaskGetStackHighWaterMark \u5b8c\u5168\u6b63\u5e38&#xff08;\u56e0\u4e3a\u5b83\u6d4b\u7684\u662f PSP&#xff09;\u3002<\/li>\n<p>[\u5751] \u94c1\u5f8b&#xff1a;\u94a9\u5b50\/\u4e2d\u65ad\u4e0a\u4e0b\u6587\u91cc\u7981\u6b62\u65e0\u754c\u9012\u5f52\u3002\u9012\u5f52\u6d88\u8017\u7684\u53ef\u80fd\u662f MSP \u800c\u975e\u4efb\u52a1\u6808&#xff0c;\u4efb\u52a1\u6808\u6c34\u7ebf\u6b63\u5e38\u4e5f\u4f1a HardFault\u3002<\/p>\n<h4>3.2 \u4e3a\u4ec0\u4e48&#034;\u6808\u6c34\u7ebf\u770b\u7740\u591f&#034;<\/h4>\n<p>uxTaskGetStackHighWaterMark \u6d4b\u7684\u662f\u5f53\u524d\u4efb\u52a1 PSP \u5269\u4f59&#xff0c;\u4e0d\u662f MSP\u3002\u5d29\u5728 MSP \u4e0a&#xff0c;\u8fd9\u628a\u5c3a\u5b50\u6d4b\u4e0d\u5230 \u2192 \u8bef\u5bfc\u4f60\u4ee5\u4e3a&#034;\u6808\u591f&#034;\u3002\u5fc5\u987b\u5355\u72ec\u6d4b MSP\u3002<\/p>\n<table>\n<tr>\u68c0\u6d4b\u624b\u6bb5\u80fd\u6d4b\u5230 MSP \u6ea2\u51fa?<\/tr>\n<tbody>\n<tr>\n<td>uxTaskGetStackHighWaterMark<\/td>\n<td>\u274c \u53ea\u6d4b PSP<\/td>\n<\/tr>\n<tr>\n<td>HardFault dump PC<\/td>\n<td>\u2705 \u5b9a\u4f4d\u5230\u94a9\u5b50<\/td>\n<\/tr>\n<tr>\n<td>MSP \u6c34\u7ebf\u586b\u5145\u6cd5<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u56db\u3001\u6b63\u786e\u89e3\u6cd5&#xff1a;\u94a9\u5b50\u6539\u8fed\u4ee3 &#043; \u6d4b MSP \u6c34\u7ebf&#xff08;\u5b8c\u6574\u843d\u5730&#xff09;<\/h3>\n<h4>4.1 \u65b9\u6848\u5bf9\u6bd4<\/h4>\n<table>\n<tr>\u65b9\u6848\u6839\u6cbb\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u94a9\u5b50\u9012\u5f52<\/td>\n<td>\u5543\u7a7f MSP<\/td>\n<td>\u9519<\/td>\n<\/tr>\n<tr>\n<td>\u94a9\u5b50\u6539\u8fed\u4ee3\/\u9650\u6df1<\/td>\n<td>\u6839\u6cbb<\/td>\n<td>\u6b63\u89e3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>4.2 \u914d\u7f6e&#xff08;\u7167\u7740\u70b9&#xff09;<\/h4>\n<p>FreeRTOSConfig.h&#xff1a;\u4fdd\u6301 configCHECK_FOR_STACK_OVERFLOW&#061;2&#xff08;\u6808\u6ea2\u51fa\u94a9\u5b50&#xff09;&#xff1b;\u542f\u52a8\u6587\u4ef6 Stack_Size \u9002\u5f53\u52a0\u5927&#xff08;\u5982 2KB&#xff09;\u4f5c\u7f13\u51b2&#xff0c;\u4f46\u6839\u672c\u662f\u6539\u9012\u5f52\u3002<\/p>\n<h4>4.3 \u5b8c\u6574\u4ee3\u7801&#xff08;\u53ef\u76f4\u63a5\u7f16\u8bd1&#xff09;<\/h4>\n<p><span class=\"token comment\">\/\/ \u2705 \u6b63\u786e&#xff1a;\u94a9\u5b50\u6539\u8fed\u4ee3&#xff0c;\u7528\u5faa\u73af\u66ff\u4ee3\u9012\u5f52<\/span><br \/>\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">vApplicationIdleHook<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">void<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">while<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token function\">has_event<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span>              <span class=\"token comment\">\/\/ \u8fed\u4ee3&#xff0c;\u4e0d\u538b\u6808<\/span><br \/>\n        <span class=\"token function\">handle_event<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token operator\">&#043;&#043;<\/span>loop_guard <span class=\"token operator\">&gt;<\/span> MAX_EVENTS_PER_IDLE<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">break<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u9650\u6b21\u9632\u7206<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token comment\">\/\/ MSP \u6c34\u7ebf\u5b9e\u6d4b&#xff1a;\u542f\u52a8\u628a MSP \u533a\u586b 0xCD&#xff0c;\u8dd1\u4e45\u770b\u88ab\u6539\u5199\u6df1\u5ea6<\/span><br \/>\n<span class=\"token keyword\">extern<\/span> <span class=\"token class-name\">uint32_t<\/span> _estack<span class=\"token punctuation\">;<\/span>            <span class=\"token comment\">\/\/ \u6808\u9876&#xff08;\u6700\u9ad8\u5730\u5740&#xff09;<\/span><br \/>\n<span class=\"token keyword\">extern<\/span> <span class=\"token class-name\">uint32_t<\/span> _sstack<span class=\"token punctuation\">;<\/span>            <span class=\"token comment\">\/\/ \u6808\u5e95<\/span><br \/>\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">fill_msp_pattern<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">void<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint32_t<\/span> <span class=\"token operator\">*<\/span>p <span class=\"token operator\">&#061;<\/span> <span class=\"token operator\">&amp;<\/span>_sstack<span class=\"token punctuation\">;<\/span> p <span class=\"token operator\">&lt;<\/span> <span class=\"token operator\">&amp;<\/span>_estack<span class=\"token punctuation\">;<\/span> p<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">*<\/span>p <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0xCDCDCDCD<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token comment\">\/\/ \u8dd1 N \u5c0f\u65f6\u540e\u8bfb _sstack \u8d77\u7b2c\u4e00\u4e2a\u975e 0xCD \u7684\u4f4d\u7f6e &#061; \u6700\u6df1\u4f7f\u7528<\/span><\/p>\n<p>[\u5751] \u4e24\u4e2a\u7ffb\u8f66\u70b9\u6536\u597d&#xff1a;<\/p>\n<li>\u94a9\u5b50\/ISR \u91cc\u5199\u9012\u5f52\u2014\u2014\u5543\u7a7f MSP \u6839\u56e0&#xff1b;\u6539\u8fed\u4ee3 &#043; \u52a0\u6b21\u6570\u5b88\u536b\u3002<\/li>\n<li>\u53ea\u770b\u4efb\u52a1\u6808\u6c34\u7ebf\u5224\u65ad&#034;\u6808\u591f&#034;\u2014\u2014\u6f0f\u4e86 MSP&#xff1b;\u7528\u586b\u5145\u6cd5\u5b9e\u6d4b MSP \u6700\u6df1\u4f7f\u7528\u3002<\/li>\n<h4>4.4 \u6539\u5b8c\u7684\u5b9e\u6d4b\u5bf9\u6bd4<\/h4>\n<table>\n<tr>\u6307\u6807\u6539\u524d&#xff08;\u9012\u5f52\u94a9\u5b50&#xff09;\u6539\u540e&#xff08;\u8fed\u4ee3\u94a9\u5b50&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>\u5076\u53d1 HardFault<\/td>\n<td>\u51e0\u5929\u4e00\u6b21<\/td>\n<td>\u8fde\u7eed\u6570\u5468 0<\/td>\n<\/tr>\n<tr>\n<td>\u4efb\u52a1\u6808\u6c34\u7ebf<\/td>\n<td>\u6b63\u5e38&#xff08;\u8bef\u5bfc&#xff09;<\/td>\n<td>\u6b63\u5e38<\/td>\n<\/tr>\n<tr>\n<td>MSP \u6700\u6df1\u4f7f\u7528<\/td>\n<td>\u8d85 Stack_Size<\/td>\n<td>\u8fdc\u4f4e\u4e8e\u4e0a\u9650<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u4e94\u3001\u6536\u5c3e<\/h3>\n<p>\u8981\u70b9\u590d\u76d8<\/p>\n<li>RTOS \u5076\u53d1 HardFault \u4f46\u4efb\u52a1\u6808\u6c34\u7ebf\u6b63\u5e38&#xff0c;\u8981\u6000\u7591 MSP&#xff08;\u4e3b\u6808&#xff09;\u88ab\u5543\u7a7f\u3002<\/li>\n<li>\u94a9\u5b50\/\u4e2d\u65ad\u4e0a\u4e0b\u6587\u7528 MSP&#xff0c;\u91cc\u9762\u5199\u9012\u5f52\u4f1a\u6084\u6084\u5543\u7a7f\u5b83\u3002<\/li>\n<li>\u94a9\u5b50\u6539\u8fed\u4ee3 &#043; \u9650\u6b21&#xff1b;\u5e76\u7528\u586b\u5145\u6cd5\u5b9e\u6d4b MSP \u6c34\u7ebf&#xff0c;\u522b\u53ea\u770b\u4efb\u52a1\u6808\u3002<\/li>\n<p>\u6700\u4f73\u5b9e\u8df5\u6e05\u5355<\/p>\n<ul>\n<li>\u94a9\u5b50\/idle hook\/\u5b9a\u65f6\u5668\u56de\u8c03\u91cc\u7981\u6b62\u65e0\u754c\u9012\u5f52&#xff0c;\u6539\u8fed\u4ee3 &#043; \u6b21\u6570\u5b88\u536b\u3002<\/li>\n<li>\u4efb\u52a1\u6808\u6c34\u7ebf\u6b63\u5e38 \u2260 \u6ca1\u6808\u95ee\u9898&#xff0c;MSP \u4e5f\u8981\u6d4b&#xff08;\u586b\u5145\u6cd5&#xff09;\u3002<\/li>\n<li>\u542f\u52a8\u6587\u4ef6 Stack_Size \u6309\u4e2d\u65ad\u5d4c\u5957\u6df1\u5ea6\u7559\u591f&#xff08;\u5efa\u8bae \u22651~2KB&#xff09;\u3002<\/li>\n<li>\u5f00 configCHECK_FOR_STACK_OVERFLOW&#061;2 &#043; \u6ea2\u51fa\u94a9\u5b50&#xff0c;\u5d29\u65f6\u7559\u7ebf\u7d22\u3002<\/li>\n<li>HardFault \u5904\u7406\u51fd\u6570 dump \u6808\u5e27\/PC&#xff0c;\u662f\u5b9a\u4f4d\u9012\u5f52\u94a9\u5b50\u7684\u5229\u5668\u3002<\/li>\n<\/ul>\n<p>\u8fdb\u9636\u5ef6\u4f38&#xff1a;Cortex-M \u7684 MSP\/PSP \u5207\u6362\u53ef\u7528 __get_MSP()\/__get_PSP() \u5b9e\u65f6\u8bfb&#xff1b;MPU \u53ef\u7ed9\u6808\u533a\u8bbe\u5b88\u536b\u533a&#xff0c;\u8d8a\u754c\u5373 fault&#xff0c;\u63d0\u524d\u66b4\u9732\u3002<\/p>\n<p>\u4e92\u52a8&#xff1a;\u4f60 RTOS \u8fd8\u8e29\u8fc7\u5565\u6808\u5751&#xff1f;\u4e2d\u65ad\u5d4c\u5957\u7206\u6808\u3001\u5c40\u90e8\u5927\u6570\u7ec4\u3001\u6808\u8d8a\u754c\u8e29\u5806&#xff1f;\u8bc4\u8bba\u533a\u804a\u804a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6808\u591f\u7528\u5374\u968f\u673a HardFault&#xff1a;\u94a9\u5b50\u51fd\u6570\u9012\u5f52\u5543\u7a7f MSP&#xff0c;\u6808\u6c34\u7ebf\u5b9e\u6d4b  \u94a9\u5b50\u6539\u8fed\u4ee3<br \/>\n\u4e00\u3001\u5f00\u7bc7&#xff1a;\u4e00\u4e2a\u771f\u5b9e\u7ffb\u8f66\u73b0\u573a<br \/>\n\u505a\u4e00\u53f0\u5e26 RTOS \u7684\u91c7\u96c6\u5668&#xff08;STM32F4  FreeRTOS&#xff09;&#xff0c;\u8dd1\u51e0\u5929\u5076\u5c14 HardFault&#xff0c;\u590d\u4f4d\u53c8\u6b63\u5e38\u3002\u5806\u6808\u914d\u5f97\u5f88\u5927&#xff08;\u4efb\u52a1\u6808 1KB\u3001\u603b\u5806\u4e5f\u591f&#xff09;&#xff0c;\u6309\u7406\u4e0d\u8be5\u6ea2\u51fa\u3002\u6211\u7528 uxTaskGetStackHighWaterMar<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11519,11520,174,217,219],"topic":[],"class_list":["post-100733","post","type-post","status-publish","format-standard","hentry","category-server","tag-hardfault","tag-11520","tag-c","tag-stm32","tag-219"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6808\u591f\u7528\u5374\u968f\u673a HardFault\uff1a\u94a9\u5b50\u51fd\u6570\u9012\u5f52\u5543\u7a7f MSP\uff0c\u6808\u6c34\u7ebf\u5b9e\u6d4b + \u94a9\u5b50\u6539\u8fed\u4ee3 - \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\/100733.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6808\u591f\u7528\u5374\u968f\u673a HardFault\uff1a\u94a9\u5b50\u51fd\u6570\u9012\u5f52\u5543\u7a7f MSP\uff0c\u6808\u6c34\u7ebf\u5b9e\u6d4b + \u94a9\u5b50\u6539\u8fed\u4ee3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6808\u591f\u7528\u5374\u968f\u673a HardFault&#xff1a;\u94a9\u5b50\u51fd\u6570\u9012\u5f52\u5543\u7a7f MSP&#xff0c;\u6808\u6c34\u7ebf\u5b9e\u6d4b \u94a9\u5b50\u6539\u8fed\u4ee3 \u4e00\u3001\u5f00\u7bc7&#xff1a;\u4e00\u4e2a\u771f\u5b9e\u7ffb\u8f66\u73b0\u573a \u505a\u4e00\u53f0\u5e26 RTOS \u7684\u91c7\u96c6\u5668&#xff08;STM32F4 FreeRTOS&#xff09;&#xff0c;\u8dd1\u51e0\u5929\u5076\u5c14 HardFault&#xff0c;\u590d\u4f4d\u53c8\u6b63\u5e38\u3002\u5806\u6808\u914d\u5f97\u5f88\u5927&#xff08;\u4efb\u52a1\u6808 1KB\u3001\u603b\u5806\u4e5f\u591f&#xff09;&#xff0c;\u6309\u7406\u4e0d\u8be5\u6ea2\u51fa\u3002\u6211\u7528 uxTaskGetStackHighWaterMar\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/100733.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-04T23:17:13+00:00\" \/>\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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/100733.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/100733.html\",\"name\":\"\u6808\u591f\u7528\u5374\u968f\u673a HardFault\uff1a\u94a9\u5b50\u51fd\u6570\u9012\u5f52\u5543\u7a7f MSP\uff0c\u6808\u6c34\u7ebf\u5b9e\u6d4b + \u94a9\u5b50\u6539\u8fed\u4ee3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-04T23:17:13+00:00\",\"dateModified\":\"2026-09-04T23:17:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/100733.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/100733.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/100733.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6808\u591f\u7528\u5374\u968f\u673a HardFault\uff1a\u94a9\u5b50\u51fd\u6570\u9012\u5f52\u5543\u7a7f MSP\uff0c\u6808\u6c34\u7ebf\u5b9e\u6d4b + \u94a9\u5b50\u6539\u8fed\u4ee3\"}]},{\"@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":"\u6808\u591f\u7528\u5374\u968f\u673a HardFault\uff1a\u94a9\u5b50\u51fd\u6570\u9012\u5f52\u5543\u7a7f MSP\uff0c\u6808\u6c34\u7ebf\u5b9e\u6d4b + \u94a9\u5b50\u6539\u8fed\u4ee3 - \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\/100733.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6808\u591f\u7528\u5374\u968f\u673a HardFault\uff1a\u94a9\u5b50\u51fd\u6570\u9012\u5f52\u5543\u7a7f MSP\uff0c\u6808\u6c34\u7ebf\u5b9e\u6d4b + \u94a9\u5b50\u6539\u8fed\u4ee3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6808\u591f\u7528\u5374\u968f\u673a HardFault&#xff1a;\u94a9\u5b50\u51fd\u6570\u9012\u5f52\u5543\u7a7f MSP&#xff0c;\u6808\u6c34\u7ebf\u5b9e\u6d4b \u94a9\u5b50\u6539\u8fed\u4ee3 \u4e00\u3001\u5f00\u7bc7&#xff1a;\u4e00\u4e2a\u771f\u5b9e\u7ffb\u8f66\u73b0\u573a \u505a\u4e00\u53f0\u5e26 RTOS \u7684\u91c7\u96c6\u5668&#xff08;STM32F4 FreeRTOS&#xff09;&#xff0c;\u8dd1\u51e0\u5929\u5076\u5c14 HardFault&#xff0c;\u590d\u4f4d\u53c8\u6b63\u5e38\u3002\u5806\u6808\u914d\u5f97\u5f88\u5927&#xff08;\u4efb\u52a1\u6808 1KB\u3001\u603b\u5806\u4e5f\u591f&#xff09;&#xff0c;\u6309\u7406\u4e0d\u8be5\u6ea2\u51fa\u3002\u6211\u7528 uxTaskGetStackHighWaterMar","og_url":"https:\/\/www.wsisp.com\/helps\/100733.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-04T23:17:13+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/100733.html","url":"https:\/\/www.wsisp.com\/helps\/100733.html","name":"\u6808\u591f\u7528\u5374\u968f\u673a HardFault\uff1a\u94a9\u5b50\u51fd\u6570\u9012\u5f52\u5543\u7a7f MSP\uff0c\u6808\u6c34\u7ebf\u5b9e\u6d4b + \u94a9\u5b50\u6539\u8fed\u4ee3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-04T23:17:13+00:00","dateModified":"2026-09-04T23:17:13+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/100733.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/100733.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/100733.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6808\u591f\u7528\u5374\u968f\u673a HardFault\uff1a\u94a9\u5b50\u51fd\u6570\u9012\u5f52\u5543\u7a7f MSP\uff0c\u6808\u6c34\u7ebf\u5b9e\u6d4b + \u94a9\u5b50\u6539\u8fed\u4ee3"}]},{"@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\/100733","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=100733"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/100733\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=100733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=100733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=100733"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=100733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}