{"id":52393,"date":"2025-08-11T13:54:22","date_gmt":"2025-08-11T05:54:22","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/52393.html"},"modified":"2025-08-11T13:54:22","modified_gmt":"2025-08-11T05:54:22","slug":"%e5%9f%ba%e4%ba%8e-stm32-%e4%b8%8elvgl%ef%bc%8c-7%e5%af%b8qspi-%e5%b1%8f%e7%9a%84%e6%97%a0%e4%ba%ba%e6%9c%ba-mfd-%e4%bb%aa%e8%a1%a8%e6%96%b9%e6%a1%88%e5%ae%9e%e8%b7%b5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/52393.html","title":{"rendered":"\u57fa\u4e8e STM32 \u4e0eLVGL\uff0c 7\u5bf8QSPI \u5c4f\u7684\u65e0\u4eba\u673a MFD \u4eea\u8868\u65b9\u6848\u5b9e\u8df5"},"content":{"rendered":"<h2>\u76ee\u5f55<\/h2>\n<li>\u5f15\u8a00<\/li>\n<li>\u9879\u76ee\u6982\u8ff0<\/li>\n<li>\u786c\u4ef6\u9009\u578b\u4e0e\u8bbe\u8ba1<\/li>\n<li>\u5f00\u53d1\u73af\u5883\u642d\u5efa<\/li>\n<li>\u754c\u9762\u8bbe\u8ba1\u4e0e\u5b9e\u73b0<\/li>\n<li>\u6838\u5fc3\u529f\u80fd\u5f00\u53d1<\/li>\n<li>\u7cfb\u7edf\u96c6\u6210\u4e0e\u4e3b\u7a0b\u5e8f<\/li>\n<li>\u6d4b\u8bd5\u4e0e\u8c03\u8bd5<\/li>\n<li>\u603b\u7ed3\u4e0e\u5c55\u671b<\/li>\n<h3>\u5f15\u8a00<\/h3>\n<p>\u65e0\u4eba\u673a\u5730\u9762\u591a\u529f\u80fd\u663e\u793a\u5668&#xff08;MFD&#xff09;\u662f\u98de\u884c\u63a7\u5236\u7684\u6838\u5fc3\u4ea4\u4e92\u8bbe\u5907&#xff0c;\u9700\u5b9e\u65f6\u5448\u73b0\u5173\u952e\u98de\u884c\u53c2\u6570\u5e76\u652f\u6301\u5feb\u901f\u64cd\u4f5c\u3002\u672c\u65b9\u6848\u91c7\u7528 STM32 \u5fae\u5904\u7406\u5668\u76f4\u63a5\u901a\u8fc7 QSPI \u63a5\u53e3\u9a71\u52a8 7 \u5bf8\u6db2\u6676\u5c4f&#xff0c;\u96c6\u6210 CAN FD \u603b\u7ebf\u5b9e\u73b0\u4e0e\u65e0\u4eba\u673a\u98de\u63a7\u7cfb\u7edf\u7684\u9ad8\u901f\u6570\u636e\u4ea4\u4e92&#xff0c;\u901a\u8fc7\u7269\u7406\u6309\u952e\u5b8c\u6210\u64cd\u4f5c&#xff0c;\u4e13\u6ce8\u4e8e\u65e0\u4eba\u673a\u4e13\u7528\u53c2\u6570\u663e\u793a&#xff08;\u5269\u4f59\u7535\u91cf\u3001\u7535\u673a\u8f6c\u901f\u3001\u60ac\u505c\u9ad8\u5ea6\u7b49&#xff09;&#xff0c;\u517c\u987e\u53ef\u9760\u6027\u4e0e\u5b9e\u65f6\u6027\u3002<\/p>\n<h3>\u9879\u76ee\u6982\u8ff0<\/h3>\n<h4>\u6838\u5fc3\u76ee\u6807<\/h4>\n<li>\u786c\u4ef6\u67b6\u6784&#xff1a;STM32 \u901a\u8fc7 QSPI \u63a5\u53e3\u76f4\u63a5\u9a71\u52a8 7 \u5bf8 800*480 \u6db2\u6676\u5c4f&#xff0c;\u7701\u53bb RGB \u8f6c\u6362\u73af\u8282&#xff0c;\u7b80\u5316\u7535\u8def\u3002<\/li>\n<li>\u6570\u636e\u4ea4\u4e92&#xff1a;\u901a\u8fc7 CAN FD \u603b\u7ebf\u63a5\u6536\u65e0\u4eba\u673a\u98de\u63a7\u6570\u636e&#xff08;\u4f20\u8f93\u901f\u7387\u6700\u9ad8 8Mbps&#xff09;&#xff0c;\u6ee1\u8db3\u9ad8\u901f\u6570\u636e\u9700\u6c42\u3002<\/li>\n<li>\u663e\u793a\u529f\u80fd&#xff1a;\u5b9e\u73b0\u65e0\u4eba\u673a\u5269\u4f59\u7535\u91cf\u30014 \u8def\u7535\u673a\u8f6c\u901f\u3001\u60ac\u505c\u9ad8\u5ea6\u3001\u98de\u884c\u6a21\u5f0f\u3001GPS \u72b6\u6001\u7b49\u6838\u5fc3\u53c2\u6570\u7684\u53ef\u89c6\u5316\u663e\u793a\u3002<\/li>\n<li>\u64cd\u4f5c\u65b9\u5f0f&#xff1a;\u901a\u8fc7 3-5 \u4e2a\u7269\u7406\u529f\u80fd\u6309\u952e\u5b8c\u6210\u754c\u9762\u5207\u6362\u3001\u53c2\u6570\u8bbe\u7f6e\u3001\u7d27\u6025\u64cd\u4f5c\u7b49\u529f\u80fd\u3002<\/li>\n<li>\u6027\u80fd\u6307\u6807&#xff1a;\u6570\u636e\u5237\u65b0\u7387\u226510Hz&#xff0c;\u754c\u9762\u54cd\u5e94\u65f6\u95f4\u2264100ms&#xff0c;\u8fde\u7eed\u8fd0\u884c\u65e0\u6545\u969c\u65f6\u95f4\u22651000 \u5c0f\u65f6\u3002<\/li>\n<h3>\u786c\u4ef6\u9009\u578b\u4e0e\u8bbe\u8ba1<\/h3>\n<h4>\u6838\u5fc3\u63a7\u5236\u5668\u9009\u578b<\/h4>\n<p>\u9009\u7528STM32H743VIT6\u4f5c\u4e3a\u4e3b\u63a7\u5236\u5668&#xff0c;\u5173\u952e\u53c2\u6570&#xff1a;<\/p>\n<table>\n<tr>\u53c2\u6570\u89c4\u683c\u9002\u914d\u4f18\u52bf<\/tr>\n<tbody>\n<tr>\n<td>\u5185\u6838<\/td>\n<td>ARM Cortex-M7&#xff0c;\u4e3b\u9891 400MHz<\/td>\n<td>\u9ad8\u6027\u80fd\u5904\u7406\u80fd\u529b&#xff0c;\u652f\u6301\u590d\u6742\u56fe\u5f62\u6e32\u67d3\u4e0e CAN FD \u5b9e\u65f6\u5904\u7406<\/td>\n<\/tr>\n<tr>\n<td>\u5916\u8bbe<\/td>\n<td>2x QSPI \u63a5\u53e3&#xff08;\u652f\u6301 800*480 \u5c4f\u9a71\u52a8&#xff09;\u30012x CAN FD \u63a7\u5236\u5668<\/td>\n<td>\u539f\u751f QSPI \u4e0e CAN FD \u5916\u8bbe&#xff0c;\u65e0\u9700\u989d\u5916\u6269\u5c55<\/td>\n<\/tr>\n<tr>\n<td>\u5185\u5b58<\/td>\n<td>1MB SRAM\u30012MB Flash<\/td>\n<td>\u6ee1\u8db3 LVGL \u56fe\u5f62\u7f13\u5b58&#xff08;800*480&#064;16bit \u9700\u7ea6 768KB&#xff09;\u4e0e\u7a0b\u5e8f\u5b58\u50a8<\/td>\n<\/tr>\n<tr>\n<td>\u5de5\u4f5c\u6e29\u5ea6<\/td>\n<td>-40\u2103~85\u2103<\/td>\n<td>\u9002\u5e94\u65e0\u4eba\u673a\u6237\u5916\u4f5c\u4e1a\u73af\u5883<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u663e\u793a\u8bbe\u5907\u9009\u578b<\/h4>\n<p>7 \u5bf8 800*480 QSPI \u63a5\u53e3\u6db2\u6676\u5c4f\u53c2\u6570&#xff1a;<\/p>\n<table>\n<tr>\u53c2\u6570\u89c4\u683c\u7279\u6027<\/tr>\n<tbody>\n<tr>\n<td>\u5c3a\u5bf8<\/td>\n<td>7 \u82f1\u5bf8<\/td>\n<td>\u5e73\u8861\u663e\u793a\u9762\u79ef\u4e0e\u4fbf\u643a\u6027<\/td>\n<\/tr>\n<tr>\n<td>\u5206\u8fa8\u7387<\/td>\n<td>800*480&#xff08;4:3&#xff09;<\/td>\n<td>\u9002\u5408\u591a\u53c2\u6570\u5206\u533a\u663e\u793a<\/td>\n<\/tr>\n<tr>\n<td>\u63a5\u53e3<\/td>\n<td>QSPI&#xff08;4 \u7ebf\u6a21\u5f0f&#xff0c;\u652f\u6301\u53cc\u5411\u6570\u636e\u4f20\u8f93&#xff09;<\/td>\n<td>\u76f4\u63a5\u4e0e STM32 QSPI \u5916\u8bbe\u8fde\u63a5&#xff0c;\u4f20\u8f93\u901f\u7387\u6700\u9ad8 80MHz<\/td>\n<\/tr>\n<tr>\n<td>\u4eae\u5ea6<\/td>\n<td>400cd\/m\u00b2<\/td>\n<td>\u6237\u5916\u9633\u5149\u4e0b\u53ef\u89c6<\/td>\n<\/tr>\n<tr>\n<td>\u80cc\u5149<\/td>\n<td>LED&#xff08;\u652f\u6301 PWM \u4eae\u5ea6\u8c03\u8282&#xff09;<\/td>\n<td>\u53ef\u901a\u8fc7 STM32 GPIO \u63a7\u5236\u529f\u8017<\/td>\n<\/tr>\n<tr>\n<td>\u5de5\u4f5c\u7535\u538b<\/td>\n<td>3.3V<\/td>\n<td>\u4e0e STM32 \u4f9b\u7535\u517c\u5bb9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u5173\u952e\u5916\u8bbe\u6a21\u5757<\/h4>\n<li>\n<p>CAN FD \u6536\u53d1\u5668&#xff1a;<\/p>\n<ul>\n<li>\u578b\u53f7&#xff1a;TJA1044&#xff08;\u652f\u6301 CAN FD&#xff0c;\u6700\u9ad8 8Mbps&#xff09;<\/li>\n<li>\u529f\u80fd&#xff1a;\u5c06 STM32 \u7684 CAN FD \u4fe1\u53f7\u8f6c\u6362\u4e3a\u5dee\u5206\u4fe1\u53f7&#xff0c;\u4e0e\u65e0\u4eba\u673a\u98de\u63a7 CAN \u603b\u7ebf\u8fde\u63a5\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u529f\u80fd\u6309\u952e&#xff1a;<\/p>\n<ul>\n<li>\u6570\u91cf&#xff1a;5 \u4e2a&#xff08;\u7535\u6e90\u952e\u3001\u83dc\u5355\u952e\u3001\u4e0a \/ \u4e0b\u9009\u62e9\u952e\u3001\u786e\u8ba4\u952e&#xff09;<\/li>\n<li>\u7c7b\u578b&#xff1a;\u8f7b\u89e6\u6309\u952e&#xff08;\u5e26\u786c\u4ef6\u6d88\u6296&#xff09;&#xff0c;\u4e0b\u62c9\u8f93\u5165\u6a21\u5f0f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7535\u6e90\u6a21\u5757&#xff1a;<\/p>\n<ul>\n<li>\u8f93\u5165&#xff1a;DC 12V&#xff08;\u65e0\u4eba\u673a\u4f9b\u7535\u7cfb\u7edf\u5e38\u89c1\u7535\u538b&#xff09;<\/li>\n<li>\u8f93\u51fa&#xff1a;3.3V\/2A&#xff08;\u7ed9 STM32\u3001\u6db2\u6676\u5c4f\u4f9b\u7535&#xff09;&#xff0c;5V\/1A&#xff08;\u5907\u7528&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<h4>\u786c\u4ef6\u8fde\u63a5\u8bbe\u8ba1<\/h4>\n<h5>1. STM32 \u4e0e QSPI \u6db2\u6676\u5c4f\u8fde\u63a5<\/h5>\n<table>\n<tr>STM32 \u5f15\u811a\u529f\u80fd\u6db2\u6676\u5c4f\u5f15\u811a\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>PB2&#xff08;QSPI_CLK&#xff09;<\/td>\n<td>\u65f6\u949f\u7ebf<\/td>\n<td>CLK<\/td>\n<td>QSPI \u65f6\u949f\u4fe1\u53f7&#xff08;\u6700\u9ad8 80MHz&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>PD11&#xff08;QSPI_NCS&#xff09;<\/td>\n<td>\u7247\u9009<\/td>\n<td>CS<\/td>\n<td>\u4f4e\u7535\u5e73\u6709\u6548&#xff0c;\u9009\u4e2d\u6db2\u6676\u5c4f<\/td>\n<\/tr>\n<tr>\n<td>PF8&#xff08;QSPI_D0&#xff09;<\/td>\n<td>\u6570\u636e\u8f93\u5165<\/td>\n<td>D0<\/td>\n<td>\u4e3b\u673a\u63a5\u6536 \/ \u4ece\u673a\u53d1\u9001\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>PF9&#xff08;QSPI_D1&#xff09;<\/td>\n<td>\u6570\u636e\u8f93\u51fa<\/td>\n<td>D1<\/td>\n<td>\u4e3b\u673a\u53d1\u9001 \/ \u4ece\u673a\u63a5\u6536\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>PF10&#xff08;QSPI_D2&#xff09;<\/td>\n<td>\u6570\u636e\u8f93\u5165 2<\/td>\n<td>D2<\/td>\n<td>\u53ef\u9009&#xff0c;4 \u7ebf\u6a21\u5f0f\u589e\u5f3a\u4f20\u8f93&#xff08;\u672c\u65b9\u6848\u542f\u7528&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>PG12&#xff08;QSPI_D3&#xff09;<\/td>\n<td>\u6570\u636e\u8f93\u51fa 2<\/td>\n<td>D3<\/td>\n<td>\u53ef\u9009&#xff0c;4 \u7ebf\u6a21\u5f0f\u589e\u5f3a\u4f20\u8f93&#xff08;\u672c\u65b9\u6848\u542f\u7528&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>PA0<\/td>\n<td>\u590d\u4f4d<\/td>\n<td>RST<\/td>\n<td>\u4f4e\u7535\u5e73\u590d\u4f4d\u6db2\u6676\u5c4f&#xff08;\u9ed8\u8ba4\u4e0a\u62c9&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>PA1<\/td>\n<td>\u80cc\u5149\u63a7\u5236<\/td>\n<td>BL<\/td>\n<td>PWM \u8f93\u51fa\u8c03\u8282\u4eae\u5ea6&#xff08;\u9ad8\u7535\u5e73\u4f7f\u80fd&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>3.3V<\/td>\n<td>\u7535\u6e90<\/td>\n<td>VCC<\/td>\n<td>\u6db2\u6676\u5c4f\u4f9b\u7535<\/td>\n<\/tr>\n<tr>\n<td>GND<\/td>\n<td>\u63a5\u5730<\/td>\n<td>GND<\/td>\n<td>\u5171\u5730\u8fde\u63a5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>2. STM32 \u4e0e CAN FD \u603b\u7ebf\u8fde\u63a5<\/h5>\n<table>\n<tr>STM32 \u5f15\u811a\u529f\u80fdTJA1044 \u5f15\u811a\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>PD0&#xff08;CAN1_RX&#xff09;<\/td>\n<td>\u63a5\u6536\u6570\u636e<\/td>\n<td>RXD<\/td>\n<td>CAN FD \u63a5\u6536\u4fe1\u53f7<\/td>\n<\/tr>\n<tr>\n<td>PD1&#xff08;CAN1_TX&#xff09;<\/td>\n<td>\u53d1\u9001\u6570\u636e<\/td>\n<td>TXD<\/td>\n<td>CAN FD \u53d1\u9001\u4fe1\u53f7<\/td>\n<\/tr>\n<tr>\n<td>3.3V<\/td>\n<td>\u7535\u6e90<\/td>\n<td>VCC<\/td>\n<td>\u6536\u53d1\u5668\u4f9b\u7535<\/td>\n<\/tr>\n<tr>\n<td>GND<\/td>\n<td>\u63a5\u5730<\/td>\n<td>GND<\/td>\n<td>\u5171\u5730\u8fde\u63a5<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td>\u603b\u7ebf\u63a5\u53e3<\/td>\n<td>CAN_H\/CAN_L<\/td>\n<td>\u8fde\u63a5\u81f3\u65e0\u4eba\u673a\u98de\u63a7 CAN \u603b\u7ebf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>3. \u529f\u80fd\u6309\u952e\u8fde\u63a5<\/h5>\n<table>\n<tr>\u6309\u952e\u529f\u80fdSTM32 \u5f15\u811a\u7535\u8def\u8bbe\u8ba1<\/tr>\n<tbody>\n<tr>\n<td>\u7535\u6e90\u952e<\/td>\n<td>PC0<\/td>\n<td>\u4e0b\u62c9\u8f93\u5165&#xff0c;\u6309\u4e0b\u63a5 3.3V<\/td>\n<\/tr>\n<tr>\n<td>\u83dc\u5355\u952e<\/td>\n<td>PC1<\/td>\n<td>\u4e0b\u62c9\u8f93\u5165&#xff0c;\u6309\u4e0b\u63a5 3.3V<\/td>\n<\/tr>\n<tr>\n<td>\u4e0a\u9009\u62e9\u952e<\/td>\n<td>PC2<\/td>\n<td>\u4e0b\u62c9\u8f93\u5165&#xff0c;\u6309\u4e0b\u63a5 3.3V<\/td>\n<\/tr>\n<tr>\n<td>\u4e0b\u9009\u62e9\u952e<\/td>\n<td>PC3<\/td>\n<td>\u4e0b\u62c9\u8f93\u5165&#xff0c;\u6309\u4e0b\u63a5 3.3V<\/td>\n<\/tr>\n<tr>\n<td>\u786e\u8ba4\u952e<\/td>\n<td>PC4<\/td>\n<td>\u4e0b\u62c9\u8f93\u5165&#xff0c;\u6309\u4e0b\u63a5 3.3V<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u5f00\u53d1\u73af\u5883\u642d\u5efa<\/h3>\n<h4>\u6838\u5fc3\u5de5\u5177<\/h4>\n<table>\n<tr>\u5de5\u5177\u540d\u79f0\u7248\u672c\u7528\u9014<\/tr>\n<tbody>\n<tr>\n<td>STM32CubeIDE<\/td>\n<td>1.14.0<\/td>\n<td>\u4ee3\u7801\u5f00\u53d1\u3001\u7f16\u8bd1\u3001\u8c03\u8bd5\u4e00\u4f53\u5316\u73af\u5883<\/td>\n<\/tr>\n<tr>\n<td>STM32CubeMX<\/td>\n<td>6.10.0<\/td>\n<td>\u5916\u8bbe\u914d\u7f6e&#xff08;QSPI\u3001CAN FD\u3001GPIO \u7b49&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>LVGL<\/td>\n<td>v8.3<\/td>\n<td>\u5d4c\u5165\u5f0f\u56fe\u5f62\u5e93&#xff0c;\u9002\u914d 800*480 \u5206\u8fa8\u7387<\/td>\n<\/tr>\n<tr>\n<td>CANoe<\/td>\n<td>11.0<\/td>\n<td>CAN FD \u603b\u7ebf\u6570\u636e\u4eff\u771f\u4e0e\u6d4b\u8bd5<\/td>\n<\/tr>\n<tr>\n<td>ST-Link V3<\/td>\n<td>&#8211;<\/td>\n<td>\u7a0b\u5e8f\u4e0b\u8f7d\u4e0e\u786c\u4ef6\u8c03\u8bd5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u73af\u5883\u914d\u7f6e\u6b65\u9aa4<\/h4>\n<h5>1. STM32CubeMX \u914d\u7f6e<\/h5>\n<li>\n<p>\u9009\u62e9\u82af\u7247 \u201cSTM32H743VITx\u201d&#xff0c;\u914d\u7f6e\u6838\u5fc3\u5916\u8bbe&#xff1a;<\/p>\n<ul>\n<li>QSPI&#xff1a;\u6a21\u5f0f \u201cMemory-mapped\u201d&#xff0c;\u65f6\u949f 80MHz&#xff0c;\u6570\u636e\u5bbd\u5ea6 4 \u7ebf&#xff08;D0-D3&#xff09;\u3002<\/li>\n<li>CAN FD&#xff1a;\u6ce2\u7279\u7387 \u201c500kbps&#xff08;\u4ef2\u88c1\u6bb5&#xff09;&#043;8Mbps&#xff08;\u6570\u636e\u6bb5&#xff09;\u201d&#xff0c;\u4f7f\u80fd\u4e2d\u65ad\u3002<\/li>\n<li>GPIO&#xff1a;\u914d\u7f6e 5 \u4e2a\u6309\u952e\u5f15\u811a\u4e3a \u201c\u8f93\u5165\u4e0b\u62c9\u201d&#xff0c;PA1&#xff08;\u80cc\u5149&#xff09;\u4e3a \u201cTIM2_CH1 PWM \u8f93\u51fa\u201d\u3002<\/li>\n<li>RCC&#xff1a;\u5916\u90e8\u9ad8\u901f\u65f6\u949f&#xff08;25MHz&#xff09;&#xff0c;\u7cfb\u7edf\u65f6\u949f 400MHz\u3002<\/li>\n<li>TIM&#xff1a;TIM6 \u4f5c\u4e3a LVGL \u65f6\u57fa&#xff08;1ms \u4e2d\u65ad&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u751f\u6210\u5de5\u7a0b&#xff08;STM32CubeIDE \u683c\u5f0f&#xff09;&#xff0c;\u542f\u7528 FreeRTOS&#xff08;\u7528\u4e8e\u4efb\u52a1\u8c03\u5ea6&#xff09;\u3002<\/p>\n<\/li>\n<h5>2. LVGL \u79fb\u690d\u914d\u7f6e<\/h5>\n<li>\u4e0b\u8f7d LVGL v8.3 \u6e90\u7801&#xff0c;\u590d\u5236\u81f3\u5de5\u7a0b \u201cMiddlewares\/LVGL\u201d \u76ee\u5f55\u3002<\/li>\n<li>\u914d\u7f6elv_conf.h\u5173\u952e\u53c2\u6570&#xff1a;\n<p>c<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>#define LV_HOR_RES_MAX          800<br \/>\n#define LV_VER_RES_MAX          480<br \/>\n#define LV_COLOR_DEPTH          16  \/\/ 16\u4f4d\u8272&#xff08;RGB565&#xff09;<br \/>\n#define LV_MEM_SIZE             (768 * 1024)  \/\/ 768KB\u7f13\u5b58&#xff08;\u521a\u597d\u5bb9\u7eb3\u4e00\u5e27800*480&#064;16bit&#xff09;<br \/>\n#define LV_TICK_CUSTOM          1  \/\/ \u4f7f\u7528TIM6\u4f5c\u4e3a\u65f6\u57fa<br \/>\n#define LV_USE_GAUGE            1  \/\/ \u542f\u7528\u4eea\u8868\u7ec4\u4ef6<br \/>\n#define LV_USE_BAR              1  \/\/ \u542f\u7528\u8fdb\u5ea6\u6761\u7ec4\u4ef6<\/p>\n<\/li>\n<li>\u7f16\u5199 QSPI \u663e\u793a\u9a71\u52a8&#xff08;lv_port_disp.c&#xff09;&#xff1a;\n<ul>\n<li>\u5b9e\u73b0disp_init()&#xff1a;\u521d\u59cb\u5316 QSPI \u63a5\u53e3\u4e0e\u6db2\u6676\u5c4f&#xff08;\u53d1\u9001\u521d\u59cb\u5316\u6307\u4ee4&#xff09;\u3002<\/li>\n<li>\u5b9e\u73b0disp_flush_cb()&#xff1a;\u5c06 LVGL \u7684\u56fe\u50cf\u6570\u636e\u901a\u8fc7 QSPI \u5199\u5165\u6db2\u6676\u5c4f\u6307\u5b9a\u533a\u57df\u3002<\/li>\n<\/ul>\n<\/li>\n<h3>\u754c\u9762\u8bbe\u8ba1\u4e0e\u5b9e\u73b0&#xff08;800*480&#xff09;<\/h3>\n<h4>\u6574\u4f53\u5e03\u5c40\u8bbe\u8ba1<\/h4>\n<p>\u9488\u5bf9\u65e0\u4eba\u673a\u4e13\u7528\u53c2\u6570&#xff0c;\u754c\u9762\u5212\u5206\u4e3a 5 \u4e2a\u533a\u57df&#xff1a;<\/p>\n<\/p>\n<table>\n<tr>\u533a\u57df\u5c3a\u5bf8\u4f4d\u7f6e\u663e\u793a\u5185\u5bb9<\/tr>\n<tbody>\n<tr>\n<td>\u72b6\u6001\u680f<\/td>\n<td>800*30<\/td>\n<td>\u9876\u90e8&#xff08;0,0&#xff09;<\/td>\n<td>\u7cfb\u7edf\u65f6\u95f4\u3001\u98de\u884c\u6a21\u5f0f&#xff08;\u624b\u52a8 \/ \u81ea\u52a8&#xff09;\u3001GPS \u72b6\u6001<\/td>\n<\/tr>\n<tr>\n<td>\u4e3b\u53c2\u6570\u533a<\/td>\n<td>400*300<\/td>\n<td>\u5de6\u4fa7&#xff08;0,30&#xff09;<\/td>\n<td>\u60ac\u505c\u9ad8\u5ea6&#xff08;\u5927\u5b57\u4f53&#xff09;\u3001\u5269\u4f59\u7535\u91cf&#xff08;\u767e\u5206\u6bd4 &#043; \u8fdb\u5ea6\u6761&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u7535\u673a\u8f6c\u901f\u533a<\/td>\n<td>400*300<\/td>\n<td>\u53f3\u4fa7&#xff08;400,30&#xff09;<\/td>\n<td>4 \u8def\u7535\u673a\u8f6c\u901f\u8868&#xff08;\u5706\u5f62\u4eea\u8868&#xff0c;0-100%&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u8f85\u52a9\u53c2\u6570\u533a<\/td>\n<td>800*120<\/td>\n<td>\u5e95\u90e8&#xff08;0,330&#xff09;<\/td>\n<td>\u98de\u884c\u901f\u5ea6\u3001\u7535\u6c60\u7535\u538b\u3001\u7eed\u822a\u65f6\u95f4\u9884\u4f30<\/td>\n<\/tr>\n<tr>\n<td>\u6309\u952e\u63d0\u793a\u533a<\/td>\n<td>800*30<\/td>\n<td>\u6700\u5e95\u90e8&#xff08;0,450&#xff09;<\/td>\n<td>\u5f53\u524d\u754c\u9762\u53ef\u7528\u6309\u952e\u529f\u80fd\u63d0\u793a&#xff08;\u5982 \u201c\u83dc\u5355\u952e&#xff1a;\u5207\u6362\u89c6\u56fe\u201d&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u6838\u5fc3\u4eea\u8868\u5b9e\u73b0<\/h4>\n<h5>1. \u60ac\u505c\u9ad8\u5ea6\u663e\u793a&#xff08;\u4e3b\u53c2\u6570\u533a&#xff09;<\/h5>\n<p>c<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>void altitude_display_init(lv_obj_t *parent) {<br \/>\n    \/\/ \u521b\u5efa\u5bb9\u5668&#xff08;400*300&#xff09;<br \/>\n    lv_obj_t *container &#061; lv_obj_create(parent);<br \/>\n    lv_obj_set_size(container, 400, 300);<br \/>\n    lv_obj_align(container, LV_ALIGN_TOP_LEFT, 0, 30);<br \/>\n    lv_obj_set_style_bg_color(container, lv_color_hex(0x000000), LV_PART_MAIN);<\/p>\n<p>    \/\/ \u9ad8\u5ea6\u503c\u6807\u7b7e&#xff08;\u5927\u5b57\u4f53&#xff09;<br \/>\n    lv_obj_t *alt_label &#061; lv_label_create(container);<br \/>\n    lv_obj_set_style_text_font(alt_label, &amp;lv_font_montserrat_60, LV_PART_MAIN);<br \/>\n    lv_obj_set_style_text_color(alt_label, lv_color_hex(0x00FF00), LV_PART_MAIN);<br \/>\n    lv_label_set_text(alt_label, &#034;0.0m&#034;);<br \/>\n    lv_obj_align(alt_label, LV_ALIGN_CENTER, 0, -30);<\/p>\n<p>    \/\/ \u9ad8\u5ea6\u5355\u4f4d\u6807\u7b7e<br \/>\n    lv_obj_t *unit_label &#061; lv_label_create(container);<br \/>\n    lv_obj_set_style_text_font(unit_label, &amp;lv_font_montserrat_24, LV_PART_MAIN);<br \/>\n    lv_label_set_text(unit_label, &#034;\u60ac\u505c\u9ad8\u5ea6&#034;);<br \/>\n    lv_obj_align(unit_label, LV_ALIGN_CENTER, 0, 30);<br \/>\n}<\/p>\n<p>\/\/ \u66f4\u65b0\u9ad8\u5ea6\u503c<br \/>\nvoid altitude_update(float height) {<br \/>\n    char buf[10];<br \/>\n    sprintf(buf, &#034;%.1fm&#034;, height);<br \/>\n    lv_label_set_text(alt_label, buf);<br \/>\n    \/\/ \u9ad8\u5ea6\u5f02\u5e38&#xff08;&gt;50m\u6216&lt;0&#xff09;\u65f6\u53d8\u7ea2<br \/>\n    if (height &lt; 0 || height &gt; 50) {<br \/>\n        lv_obj_set_style_text_color(alt_label, lv_color_hex(0xFF0000), LV_PART_MAIN);<br \/>\n    } else {<br \/>\n        lv_obj_set_style_text_color(alt_label, lv_color_hex(0x00FF00), LV_PART_MAIN);<br \/>\n    }<br \/>\n}<\/p>\n<h5>2. \u5269\u4f59\u7535\u91cf\u663e\u793a&#xff08;\u4e3b\u53c2\u6570\u533a\u4e0b\u65b9&#xff09;<\/h5>\n<p>c<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>void battery_display_init(lv_obj_t *parent) {<br \/>\n    \/\/ \u521b\u5efa\u7535\u6c60\u5bb9\u5668&#xff08;400*50&#xff09;<br \/>\n    lv_obj_t *container &#061; lv_obj_create(parent);<br \/>\n    lv_obj_set_size(container, 400, 50);<br \/>\n    lv_obj_align(container, LV_ALIGN_TOP_LEFT, 0, 330-50);  \/\/ \u4e3b\u53c2\u6570\u533a\u4e0b\u65b9<\/p>\n<p>    \/\/ \u7535\u91cf\u8fdb\u5ea6\u6761<br \/>\n    lv_obj_t *bat_bar &#061; lv_bar_create(container);<br \/>\n    lv_obj_set_size(bat_bar, 200, 20);<br \/>\n    lv_obj_align(bat_bar, LV_ALIGN_CENTER, -50, 0);<br \/>\n    lv_bar_set_range(bat_bar, 0, 100);<\/p>\n<p>    \/\/ \u7535\u91cf\u767e\u5206\u6bd4\u6807\u7b7e<br \/>\n    lv_obj_t *bat_label &#061; lv_label_create(container);<br \/>\n    lv_obj_set_style_text_font(bat_label, &amp;lv_font_montserrat_20, LV_PART_MAIN);<br \/>\n    lv_label_set_text(bat_label, &#034;100%&#034;);<br \/>\n    lv_obj_align(bat_label, LV_ALIGN_CENTER, 80, 0);<br \/>\n}<\/p>\n<p>\/\/ \u66f4\u65b0\u7535\u91cf<br \/>\nvoid battery_update(uint8_t percentage) {<br \/>\n    lv_bar_set_value(bat_bar, percentage, LV_ANIM_ON);<br \/>\n    char buf[5];<br \/>\n    sprintf(buf, &#034;%d%%&#034;, percentage);<br \/>\n    lv_label_set_text(bat_label, buf);<br \/>\n    \/\/ \u4f4e\u7535\u91cf&#xff08;&lt;20%&#xff09;\u65f6\u8fdb\u5ea6\u6761\u53d8\u7ea2<br \/>\n    if (percentage &lt; 20) {<br \/>\n        lv_obj_set_style_bg_color(bat_bar, lv_color_hex(0xFF0000), LV_PART_INDICATOR);<br \/>\n    } else {<br \/>\n        lv_obj_set_style_bg_color(bat_bar, lv_color_hex(0x00FF00), LV_PART_INDICATOR);<br \/>\n    }<br \/>\n}<\/p>\n<h5>3. \u7535\u673a\u8f6c\u901f\u8868&#xff08;\u53f3\u4fa7 400*300 \u533a\u57df&#xff09;<\/h5>\n<p>c<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>void motor_gauge_init(lv_obj_t *parent) {<br \/>\n    \/\/ \u521b\u5efa4\u4e2a\u7535\u673a\u4eea\u8868&#xff08;2&#215;2\u5e03\u5c40&#xff09;<br \/>\n    for (int i &#061; 0; i &lt; 4; i&#043;&#043;) {<br \/>\n        lv_obj_t *gauge &#061; lv_gauge_create(parent);<br \/>\n        lv_obj_set_size(gauge, 180, 180);<br \/>\n        \/\/ \u8bbe\u7f6e\u4f4d\u7f6e&#xff08;2&#215;2\u7f51\u683c&#xff09;<br \/>\n        int x &#061; (i%2) * 200 &#043; 10;<br \/>\n        int y &#061; (i\/2) * 150 &#043; 10;<br \/>\n        lv_obj_align(gauge, LV_ALIGN_TOP_LEFT, 400 &#043; x, 30 &#043; y);<\/p>\n<p>        \/\/ \u914d\u7f6e\u4eea\u8868\u8303\u56f4&#xff08;0-100%&#xff09;<br \/>\n        lv_gauge_set_range(gauge, 0, 100);<br \/>\n        lv_gauge_set_critical_value(gauge, 90);  \/\/ 90%\u4ee5\u4e0a\u4e3a\u8b66\u6212\u503c<br \/>\n        lv_gauge_add_needle_line(gauge, lv_color_hex(0x00FF00), 3, 50);  \/\/ \u7eff\u8272\u6307\u9488<\/p>\n<p>        \/\/ \u7535\u673a\u7f16\u53f7\u6807\u7b7e<br \/>\n        lv_obj_t *label &#061; lv_label_create(gauge);<br \/>\n        lv_label_set_text_fmt(label, &#034;\u7535\u673a%d&#034;, i&#043;1);<br \/>\n        lv_obj_align(label, LV_ALIGN_BOTTOM_MID, 0, -10);<br \/>\n    }<br \/>\n}<\/p>\n<p>\/\/ \u66f4\u65b0\u7535\u673a\u8f6c\u901f&#xff08;0-100%&#xff09;<br \/>\nvoid motor_speed_update(uint8_t motor_id, uint8_t speed) {<br \/>\n    if (motor_id &gt;&#061; 4) return;<br \/>\n    lv_gauge_set_value(motors[motor_id], 0, speed);<br \/>\n    \/\/ \u8d85\u8b66\u6212\u503c&#xff08;&gt;90%&#xff09;\u65f6\u6307\u9488\u53d8\u7ea2<br \/>\n    if (speed &gt; 90) {<br \/>\n        lv_gauge_set_needle_color(motors[motor_id], 0, lv_color_hex(0xFF0000));<br \/>\n    } else {<br \/>\n        lv_gauge_set_needle_color(motors[motor_id], 0, lv_color_hex(0x00FF00));<br \/>\n    }<br \/>\n}<\/p>\n<h3>\u6838\u5fc3\u529f\u80fd\u5f00\u53d1<\/h3>\n<h4>1. QSPI \u6db2\u6676\u5c4f\u9a71\u52a8<\/h4>\n<p>c<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>\/\/ \u6db2\u6676\u5c4f\u521d\u59cb\u5316&#xff08;\u53d1\u9001QSPI\u547d\u4ee4&#xff09;<br \/>\nvoid qspi_lcd_init(void) {<br \/>\n    \/\/ \u590d\u4f4d\u6db2\u6676\u5c4f<br \/>\n    HAL_GPIO_WritePin(GPIOA, GPIO_PIN_0, GPIO_PIN_RESET);<br \/>\n    HAL_Delay(100);<br \/>\n    HAL_GPIO_WritePin(GPIOA, GPIO_PIN_0, GPIO_PIN_SET);<br \/>\n    HAL_Delay(100);<\/p>\n<p>    \/\/ \u521d\u59cb\u5316QSPI\u63a5\u53e3&#xff08;STM32CubeMX\u5df2\u914d\u7f6e&#xff0c;\u6b64\u5904\u53d1\u9001\u5c4f\u521d\u59cb\u5316\u6307\u4ee4&#xff09;<br \/>\n    qspi_send_cmd(0x11);  \/\/ \u9000\u51fa\u7761\u7720\u6a21\u5f0f<br \/>\n    HAL_Delay(120);<br \/>\n    qspi_send_cmd(0x29);  \/\/ \u5f00\u542f\u663e\u793a<br \/>\n    qspi_send_cmd(0x36, 0x00);  \/\/ \u8bbe\u7f6e\u663e\u793a\u65b9\u5411<br \/>\n}<\/p>\n<p>\/\/ \u901a\u8fc7QSPI\u53d1\u9001\u547d\u4ee4<br \/>\nstatic void qspi_send_cmd(uint8_t cmd, uint8_t data) {<br \/>\n    \/\/ \u7247\u9009\u4f7f\u80fd<br \/>\n    HAL_QSPI_Command(&amp;hqspi, &amp;(QSPI_CommandTypeDef){<br \/>\n        .Instruction &#061; cmd,<br \/>\n        .InstructionMode &#061; QSPI_INSTRUCTION_1_LINE,<br \/>\n        .AddressMode &#061; QSPI_ADDRESS_NONE,<br \/>\n        .DataMode &#061; QSPI_DATA_1_LINE,<br \/>\n        .DummyCycles &#061; 0,<br \/>\n        .NbData &#061; 1,<br \/>\n        .DdrMode &#061; QSPI_DDR_MODE_DISABLE,<br \/>\n        .DdrHoldHalfCycle &#061; QSPI_DDR_HHC_DISABLE,<br \/>\n        .SIOOMode &#061; QSPI_SIOO_INST_EVERY_CMD<br \/>\n    }, HAL_QPSI_TIMEOUT_DEFAULT_VALUE);<\/p>\n<p>    \/\/ \u53d1\u9001\u6570\u636e<br \/>\n    HAL_QSPI_Transmit(&amp;hqspi, &amp;data, HAL_QPSI_TIMEOUT_DEFAULT_VALUE);<\/p>\n<p>    \/\/ \u7247\u9009\u7981\u7528<br \/>\n    HAL_QSPI_Abort(&amp;hqspi);<br \/>\n}<\/p>\n<p>\/\/ LVGL\u5237\u65b0\u56de\u8c03&#xff08;\u5c06\u56fe\u50cf\u6570\u636e\u5199\u5165\u6db2\u6676\u5c4f&#xff09;<br \/>\nstatic void disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p) {<br \/>\n    \/\/ \u8bbe\u7f6e\u6db2\u6676\u5c4f\u663e\u793a\u533a\u57df&#xff08;area-&gt;x1, area-&gt;y1\u5230area-&gt;x2, area-&gt;y2&#xff09;<br \/>\n    lcd_set_window(area-&gt;x1, area-&gt;y1, area-&gt;x2, area-&gt;y2);<\/p>\n<p>    \/\/ \u8ba1\u7b97\u6570\u636e\u957f\u5ea6&#xff08;\u50cf\u7d20\u6570\u00d72\u5b57\u8282\/\u50cf\u7d20&#xff09;<br \/>\n    uint32_t length &#061; (area-&gt;x2 &#8211; area-&gt;x1 &#043; 1) * (area-&gt;y2 &#8211; area-&gt;y1 &#043; 1) * 2;<\/p>\n<p>    \/\/ \u901a\u8fc7QSPI\u53d1\u9001\u56fe\u50cf\u6570\u636e<br \/>\n    HAL_QSPI_Command(&amp;hqspi, &amp;(QSPI_CommandTypeDef){<br \/>\n        .Instruction &#061; 0x2C,  \/\/ \u5199\u5165GRAM\u547d\u4ee4<br \/>\n        .InstructionMode &#061; QSPI_INSTRUCTION_1_LINE,<br \/>\n        .AddressMode &#061; QSPI_ADDRESS_NONE,<br \/>\n        .DataMode &#061; QSPI_DATA_4_LINES,  \/\/ 4\u7ebf\u6a21\u5f0f\u52a0\u901f\u4f20\u8f93<br \/>\n        .DummyCycles &#061; 0,<br \/>\n        .NbData &#061; length,<br \/>\n        .DdrMode &#061; QSPI_DDR_MODE_DISABLE,<br \/>\n        .DdrHoldHalfCycle &#061; QSPI_DDR_HHC_DISABLE,<br \/>\n        .SIOOMode &#061; QSPI_SIOO_INST_EVERY_CMD<br \/>\n    }, HAL_QPSI_TIMEOUT_DEFAULT_VALUE);<\/p>\n<p>    HAL_QSPI_Transmit(&amp;hqspi, (uint8_t*)color_p, HAL_QPSI_TIMEOUT_DEFAULT_VALUE);<br \/>\n    HAL_QSPI_Abort(&amp;hqspi);<\/p>\n<p>    \/\/ \u901a\u77e5LVGL\u5237\u65b0\u5b8c\u6210<br \/>\n    lv_disp_flush_ready(disp);<br \/>\n}<\/p>\n<h4>2. CAN FD \u6570\u636e\u63a5\u6536\u4e0e\u89e3\u6790<\/h4>\n<p>c<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>\/\/ CAN FD\u521d\u59cb\u5316<br \/>\nvoid can_fd_init(void) {<br \/>\n    \/\/ \u8fc7\u6ee4\u5668\u914d\u7f6e&#xff08;\u63a5\u6536\u6240\u6709\u65e0\u4eba\u673a\u6570\u636e\u5e27&#xff09;<br \/>\n    CAN_FilterTypeDef filter &#061; {<br \/>\n        .FilterActivation &#061; ENABLE,<br \/>\n        .FilterBank &#061; 0,<br \/>\n        .FilterMode &#061; CAN_FILTERMODE_IDMASK,<br \/>\n        .FilterScale &#061; CAN_FILTERSCALE_32BIT,<br \/>\n        .FilterIdHigh &#061; 0x0000,<br \/>\n        .FilterIdLow &#061; 0x0000,<br \/>\n        .FilterMaskIdHigh &#061; 0x0000,<br \/>\n        .FilterMaskIdLow &#061; 0x0000,<br \/>\n        .FilterFIFOAssignment &#061; CAN_RX_FIFO0<br \/>\n    };<br \/>\n    HAL_CAN_ConfigFilter(&amp;hcan1, &amp;filter);<\/p>\n<p>    \/\/ \u542f\u52a8CAN FD\u5e76\u4f7f\u80fd\u63a5\u6536\u4e2d\u65ad<br \/>\n    HAL_CAN_Start(&amp;hcan1);<br \/>\n    HAL_CAN_ActivateNotification(&amp;hcan1, CAN_IT_RX_FIFO0_MSG_PENDING);<br \/>\n}<\/p>\n<p>\/\/ CAN FD\u63a5\u6536\u4e2d\u65ad\u56de\u8c03<br \/>\nvoid HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan) {<br \/>\n    CAN_RxHeaderTypeDef rx_header;<br \/>\n    uint8_t rx_data[64];  \/\/ CAN FD\u6700\u5927\u6570\u636e\u957f\u5ea664\u5b57\u8282<\/p>\n<p>    if (HAL_CAN_GetRxMessage(hcan, CAN_RX_FIFO0, &amp;rx_header, rx_data) &#061;&#061; HAL_OK) {<br \/>\n        \/\/ \u6839\u636eID\u89e3\u6790\u6570\u636e&#xff08;\u65e0\u4eba\u673a\u81ea\u5b9a\u4e49\u534f\u8bae&#xff09;<br \/>\n        switch (rx_header.StdId) {<br \/>\n            case 0x101:  \/\/ \u98de\u884c\u72b6\u6001\u5e27&#xff08;\u9ad8\u5ea6\u3001\u7535\u91cf\u7b49&#xff09;<br \/>\n                parse_flight_status(rx_data, rx_header.DLC);<br \/>\n                break;<br \/>\n            case 0x102:  \/\/ \u7535\u673a\u72b6\u6001\u5e27<br \/>\n                parse_motor_status(rx_data, rx_header.DLC);<br \/>\n                break;<br \/>\n            \/\/ \u5176\u4ed6\u5e27\u7c7b\u578b&#8230;<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>\/\/ \u89e3\u6790\u98de\u884c\u72b6\u6001\u5e27&#xff08;\u793a\u4f8b&#xff1a;rx_data[0-3]\u4e3a\u9ad8\u5ea6&#xff0c;rx_data[4]\u4e3a\u7535\u91cf&#xff09;<br \/>\nstatic void parse_flight_status(uint8_t *data, uint8_t len) {<br \/>\n    if (len &lt; 5) return;<br \/>\n    \/\/ \u9ad8\u5ea6&#xff08;float\u7c7b\u578b&#xff0c;\u5c0f\u7aef\u683c\u5f0f&#xff09;<br \/>\n    float height;<br \/>\n    memcpy(&amp;height, data, 4);<br \/>\n    altitude_update(height);<\/p>\n<p>    \/\/ \u7535\u91cf&#xff08;\u767e\u5206\u6bd4&#xff09;<br \/>\n    battery_update(data[4]);<br \/>\n}<\/p>\n<p>\/\/ \u89e3\u6790\u7535\u673a\u72b6\u6001\u5e27&#xff08;\u793a\u4f8b&#xff1a;rx_data[0-3]\u4e3a4\u8def\u7535\u673a\u8f6c\u901f\u767e\u5206\u6bd4&#xff09;<br \/>\nstatic void parse_motor_status(uint8_t *data, uint8_t len) {<br \/>\n    if (len &lt; 4) return;<br \/>\n    for (int i &#061; 0; i &lt; 4; i&#043;&#043;) {<br \/>\n        motor_speed_update(i, data[i]);<br \/>\n    }<br \/>\n}<\/p>\n<h4>3. \u6309\u952e\u5904\u7406<\/h4>\n<p>c<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>\/\/ \u6309\u952e\u626b\u63cf\u4efb\u52a1&#xff08;FreeRTOS\u4efb\u52a1&#xff09;<br \/>\nvoid key_scan_task(void *arg) {<br \/>\n    uint8_t key_state[5] &#061; {1,1,1,1,1};  \/\/ \u521d\u59cb\u72b6\u6001&#xff08;\u672a\u6309\u4e0b&#xff09;<br \/>\n    uint8_t key_prev[5] &#061; {1,1,1,1,1};   \/\/ \u4e0a\u4e00\u72b6\u6001<\/p>\n<p>    while (1) {<br \/>\n        \/\/ \u8bfb\u53d65\u4e2a\u6309\u952e\u72b6\u6001&#xff08;0&#061;\u6309\u4e0b&#xff0c;1&#061;\u672a\u6309\u4e0b&#xff09;<br \/>\n        key_state[0] &#061; HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_0);  \/\/ \u7535\u6e90\u952e<br \/>\n        key_state[1] &#061; HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_1);  \/\/ \u83dc\u5355\u952e<br \/>\n        key_state[2] &#061; HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_2);  \/\/ \u4e0a\u9009\u62e9\u952e<br \/>\n        key_state[3] &#061; HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_3);  \/\/ \u4e0b\u9009\u62e9\u952e<br \/>\n        key_state[4] &#061; HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_4);  \/\/ \u786e\u8ba4\u952e<\/p>\n<p>        \/\/ \u68c0\u6d4b\u6309\u952e\u4e0b\u964d\u6cbf&#xff08;\u6309\u4e0b\u4e8b\u4ef6&#xff09;<br \/>\n        for (int i &#061; 0; i &lt; 5; i&#043;&#043;) {<br \/>\n            if (key_state[i] &#061;&#061; 0 &amp;&amp; key_prev[i] &#061;&#061; 1) {<br \/>\n                key_handler(i);  \/\/ \u5904\u7406\u6309\u952e\u4e8b\u4ef6<br \/>\n            }<br \/>\n            key_prev[i] &#061; key_state[i];<br \/>\n        }<\/p>\n<p>        osDelay(20);  \/\/ 20ms\u626b\u63cf\u4e00\u6b21&#xff0c;\u53bb\u6296<br \/>\n    }<br \/>\n}<\/p>\n<p>\/\/ \u6309\u952e\u4e8b\u4ef6\u5904\u7406<br \/>\nstatic void key_handler(uint8_t key_id) {<br \/>\n    switch (key_id) {<br \/>\n        case 1:  \/\/ \u83dc\u5355\u952e<br \/>\n            ui_switch_view();  \/\/ \u5207\u6362\u754c\u9762\u89c6\u56fe<br \/>\n            break;<br \/>\n        case 2:  \/\/ \u4e0a\u9009\u62e9\u952e<br \/>\n            ui_param_increase();  \/\/ \u53c2\u6570\u589e\u52a0<br \/>\n            break;<br \/>\n        case 3:  \/\/ \u4e0b\u9009\u62e9\u952e<br \/>\n            ui_param_decrease();  \/\/ \u53c2\u6570\u51cf\u5c11<br \/>\n            break;<br \/>\n        case 4:  \/\/ \u786e\u8ba4\u952e<br \/>\n            ui_param_confirm();  \/\/ \u786e\u8ba4\u53c2\u6570<br \/>\n            break;<br \/>\n        \/\/ \u7535\u6e90\u952e\u5904\u7406&#xff08;\u7565&#xff09;<br \/>\n    }<br \/>\n}<\/p>\n<h3>\u7cfb\u7edf\u96c6\u6210\u4e0e\u4e3b\u7a0b\u5e8f<\/h3>\n<p>c<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>\/\/ \u4e3b\u7a0b\u5e8f\u5165\u53e3<br \/>\nint main(void) {<br \/>\n    \/\/ \u786c\u4ef6\u521d\u59cb\u5316<br \/>\n    HAL_Init();<br \/>\n    SystemClock_Config();  \/\/ \u914d\u7f6e400MHz\u7cfb\u7edf\u65f6\u949f<br \/>\n    MX_GPIO_Init();<br \/>\n    MX_QSPI_Init();<br \/>\n    MX_CAN1_Init();<br \/>\n    MX_TIM6_Init();  \/\/ LVGL\u65f6\u57fa<br \/>\n    MX_FREERTOS_Init();  \/\/ \u521d\u59cb\u5316FreeRTOS<\/p>\n<p>    \/\/ \u5916\u8bbe\u521d\u59cb\u5316<br \/>\n    qspi_lcd_init();  \/\/ QSPI\u6db2\u6676\u5c4f\u521d\u59cb\u5316<br \/>\n    can_fd_init();    \/\/ CAN FD\u521d\u59cb\u5316<\/p>\n<p>    \/\/ LVGL\u521d\u59cb\u5316<br \/>\n    lv_init();<br \/>\n    lv_port_disp_init();  \/\/ \u7ed1\u5b9a\u663e\u793a\u9a71\u52a8<br \/>\n    ui_init();  \/\/ \u521d\u59cb\u5316\u754c\u9762\u5143\u7d20<\/p>\n<p>    \/\/ \u521b\u5efa\u4efb\u52a1<br \/>\n    osThreadNew(key_scan_task, NULL, &amp;key_scan_task_attributes);<br \/>\n    osThreadNew(ui_refresh_task, NULL, &amp;ui_refresh_task_attributes);<\/p>\n<p>    \/\/ \u542f\u52a8\u8c03\u5ea6\u5668<br \/>\n    osKernelStart();<\/p>\n<p>    while (1) {<br \/>\n        \/\/ \u4e3b\u5faa\u73af&#xff08;FreeRTOS\u8c03\u5ea6\u5668\u8fd0\u884c\u540e\u4e0d\u4f1a\u6267\u884c\u5230\u8fd9\u91cc&#xff09;<br \/>\n    }<br \/>\n}<\/p>\n<p>\/\/ \u754c\u9762\u5237\u65b0\u4efb\u52a1&#xff08;100ms\u4e00\u6b21&#xff09;<br \/>\nvoid ui_refresh_task(void *arg) {<br \/>\n    while (1) {<br \/>\n        lv_task_handler();  \/\/ \u5904\u7406LVGL\u4efb\u52a1<br \/>\n        osDelay(10);  \/\/ 10ms\u4e00\u6b21&#xff0c;\u4fdd\u8bc1\u754c\u9762\u6d41\u7545<br \/>\n    }<br \/>\n}<\/p>\n<h3>\u6d4b\u8bd5\u4e0e\u8c03\u8bd5<\/h3>\n<h4>\u5173\u952e\u6d4b\u8bd5\u9879<\/h4>\n<li>\n<p>QSPI \u663e\u793a\u6d4b\u8bd5&#xff1a;<\/p>\n<ul>\n<li>\u6d4b\u8bd5\u5185\u5bb9&#xff1a;\u5168\u5c4f\u7eaf\u8272\u586b\u5145&#xff08;\u7ea2 \/ \u7eff \/ \u84dd&#xff09;\u3001\u7070\u5ea6\u6e10\u53d8\u3001\u5b57\u7b26\u663e\u793a\u3002<\/li>\n<li>\u9a8c\u6536\u6807\u51c6&#xff1a;\u65e0\u82b1\u5c4f\u3001\u65e0\u62d6\u5f71&#xff0c;\u989c\u8272\u8fc7\u6e21\u5747\u5300\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>CAN FD \u901a\u4fe1\u6d4b\u8bd5&#xff1a;<\/p>\n<ul>\n<li>\u6d4b\u8bd5\u5de5\u5177&#xff1a;CANoe \u4eff\u771f\u65e0\u4eba\u673a\u6570\u636e\u5e27&#xff08;0x101\u30010x102 \u7b49 ID&#xff09;\u3002<\/li>\n<li>\u9a8c\u6536\u6807\u51c6&#xff1a;\u63a5\u6536\u6210\u529f\u7387 100%&#xff0c;\u6570\u636e\u89e3\u6790\u6b63\u786e&#xff0c;\u754c\u9762\u66f4\u65b0\u5ef6\u8fdf &lt; 100ms\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u6309\u952e\u529f\u80fd\u6d4b\u8bd5&#xff1a;<\/p>\n<ul>\n<li>\u6d4b\u8bd5\u5185\u5bb9&#xff1a;\u8fde\u7eed\u6309\u952e 5000 \u6b21&#xff0c;\u68c0\u67e5\u662f\u5426\u6709\u8bef\u89e6\u53d1\u6216\u5931\u6548\u3002<\/li>\n<li>\u9a8c\u6536\u6807\u51c6&#xff1a;\u54cd\u5e94\u7387 100%&#xff0c;\u65e0\u7c98\u8fde\u73b0\u8c61\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7cfb\u7edf\u7a33\u5b9a\u6027\u6d4b\u8bd5&#xff1a;<\/p>\n<ul>\n<li>\u6d4b\u8bd5\u65b9\u6cd5&#xff1a;\u8fde\u7eed\u8fd0\u884c 24 \u5c0f\u65f6&#xff0c;\u6a21\u62df\u632f\u52a8&#xff08;\u53ef\u9009&#xff09;\u3002<\/li>\n<li>\u9a8c\u6536\u6807\u51c6&#xff1a;\u65e0\u6b7b\u673a\u3001\u65e0\u6570\u636e\u4e22\u5931&#xff0c;\u754c\u9762\u6b63\u5e38\u5237\u65b0\u3002<\/li>\n<\/ul>\n<\/li>\n<h4>\u5e38\u89c1\u95ee\u9898\u89e3\u51b3<\/h4>\n<table>\n<tr>\u95ee\u9898\u539f\u56e0\u89e3\u51b3\u65b9\u6848<\/tr>\n<tbody>\n<tr>\n<td>QSPI \u4f20\u8f93\u6570\u636e\u9519\u8bef<\/td>\n<td>\u65f6\u949f\u9891\u7387\u8fc7\u9ad8&#xff08;&gt;80MHz&#xff09;\u6216\u5e03\u7ebf\u4e0d\u826f<\/td>\n<td>\u964d\u4f4e QSPI \u65f6\u949f\u81f3 60MHz&#xff0c;\u4f18\u5316 PCB \u5e03\u7ebf&#xff08;\u7f29\u77ed\u7ebf\u957f&#xff0c;\u963b\u6297\u5339\u914d&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>CAN FD \u63a5\u6536\u4e22\u5e27<\/td>\n<td>\u6ce2\u7279\u7387\u914d\u7f6e\u9519\u8bef\u6216 FIFO \u6ea2\u51fa<\/td>\n<td>\u91cd\u65b0\u6821\u51c6 CAN FD \u6ce2\u7279\u7387&#xff0c;\u5728\u4e2d\u65ad\u4e2d\u53ca\u65f6\u5904\u7406\u6570\u636e&#xff08;\u51cf\u5c11\u8017\u65f6\u64cd\u4f5c&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u754c\u9762\u5361\u987f<\/td>\n<td>LVGL \u7f13\u5b58\u4e0d\u8db3\u6216\u5237\u65b0\u9891\u7387\u8fc7\u9ad8<\/td>\n<td>\u786e\u4fdd LV_MEM_SIZE\u2265768KB&#xff0c;\u9650\u5236\u754c\u9762\u5143\u7d20\u6570\u91cf&#xff08;\u51cf\u5c11\u91cd\u7ed8\u533a\u57df&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u6309\u952e\u8bef\u89e6\u53d1<\/td>\n<td>\u65e0\u786c\u4ef6\u6d88\u6296\u6216\u626b\u63cf\u9891\u7387\u8fc7\u4f4e<\/td>\n<td>\u589e\u52a0 10K\u03a9 \u4e0b\u62c9\u7535\u963b &#043; 100nF \u7535\u5bb9\u6d88\u6296&#xff0c;\u63d0\u9ad8\u626b\u63cf\u9891\u7387\u81f3 50Hz<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u603b\u7ed3\u4e0e\u5c55\u671b<\/h3>\n<p>\u672c\u65b9\u6848\u57fa\u4e8e STM32 \u4e0e QSPI \u5c4f\u6784\u5efa\u4e86\u65e0\u4eba\u673a\u4e13\u7528 MFD&#xff0c;\u901a\u8fc7 CAN FD \u603b\u7ebf\u5b9e\u73b0\u9ad8\u901f\u6570\u636e\u4ea4\u4e92&#xff0c;\u7269\u7406\u6309\u952e\u64cd\u4f5c\u7b80\u5355\u53ef\u9760&#xff0c;\u91cd\u70b9\u5448\u73b0\u4e86\u5269\u4f59\u7535\u91cf\u3001\u7535\u673a\u8f6c\u901f\u3001\u60ac\u505c\u9ad8\u5ea6\u7b49\u6838\u5fc3\u53c2\u6570\u3002\u65b9\u6848\u4f18\u52bf\u5728\u4e8e&#xff1a;<\/p>\n<\/p>\n<li>\u786c\u4ef6\u7cbe\u7b80&#xff1a;\u76f4\u63a5 QSPI \u9a71\u52a8\u6db2\u6676\u5c4f&#xff0c;\u7701\u53bb RGB \u8f6c\u6362\u6a21\u5757&#xff0c;\u964d\u4f4e\u6210\u672c\u4e0e\u6545\u969c\u7387\u3002<\/li>\n<li>\u5b9e\u65f6\u6027\u5f3a&#xff1a;CAN FD \u603b\u7ebf\u652f\u6301 8Mbps \u4f20\u8f93\u901f\u7387&#xff0c;\u914d\u5408 10Hz \u754c\u9762\u5237\u65b0\u7387&#xff0c;\u6ee1\u8db3\u65e0\u4eba\u673a\u6570\u636e\u5b9e\u65f6\u6027\u9700\u6c42\u3002<\/li>\n<li>\u4e13\u7528\u6027\u7a81\u51fa&#xff1a;\u754c\u9762\u5e03\u5c40\u9488\u5bf9\u65e0\u4eba\u673a\u53c2\u6570\u4f18\u5316&#xff0c;\u5173\u952e\u4fe1\u606f\u4e00\u76ee\u4e86\u7136\u3002<\/li>\n<p>\u672a\u6765\u53ef\u6269\u5c55\u65b9\u5411&#xff1a;<\/p>\n<ul>\n<li>\u589e\u52a0\u6570\u636e\u8bb0\u5f55\u529f\u80fd&#xff08;\u901a\u8fc7 SD \u5361\u5b58\u50a8\u98de\u884c\u53c2\u6570&#xff09;\u3002<\/li>\n<li>\u5f00\u53d1\u591a\u89c6\u56fe\u5207\u6362&#xff08;\u5982\u589e\u52a0\u59ff\u6001\u4eea\u8868\u3001\u822a\u7ebf\u89c4\u5212\u89c6\u56fe&#xff09;\u3002<\/li>\n<li>\u96c6\u6210\u65e0\u7ebf\u6570\u4f20\u6a21\u5757&#xff08;\u5982 4G&#xff09;&#xff0c;\u652f\u6301\u8fdc\u7a0b\u76d1\u63a7\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb217\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\u672c\u9879\u76ee\u8bbe\u8ba1\u4e86\u4e00\u79cd\u57fa\u4e8eSTM32H743\u7684\u65e0\u4eba\u673a\u4e13\u7528\u591a\u529f\u80fd\u663e\u793a\u5668\uff0c\u91c7\u7528QSPI\u63a5\u53e3\u76f4\u63a5\u9a71\u52a87\u5bf8\u6db2\u6676\u5c4f\uff0c\u901a\u8fc7CANFD\u603b\u7ebf\u5b9e\u73b0\u4e0e\u98de\u63a7\u7cfb\u7edf\u7684\u9ad8\u901f\u6570\u636e\u4ea4\u4e92\u3002\u7cfb\u7edf\u786c\u4ef6\u65b9\u6848\u7cbe\u7b80\u53ef\u9760\uff0c\u8f6f\u4ef6\u57fa\u4e8eLVGL\u56fe\u5f62\u5e93\u5b9e\u73b0\u65e0\u4eba\u673a\u6838\u5fc3\u53c2\u6570\uff08\u7535\u91cf\u3001\u8f6c\u901f\u3001\u9ad8\u5ea6\u7b49\uff09\u7684\u76f4\u89c2\u663e\u793a\uff0c\u5e76\u901a\u8fc7\u7269\u7406\u6309\u952e\u5b8c\u6210\u64cd\u4f5c\u63a7\u5236\u3002\u65b9\u6848\u5177\u6709\u6570\u636e\u5237\u65b0\u5feb\uff08\u226510Hz\uff09\u3001\u54cd\u5e94\u8fc5\u901f\uff08\u2264100ms\uff09\u7b49\u7279\u70b9\uff0c\u7ecf\u8fc7\u4e25\u683c\u6d4b\u8bd5\u9a8c\u8bc1\u4e86\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\u3002\u8be5\u8bbe\u8ba1\u4e3a\u65e0\u4eba\u673a\u5730\u9762\u63a7\u5236\u63d0\u4f9b\u4e86\u4e13\u4e1a\u5316\u7684\u663e\u793a\u89e3\u51b3\u65b9\u6848\uff0c\u5e76\u4e3a\u672a\u6765\u529f\u80fd\u6269\u5c55\u9884\u7559\u4e86\u63a5\u53e3\u3002<\/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":[5251,269,3267,5252,5253],"topic":[],"class_list":["post-52393","post","type-post","status-publish","format-standard","hentry","category-server","tag-lvgl","tag-269","tag-3267","tag-5252","tag-5253"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u4e8e STM32 \u4e0eLVGL\uff0c 7\u5bf8QSPI \u5c4f\u7684\u65e0\u4eba\u673a MFD \u4eea\u8868\u65b9\u6848\u5b9e\u8df5 - \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\/52393.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u4e8e STM32 \u4e0eLVGL\uff0c 7\u5bf8QSPI \u5c4f\u7684\u65e0\u4eba\u673a MFD \u4eea\u8868\u65b9\u6848\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb217\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\u672c\u9879\u76ee\u8bbe\u8ba1\u4e86\u4e00\u79cd\u57fa\u4e8eSTM32H743\u7684\u65e0\u4eba\u673a\u4e13\u7528\u591a\u529f\u80fd\u663e\u793a\u5668\uff0c\u91c7\u7528QSPI\u63a5\u53e3\u76f4\u63a5\u9a71\u52a87\u5bf8\u6db2\u6676\u5c4f\uff0c\u901a\u8fc7CANFD\u603b\u7ebf\u5b9e\u73b0\u4e0e\u98de\u63a7\u7cfb\u7edf\u7684\u9ad8\u901f\u6570\u636e\u4ea4\u4e92\u3002\u7cfb\u7edf\u786c\u4ef6\u65b9\u6848\u7cbe\u7b80\u53ef\u9760\uff0c\u8f6f\u4ef6\u57fa\u4e8eLVGL\u56fe\u5f62\u5e93\u5b9e\u73b0\u65e0\u4eba\u673a\u6838\u5fc3\u53c2\u6570\uff08\u7535\u91cf\u3001\u8f6c\u901f\u3001\u9ad8\u5ea6\u7b49\uff09\u7684\u76f4\u89c2\u663e\u793a\uff0c\u5e76\u901a\u8fc7\u7269\u7406\u6309\u952e\u5b8c\u6210\u64cd\u4f5c\u63a7\u5236\u3002\u65b9\u6848\u5177\u6709\u6570\u636e\u5237\u65b0\u5feb\uff08\u226510Hz\uff09\u3001\u54cd\u5e94\u8fc5\u901f\uff08\u2264100ms\uff09\u7b49\u7279\u70b9\uff0c\u7ecf\u8fc7\u4e25\u683c\u6d4b\u8bd5\u9a8c\u8bc1\u4e86\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\u3002\u8be5\u8bbe\u8ba1\u4e3a\u65e0\u4eba\u673a\u5730\u9762\u63a7\u5236\u63d0\u4f9b\u4e86\u4e13\u4e1a\u5316\u7684\u663e\u793a\u89e3\u51b3\u65b9\u6848\uff0c\u5e76\u4e3a\u672a\u6765\u529f\u80fd\u6269\u5c55\u9884\u7559\u4e86\u63a5\u53e3\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/52393.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-11T05:54:22+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=\"9 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/52393.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/52393.html\",\"name\":\"\u57fa\u4e8e STM32 \u4e0eLVGL\uff0c 7\u5bf8QSPI \u5c4f\u7684\u65e0\u4eba\u673a MFD \u4eea\u8868\u65b9\u6848\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-11T05:54:22+00:00\",\"dateModified\":\"2025-08-11T05:54:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/52393.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/52393.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/52393.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u57fa\u4e8e STM32 \u4e0eLVGL\uff0c 7\u5bf8QSPI \u5c4f\u7684\u65e0\u4eba\u673a MFD \u4eea\u8868\u65b9\u6848\u5b9e\u8df5\"}]},{\"@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":"\u57fa\u4e8e STM32 \u4e0eLVGL\uff0c 7\u5bf8QSPI \u5c4f\u7684\u65e0\u4eba\u673a MFD \u4eea\u8868\u65b9\u6848\u5b9e\u8df5 - \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\/52393.html","og_locale":"zh_CN","og_type":"article","og_title":"\u57fa\u4e8e STM32 \u4e0eLVGL\uff0c 7\u5bf8QSPI \u5c4f\u7684\u65e0\u4eba\u673a MFD \u4eea\u8868\u65b9\u6848\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb217\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\u672c\u9879\u76ee\u8bbe\u8ba1\u4e86\u4e00\u79cd\u57fa\u4e8eSTM32H743\u7684\u65e0\u4eba\u673a\u4e13\u7528\u591a\u529f\u80fd\u663e\u793a\u5668\uff0c\u91c7\u7528QSPI\u63a5\u53e3\u76f4\u63a5\u9a71\u52a87\u5bf8\u6db2\u6676\u5c4f\uff0c\u901a\u8fc7CANFD\u603b\u7ebf\u5b9e\u73b0\u4e0e\u98de\u63a7\u7cfb\u7edf\u7684\u9ad8\u901f\u6570\u636e\u4ea4\u4e92\u3002\u7cfb\u7edf\u786c\u4ef6\u65b9\u6848\u7cbe\u7b80\u53ef\u9760\uff0c\u8f6f\u4ef6\u57fa\u4e8eLVGL\u56fe\u5f62\u5e93\u5b9e\u73b0\u65e0\u4eba\u673a\u6838\u5fc3\u53c2\u6570\uff08\u7535\u91cf\u3001\u8f6c\u901f\u3001\u9ad8\u5ea6\u7b49\uff09\u7684\u76f4\u89c2\u663e\u793a\uff0c\u5e76\u901a\u8fc7\u7269\u7406\u6309\u952e\u5b8c\u6210\u64cd\u4f5c\u63a7\u5236\u3002\u65b9\u6848\u5177\u6709\u6570\u636e\u5237\u65b0\u5feb\uff08\u226510Hz\uff09\u3001\u54cd\u5e94\u8fc5\u901f\uff08\u2264100ms\uff09\u7b49\u7279\u70b9\uff0c\u7ecf\u8fc7\u4e25\u683c\u6d4b\u8bd5\u9a8c\u8bc1\u4e86\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\u3002\u8be5\u8bbe\u8ba1\u4e3a\u65e0\u4eba\u673a\u5730\u9762\u63a7\u5236\u63d0\u4f9b\u4e86\u4e13\u4e1a\u5316\u7684\u663e\u793a\u89e3\u51b3\u65b9\u6848\uff0c\u5e76\u4e3a\u672a\u6765\u529f\u80fd\u6269\u5c55\u9884\u7559\u4e86\u63a5\u53e3\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/52393.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-11T05:54:22+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"9 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/52393.html","url":"https:\/\/www.wsisp.com\/helps\/52393.html","name":"\u57fa\u4e8e STM32 \u4e0eLVGL\uff0c 7\u5bf8QSPI \u5c4f\u7684\u65e0\u4eba\u673a MFD \u4eea\u8868\u65b9\u6848\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-11T05:54:22+00:00","dateModified":"2025-08-11T05:54:22+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/52393.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/52393.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/52393.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u57fa\u4e8e STM32 \u4e0eLVGL\uff0c 7\u5bf8QSPI \u5c4f\u7684\u65e0\u4eba\u673a MFD \u4eea\u8868\u65b9\u6848\u5b9e\u8df5"}]},{"@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\/52393","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=52393"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/52393\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=52393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=52393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=52393"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=52393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}