{"id":2273,"date":"2023-01-10T00:50:38","date_gmt":"2023-01-09T16:50:38","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=2273"},"modified":"2023-08-29T16:24:55","modified_gmt":"2023-08-29T08:24:55","slug":"petalinux_gpio_test","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2023\/01\/10\/petalinux_gpio_test\/","title":{"rendered":"ZYNQ linux\u5f00\u53d1 \u7ae0\u8282\u516d Petalinux \u4e0bGPIO\uff08EMIO\u65b9\u5f0f\uff09\u7684\u8f93\u5165\u8f93\u51fa\u5b9e\u9a8c\u4e00 \u2014\u2014sysfs\u65b9\u5f0f\uff08Tiny FPGA\u7248\uff09"},"content":{"rendered":"\n<p>\u672c\u6587\u5c06\u5728petalinux\u4e0b\u5b8c\u6210 GPIO\u7684\u8f93\u5165\u8f93\u51fa\u529f\u80fd\u3002\u5176\u4e2d\u8f93\u51fa\u529f\u80fd\u5c06\u7528LED\u706f\u6765\u6f14\u793a\uff0c\u8f93\u5165\u529f\u80fd\u7528\u677f\u5b50\u4e0a\u7684\u6309\u952e\u6765\u6f14\u793a<\/p>\n\n\n\n<p>vivado \u7248\u672c\u662f2018.3\u7248 \uff0c\u5176\u4ed6\u7248\u672c\u8bf7\u81ea\u884c\u5c1d\u8bd5<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Vivado \u90e8\u5206\u7684\u5de5\u7a0b\u521b\u5efa\uff08Vivado \u521b\u5efa\u8fc7\u7a0b\u548c\u4e4b\u524d\u7684\u5de5\u7a0b\u6709\u90e8\u5206\u96f7\u540c\uff0c\u53ef\u4ee5\u9009\u62e9\u6027\u5bf9\u7684\u8df3\u770b\uff09<\/h2>\n\n\n\n<p>1\uff09\u6253\u5f00Vivado \u65b0\u5efa\u4e00\u4e2a\u9879\u76ee\uff0c \u65b0\u5efa\u4e00\u4e2aVIVADO \u5de5\u7a0b\uff0c\u6253\u5f00\u8f6f\u4ef6 \u9009\u4e2dCreate Project, \u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"230\" height=\"136\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/Create-Project.png\" alt=\"\" class=\"wp-image-35\"\/><\/figure>\n\n\n\n<p>2\uff09\u70b9\u51fbNEXT \uff0c\u5728\u51fa\u73b0\u7684\u7b2c\u4e8c\u4e2a\u5bf9\u8bdd\u6846\u201cProject name\u201d\u4e2d\u8f93\u5165\u5de5\u7a0b\u540d\uff1b\u5728\u201cProject location\u201d\u4e2d\u9009\u62e9\u4fdd\u5b58\u8def\u5f84\uff1b\u52fe\u9009\u201cCreate project subdirectory\u201d\uff08\u9ed8\u8ba4\uff09\uff0c\u6700\u540e\u70b9\u51fb\u201cNext\u201d&nbsp;<strong>\u5907\u6ce8\uff0c\u6240\u6709\u7684\u8def\u5f84\u5747\u4e0d\u80fd\u51fa\u73b0\u4e2d\u6587\u540d\u79f0<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"568\" height=\"211\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-3.png\" alt=\"\" class=\"wp-image-2276\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-3.png 568w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-3-300x111.png 300w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/figure>\n\n\n\n<p>3)\u70b9\u51fb RTL PROJECT \u9009\u9879\uff0c\u70b9\u51fbNEXT<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"466\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image.png\" alt=\"\" class=\"wp-image-40\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image.png 681w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-300x205.png 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/figure>\n\n\n\n<p>4\uff09 \u7b2c\u56db\u6b65Add Sources \u9009\u9879\u76f4\u63a5\u7559\u7a7a\uff0cNEXT<\/p>\n\n\n\n<p>5\uff09\u7b2c\u4e94\u6b65Add Constraints \u9009\u9879\u76f4\u63a5\u7559\u7a7a\uff0cNEXT<\/p>\n\n\n\n<p>6\uff09\u9009\u62e9\u82af\u7247\u578b\u53f7 \u6211\u4eec\u677f\u5b50\u4e0a\u7528\u7684\u82af\u7247\u662fXC7Z010 \uff0c\u5e76\u5728\u5217\u8868\u680f\u4e2d\u9009\u62e9\u5bf9\u5e94\u7684\u5c01\u88c5\u578b\u53f7\uff0c\u5b8c\u6574\u578b\u53f7\u662fXC7Z010CLG400-1 \u5982\u4e0b\u6240\u793a\uff0c\u9009\u4e2d\u540e\u70b9NEXT<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"774\" height=\"622\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-1.png\" alt=\"\" class=\"wp-image-42\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-1.png 774w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-1-300x241.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-1-768x617.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>7\uff09\u786e\u8ba4\u6240\u9009\u4fe1\u606f \u70b9\u51fb\u201cFinish\u201d\uff0c\u5b8c\u6210vivado\u7684\u5de5\u7a0b\u521b\u5efa<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"650\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-4.png\" alt=\"\" class=\"wp-image-46\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-4.png 770w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-4-300x253.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/07\/image-4-768x648.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e \u5de5\u7a0b\u5c31\u65b0\u5efa\u597d\u4e86\uff0c vivado \u8fdb\u5165\u5230\u5f00\u53d1\u754c\u9762<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"738\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-172-1024x738.png\" alt=\"\" class=\"wp-image-1829\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-172-1024x738.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-172-300x216.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-172-768x553.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-172.png 1285w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Block Design \u90e8\u5206\u521b\u5efa<\/h2>\n\n\n\n<p>\u6b64\u5904\u9700\u8981\u521b\u5efa\u4e00\u4e2aZYNQ CORE \uff0c\u5e76\u5728ZYNQ CORE\u4e2d\u8bbe\u7f6eDDR \u4ee5\u53caUART\u7b49\u53c2\u6570<\/p>\n\n\n\n<p><strong>UART\u6b64\u5904\u7528 EMIO\u65b9\u5f0f\u8fde\u63a5\uff08Tiny FPGA \u4ee5\u53ca EBAZ4205\u8f6c\u63a5\u677f\u90fd\u7528EMIO\u7684\u65b9\u5f0f\u8fde\u63a5\uff09<\/strong><\/p>\n\n\n\n<p>1\uff09\u521b\u5efa\u4e00\u4e2aBLOCK\u8bbe\u8ba1<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"283\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-173.png\" alt=\"\" class=\"wp-image-1830\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-173.png 660w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-173-300x129.png 300w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure>\n\n\n\n<p>2)\u641c\u7d22\u5e76\u6dfb\u52a0ZYNQ7 Processing System\uff0c\u6dfb\u52a0ZYNQ7 PROCESSING SYSTEM\u6a21\u5757<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"369\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-174.png\" alt=\"\" class=\"wp-image-1831\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-174.png 586w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-174-300x189.png 300w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/figure>\n\n\n\n<p>3\uff09\u8f6f\u4ef6\u81ea\u52a8\u751f\u6210\u4e86\u4e00\u4e2a zynq\u7684block \u5982\u4e0b\u56fe\u6240\u793a\uff0c\u63a5\u4e0b\u6765\u8981\u505a\u4e00\u4e9b\u76f8\u5e94\u7684\u8bbe\u7f6e\uff0c\u53cc\u51fb\u4e0b\u56fe\u4e2d\u7684ZYNQ\u6838<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"457\" height=\"203\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-175.png\" alt=\"\" class=\"wp-image-1832\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-175.png 457w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-175-300x133.png 300w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/figure>\n\n\n\n<p>4\uff09\u5728zynq\u4e2d\u8bbe\u7f6eDDR\u529f\u80fd\uff1a<\/p>\n\n\n\n<p>\u4f9d\u6b21\u5728\u5f39\u7a97\u91cc\u627e\u5230DDR Configuration\u2192DDR Controller Configuration\u2192DDR3\uff0c\u5728Memory Part\u4e0b\u62c9\u83dc\u5355\u4e2d\u6839\u636e\u81ea\u5df1\u677f\u5b50\u4e0a\u7684DDR\u6765\u9009\u62e9\u76f8\u5e94\u7684DDR3\uff0c\u672c\u5b9e\u9a8c\u6240\u7528\u5230\u578b\u53f7\uff1aMT41K128M16JT 125\uff0c\u6570\u636e\u4f4d\u5bbd\u9009\u62e916bit \u6700\u540e\u70b9\u51fb\u201cOK\u201d,\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"977\" height=\"493\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-5.png\" alt=\"\" class=\"wp-image-188\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-5.png 977w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-5-300x151.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-5-768x388.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>5) \u6dfb\u52a0 uart\u529f\u80fd\uff0c\u56e0\u4e3a\u677f\u5b50\u7684UART\u529f\u80fd\u662f\u8fde\u63a5\u5728PL\u7aef\u7684\uff0c\u6240\u4ee5\u8fd9\u91cc\u9009EMIO\u65b9\u5f0f<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"664\" height=\"210\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-177.png\" alt=\"\" class=\"wp-image-1840\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-177.png 664w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-177-300x95.png 300w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/><\/figure>\n\n\n\n<p>6). \u8fd9\u4e00\u6b65\u548c\u4e0a\u4e00\u4e2a\u5de5\u7a0b\u4e0d\u4e00\u6837\uff0c\u9700\u8981\u5728block design \u7684\u8bbe\u7f6e\u754c\u9762 \u4f7f\u80fdSD\u7684\u529f\u80fd\uff08\u4e4b\u524d\u7684\u5de5\u7a0b\u662fQSPI\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"617\" height=\"317\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-80.png\" alt=\"\" class=\"wp-image-2199\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-80.png 617w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-80-300x154.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/figure>\n\n\n\n<p>\u589e\u52a04\u8defGPIO (EMIO\u65b9\u5f0f)\uff0c\u5176\u4e2d\u4e24\u8def\u7528\u6765\u70b9\u4eaeLED\u706f\uff0c\u4e24\u8def\u7528\u6765\u8bfb\u5165\u6309\u952e\u7684\u503c<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"415\" height=\"175\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-4.png\" alt=\"\" class=\"wp-image-2278\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-4.png 415w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-4-300x127.png 300w\" sizes=\"auto, (max-width: 415px) 100vw, 415px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>7\uff09\u968f\u540e\u70b9OK \u4fdd\u5b58\u4fee\u6539\uff0c \u70b9\u51fb\u201cRun Block Automation\u201d\u5982\u4e0b\u56fe\u6240\u793a\u3002\u5728\u5f39\u51fa\u7684\u9009\u9879\u4e2d\u4fdd\u6301\u9ed8\u8ba4\uff0c\u70b9\u51fb\u201cOK\u201d\uff0c\u5373\u53ef\u5b8c\u6210\u5bf9ZYNQ7 Processing System\u7684\u914d\u7f6e<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"552\" height=\"247\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-178.png\" alt=\"\" class=\"wp-image-1841\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-178.png 552w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-178-300x134.png 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/figure>\n\n\n\n<p>8\uff09\u7528\u9f20\u6807\u8fde\u63a5FCLK_CLK\u548c M_AXI_GP0_ACLK\uff0c\u5f97\u5230\u4e0b\u56fe<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"268\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-5.png\" alt=\"\" class=\"wp-image-823\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-5.png 738w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-5-300x109.png 300w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/figure>\n\n\n\n<p>9\uff09\u53f3\u952eUART_0\u9009\u62e9Make External<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"753\" height=\"247\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-6.png\" alt=\"\" class=\"wp-image-824\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-6.png 753w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-6-300x98.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>\u7528\u540c\u6837\u7684\u65b9\u6cd5\u53f3\u952eGPIO_0 \u9009\u62e9Make External <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"674\" height=\"393\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-5.png\" alt=\"\" class=\"wp-image-2280\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-5.png 674w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-5-300x175.png 300w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/figure>\n\n\n\n<p>7\uff09source\u2192Design Source \uff0c\u53f3\u952e\u6211\u4eec\u521b\u5efa\u7684BLOCK\u5de5\u7a0b\uff0c\u70b9\u51fbcreate HDL wrapper\uff0c\u6253\u5305BLOCK\u6587\u4ef6\u5e76\u751f\u6210.v\u4ee3\u7801<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"534\" height=\"182\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-179.png\" alt=\"\" class=\"wp-image-1842\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-179.png 534w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-179-300x102.png 300w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/figure>\n\n\n\n<p>8) \u70b9\u51fb\u7eff\u8272\u7bad\u5934RUN \u5bf9\u4ee3\u7801\u8fdb\u884c\u7f16\u8bd1<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"162\" height=\"71\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-180.png\" alt=\"\" class=\"wp-image-1843\"\/><\/figure>\n\n\n\n<p>9) \u5b8c\u6210\u540e\u70b9\u51fbRTL \u4e2d\u7684SCHEMATIC , \u5e76\u9009\u62e9\u53f3\u8fb9\u51fa\u73b0\u7684 IO Ports \u6765\u589e\u52a0UART 0 EMIO\u90e8\u5206\u7684\u7ba1\u811a\u5b9a\u4e49(\u8fd9\u4e00\u6b65\u4e5f\u53ef\u4ee5\u5728\u7ea6\u675f\u6587\u4ef6\u4e2d\u5b9a\u4e49, \u53ef\u770b\u4e4b\u524d\u7684\u4f8b\u5b50)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"482\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-7-1024x482.png\" alt=\"\" class=\"wp-image-825\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-7-1024x482.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-7-300x141.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-7-768x361.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/07\/image-7.png 1490w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5c06 UART \u90e8\u5206\u7684 TX RX \u5206\u522b\u8bbe\u7f6e\u6210 U13\uff0cT12 \u7535\u538b\u5c5e\u6027\u8bbe\u7f6e\u6210 LVCMOS33, \u4e4b\u540e\u4fdd\u5b58\uff08\u4fdd\u5b58\u7684\u65f6\u5019\u4f1a\u8ba9\u4f60\u7ed9\u7ea6\u675f\u6587\u4ef6\u547d\u540d\uff0c\u81ea\u884c\u5b9a\u4e49\u5c31\u597d\uff09 \u5269\u4e0b4\u4e2aGPIO \u5206\u522b\u63a5F16 G15 F20 D18 \u5206\u522b\u5bf9\u5e94\u4e24\u4e2aLED\u706f\u548c\u4e24\u4e2a\u6309\u952e<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"231\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-6-1024x231.png\" alt=\"\" class=\"wp-image-2285\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-6-1024x231.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-6-300x68.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-6-768x173.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-6.png 1055w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>10) \u751f\u6210bit\u6587\u4ef6 :\u6309\u4e0bGenerate Bitstream \u5b8c\u6210\u7efc\u5408\u4ee5\u53ca\u751f\u6210bit\u6587\u4ef6\uff0c\u7b49\u5f85\u5f39\u51fa\u7efc\u5408\u5b8c\u6210\u7684\u7a97\u53e3<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"303\" height=\"203\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-18.png\" alt=\"\" class=\"wp-image-204\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-18.png 303w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-18-300x201.png 300w\" sizes=\"auto, (max-width: 303px) 100vw, 303px\" \/><\/figure>\n\n\n\n<p>11\uff09File\u2192Export\u2192Export hardware\u2026\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u4e2d\u52fe\u9009\u201cinclude bitstream\u201d\uff0c\u70b9\u51fb\u201cOK\u201d\u786e\u8ba4\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"462\" height=\"541\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-20.png\" alt=\"\" class=\"wp-image-207\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-20.png 462w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-20-256x300.png 256w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"332\" height=\"252\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-24.png\" alt=\"\" class=\"wp-image-211\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-24.png 332w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-24-300x228.png 300w\" sizes=\"auto, (max-width: 332px) 100vw, 332px\" \/><\/figure>\n\n\n\n<p>12\uff09File\u2192Lauch SDK\uff0c\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u4e2d\uff0c\u4fdd\u5b58\u9ed8\u8ba4\uff0c\u70b9\u51fb\u201cOK\u201d\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"361\" height=\"285\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-21.png\" alt=\"\" class=\"wp-image-212\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-21.png 361w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-21-300x237.png 300w\" sizes=\"auto, (max-width: 361px) 100vw, 361px\" \/><\/figure>\n\n\n\n<p>\u7cfb\u7edf\u5c06\u81ea\u52a8\u6253\u5f00SDK\u5f00\u53d1\u73af\u5883<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"998\" height=\"748\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-22.png\" alt=\"\" class=\"wp-image-213\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-22.png 998w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-22-300x225.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-22-768x576.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5176\u4e2dSDK\u5de5\u7a0b\u4e0b\u7684 \u4e0b\u56fehdf\u6587\u4ef6\u5c31\u662f\u6211\u4eec\u9700\u8981\u7684\u7cfb\u7edf\u786c\u4ef6\u63cf\u8ff0\u6587\u4ef6\uff0c\u8fd9\u4e2a\u9700\u8981\u4ea4\u7ed9petalinux \u8fdb\u884c\u4ea4\u53c9\u7f16\u8bd1\u7528\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"286\" height=\"381\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-181.png\" alt=\"\" class=\"wp-image-1845\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-181.png 286w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-181-225x300.png 225w\" sizes=\"auto, (max-width: 286px) 100vw, 286px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PetaLinux \u5de5\u7a0b\u521b\u5efa<\/h2>\n\n\n\n<p>1\uff09\u6253\u5f00\u865a\u62df\u673a\u4e0b\u7684 Ubuntu\u7cfb\u7edf\uff0c\u6253\u5f00\u547d\u4ee4\u884c<\/p>\n\n\n\n<p>\u8f93\u5165 source \/opt\/pkg\/petalinux\/2018.3\/settings.sh \u5bf9Petalinux \u7684\u73af\u5883\u8fdb\u884c\u52a0\u8f7d<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">source \/opt\/pkg\/petalinux\/2018.3\/settings.sh<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"585\" height=\"177\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-189.png\" alt=\"\" class=\"wp-image-1857\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-189.png 585w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-189-300x91.png 300w\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" \/><\/figure>\n\n\n\n<p>2\uff09\u5728Ubuntu\u4e0b\u521b\u5efa\u5de5\u7a0b\u76ee\u5f55\uff08\u8fd9\u91cc\u7528\u56fe\u5f62\u754c\u9762\u7684\u65b9\u5f0f\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5\u7528mkdir\u7684\u65b9\u5f0f\uff09<\/p>\n\n\n\n<p>  \u5728home\u6587\u4ef6\u5939\u4e0b \u521b\u5efa\u4e00\u4e2aPetalinux\u6587\u4ef6\u5939\uff08\u524d\u4e24\u4e2a\u7ae0\u8282\u5df2\u7ecf\u521b\u5efa\u4e86\uff09\uff0c\u53ef\u4ee5\u56fe\u5f62\u754c\u9762\u6253\u5f00Home \u6587\u4ef6\u5939\u7136\u540e\u76f4\u63a5\u53f3\u952e\u65b0\u5efa\u4e00\u4e2aPetalinux <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"584\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-183.png\" alt=\"\" class=\"wp-image-1848\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-183.png 956w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-183-300x183.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-183-768x469.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>3\uff09 \u521b\u5efaPetalinux \u5de5\u7a0b<\/p>\n\n\n\n<p>\u5728\u5de5\u7a0b\u6587\u4ef6\u5939\u7684\u7a7a\u767d\u5904 \u53f3\u952e\uff0c\u7136\u540e\u70b9\u9009Open in Terminal \u6253\u5f00\u7ec8\u7aef\u547d\u4ee4\u884c\uff08\u8fd9\u79cd\u65b9\u5f0f\u6253\u5f00\u547d\u4ee4\u884c\u4f1a\u81ea\u52a8\u5b9a\u4f4d\u5230\u5f53\u524d\u6587\u4ef6\u5939\uff09\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5\u666e\u901a\u65b9\u5f0f\u6253\u5f00\u7ec8\u7aef \uff0c\u518d\u7528CD\u7684\u65b9\u5f0f\u5b9a\u4f4d\u5230\u6b64\u6587\u4ef6\u5939<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"668\" height=\"417\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-188.png\" alt=\"\" class=\"wp-image-1855\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-188.png 668w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-188-300x187.png 300w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><\/figure>\n\n\n\n<p><strong>(\u5907\u6ce8 \u5982\u679c\u7528\u6b64\u65b9\u6cd5\uff0c\u5fc5\u987b\u91cd\u65b0\u5728\u8fd9\u4e2a\u65b0\u6253\u5f00\u7684\u547d\u4ee4\u884c\u4e2d\u5bf9petalinux \u5f00\u53d1\u73af\u5883\u8fdb\u884c\u9884\u52a0\u8f7d\uff0c\u5426\u5219\u540e\u9762\u4f1a\u5931\u8d25\uff0c\u6bcf\u6b21\u6253\u5f00\u65b0\u7684\u547d\u4ee4\u884c\u90fd\u9700\u8981\u6267\u884c\u8fd9\u4e2a\u547d\u4ee4)<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">source \/opt\/pkg\/petalinux\/2018.3\/settings.sh<\/pre>\n\n\n\n<p>\u5728\u547d\u4ee4\u884c\u8f93\u5165\uff0c\u6765\u521b\u5efa\u4e00\u4e2aPetalinux_GPIO_TEST\u7684\u5de5\u7a0b<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">petalinux-create --type project --template zynq --name Petalinux_GPIO_TEST<\/pre>\n\n\n\n<p>\u6309\u4e0b\u56de\u8f66\u540e \u540d\u4e3aPetalinux_GPIO_TEST\u7684\u5de5\u7a0b\u4f1a\u88ab\u521b\u5efa\uff0c\u5e76\u4e14\u521a\u624d\u7684\u6587\u4ef6\u5939\u4e0b\u591a\u4e86\u4e00\u4e2a\u5bf9\u5e94\u7684\u5de5\u7a0b\u6587\u4ef6\u5939<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"590\" height=\"246\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-10.png\" alt=\"\" class=\"wp-image-2304\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-10.png 590w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-10-300x125.png 300w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/figure>\n\n\n\n<p>\u4e3a\u4e86\u65b9\u4fbf\u4ee5\u540e\u7684\u5de5\u7a0b\u7ba1\u7406\uff0c\u6211\u4eec\u5c06\u521a\u624d\u751f\u6210\u7684system.hdf \u4e5f\u62d6\u5230Petalinux_GPIO_TEST\u6587\u4ef6\u5939\u4e2d<\/p>\n\n\n\n<p>4\uff09 \u590d\u5236hdf\u6587\u4ef6\u5230\u521a\u624d\u521b\u5efa\u7684\u5de5\u7a0b\u6587\u4ef6\u5939\u4e2d<\/p>\n\n\n\n<p>\u5728\u56fe\u5f62\u754c\u9762\u4e0b\u53cc\u51fb\u6253\u5f00\u8fd9\u4e2aPetalinux \u6587\u4ef6\u5939<\/p>\n\n\n\n<p>\u6253\u5f00\u521a\u624dSDK\u7684\u8f6f\u4ef6\u754c\u9762\uff0c \u53f3\u952ehdf\u6587\u4ef6\uff0c\u9009\u62e9copy \u590d\u5236<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"383\" height=\"476\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-184.png\" alt=\"\" class=\"wp-image-1851\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-184.png 383w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-184-241x300.png 241w\" sizes=\"auto, (max-width: 383px) 100vw, 383px\" \/><\/figure>\n\n\n\n<p>\u7136\u540e\u5728\u56fe\u5f62\u754c\u9762\u6253\u5f00 Ubuntu \u7684Petalinux \u6587\u4ef6\u5939\u4e0b\u7684Petalinux_GPIO_TEST\u6587\u4ef6\u5939\u5185\uff0c \u53f3\u952e\u7a7a\u767d\u5904 \u70b9\u9009Paste (\u7c98\u8d34)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"775\" height=\"467\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-11.png\" alt=\"\" class=\"wp-image-2306\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-11.png 775w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-11-300x181.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-11-768x463.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>5\uff09\u8bbe\u7f6e\u8def\u5f84\u5e76\u542f\u52a8Petalinux \u914d\u7f6e\u9875<\/p>\n\n\n\n<p>\u5728\u521a\u624d\u7684\u754c\u9762\u4e0b\u5148CD\u8fdb\u5165 \u5de5\u7a0b\u6587\u4ef6\u5939\uff08Petalinux_GPIO_TEST\uff09<strong>&nbsp;\u5907\u6ce8\uff08CD \u7684\u65f6\u5019 \u53ef\u4ee5\u8f93\u5165\u6587\u4ef6\u5939\u7684\u7b2c\u4e00\u4e2a\u5b57\u6bcd\u7136\u540e\u6309tab\u952e\uff0c\u8fd9\u6837\u76f8\u540c\u540d\u79f0\u7684\u6587\u4ef6\u5939\u5c31\u4f1a\u8df3\u51fa\u6765\uff09<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd Petalinux_GPIO_TEST<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"597\" height=\"124\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-12.png\" alt=\"\" class=\"wp-image-2307\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-12.png 597w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-12-300x62.png 300w\" sizes=\"auto, (max-width: 597px) 100vw, 597px\" \/><\/figure>\n\n\n\n<p>\u8fdb\u5165\u6587\u4ef6\u5939\u540e\uff0c\u6309\u4e0b\u4e0b\u5217\u4ee3\u7801\uff0c \u6307\u5b9a\u5bfc\u5165hdf\u7684\u8def\u5f84\uff08\u56e0\u4e3a\u662f\u5f53\u524d\u547d\u4ee4\u884c\u7684\u8def\u5f84\u6240\u4ee5\u8fd9\u91cc \u5e26\u4e00\u4e2a\u201d.\u201d\u5c31\u53ef\u4ee5\u4e86\uff0c\u4e0d\u7136=\u53f7\u540e\u8ddf\u5177\u4f53\u8def\u5f84\uff09 \u5e76\u6309\u4e0b\u56de\u8f66<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">petalinux-config --get-hw-description=.<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"724\" height=\"94\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-85.png\" alt=\"\" class=\"wp-image-2209\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-85.png 724w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-85-300x39.png 300w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/figure>\n\n\n\n<p> <\/p>\n\n\n\n<p>\u4e4b\u540e\u7cfb\u7edf\u5c06\u542f\u52a8\u914d\u7f6e\u9875 <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"739\" height=\"126\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-196.png\" alt=\"\" class=\"wp-image-1867\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-196.png 739w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-196-300x51.png 300w\" sizes=\"auto, (max-width: 739px) 100vw, 739px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"424\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-197.png\" alt=\"\" class=\"wp-image-1868\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-197.png 710w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-197-300x179.png 300w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/><\/figure>\n\n\n\n<p>6\uff09 \u5bf9Petalinux \u8fdb\u884c\u914d\u7f6e \uff08\u5927\u91cf\u5185\u5bb9\u548c\u4e4b\u524d\u7ae0\u8282\u56db\u91cd\u590d\uff0c\u53ef\u9009\u62e9\u770b\uff09<\/p>\n\n\n\n<p>a) \u4fee\u6539\u542f\u52a8\u9879<\/p>\n\n\n\n<p>\u7528\u952e\u76d8\u4e0a\u7684\u4e0a\u4e0b\u5de6\u53f3\u952e\u79fb\u52a8\u5149\u6807\uff0c\u9009\u62e9Subsystem AUTO Hardware Settings \u6309\u4e0b\u56de\u8f66\uff08\u6309\u4e24\u4e0bESC\u53ef\u4ee5\u9000\u56de\u4e0a\u4e00\u5c42\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"405\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-198.png\" alt=\"\" class=\"wp-image-1870\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-198.png 715w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-198-300x170.png 300w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9Advanced bootable images storage Settings \uff0c\u6309\u4e0b\u56de\u8f66<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"703\" height=\"415\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-199.png\" alt=\"\" class=\"wp-image-1871\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-199.png 703w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-199-300x177.png 300w\" sizes=\"auto, (max-width: 703px) 100vw, 703px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9 boot image settings\u9009\u9879 \u56de\u8f66<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"438\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-200.png\" alt=\"\" class=\"wp-image-1873\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-200.png 730w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-200-300x180.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9 image storage media \u56de\u8f66<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"688\" height=\"408\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-87.png\" alt=\"\" class=\"wp-image-2211\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-87.png 688w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-87-300x178.png 300w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9 primary sd\u5e76\u6309\u56de\u8f66(\u5982\u679c\u4f60\u5728vivado \u91cc\u8bbe\u7f6e\u4e86nand flash \u7b49\uff0c\u8fd9\u91cc\u5c31\u6709\u591a\u4e2a\u9009\u9879\u53ef\u9009\u4e86)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"314\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-88.png\" alt=\"\" class=\"wp-image-2212\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-88.png 649w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-88-300x145.png 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u8fde\u6309\u4e24\u6b21ESC \u53ef\u4ee5\u8fd4\u56de\u4e0a\u4e00\u7ea7\uff0c \u4e00\u76f4\u8fd4\u56de\uff0c\u76f4\u5230\u56de\u5230\u6700\u521d\u7684\u521d\u59cb\u754c\u9762<\/p>\n\n\n\n<p>b \uff09\u540c\u7406 \u5bf9kernel image settings \u4e5f\u8fdb\u884c\u8bbe\u7f6e ,ubsystem AUTO Hardware Settings \u6309\u4e0b\u56de\u8f66<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"405\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-198.png\" alt=\"\" class=\"wp-image-1870\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-198.png 715w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-198-300x170.png 300w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9Advanced bootable images storage Settings \uff0c\u6309\u4e0b\u56de\u8f66<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"703\" height=\"415\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-199.png\" alt=\"\" class=\"wp-image-1871\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-199.png 703w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-199-300x177.png 300w\" sizes=\"auto, (max-width: 703px) 100vw, 703px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"639\" height=\"409\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-89.png\" alt=\"\" class=\"wp-image-2213\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-89.png 639w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-89-300x192.png 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"671\" height=\"348\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-90.png\" alt=\"\" class=\"wp-image-2214\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-90.png 671w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-90-300x156.png 300w\" sizes=\"auto, (max-width: 671px) 100vw, 671px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u7528\u591a\u6b21\u53cc\u51fbESC\u7684\u65b9\u5f0f\u56de\u5230\u521d\u59cb\u83dc\u5355<\/p>\n\n\n\n<p>c\uff09 root \u6587\u4ef6\u7cfb\u7edf \u7c7b\u578b\u9009\u62e9<\/p>\n\n\n\n<p>\u9009\u62e9Image Packaging Configuration<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"727\" height=\"434\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-206.png\" alt=\"\" class=\"wp-image-1882\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-206.png 727w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-206-300x179.png 300w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9 Root filesystem type<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"431\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-207.png\" alt=\"\" class=\"wp-image-1883\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-207.png 736w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-207-300x176.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9 INITRAMFS\uff08\u8fd9\u91cc\u4e0d\u8981\u56e0\u4e3a\u662fTF\u542f\u52a8\u5c31\u9009\u62e9SD CARD\uff0c\u5426\u5219\u9700\u8981\u6784\u5efa\u6839\u6587\u4ef6\u7cfb\u7edf\uff0c\u8fd9\u4e2a\u6709\u65f6\u95f4\u540e\u9762\u7ae0\u8282\u518d\u5199\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"435\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-208.png\" alt=\"\" class=\"wp-image-1884\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-208.png 722w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-208-300x181.png 300w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u6309\u591a\u6b21ESC\u56de\u5230\u6839\u83dc\u5355<\/p>\n\n\n\n<p>d\uff09\u8bbe\u7f6e\u52a0\u8f7d\u4f4d\u7f6e\uff0c\u56e0\u4e3a\u677f\u5b50\u4e0a\u7684DDR\u662f256MB \u7684\uff0c\u800c\u9ed8\u8ba4\u7684\u52a0\u8f7d\u4f4d\u7f6e\u5df2\u7ecf\u8d85\u8fc7256M\u7684\u8fb9\u754c\u4e86\uff0c\u6240\u4ee5\u8fd9\u91cc\u9700\u8981\u8c03\u6574\u52a0\u8f7d\u4f4d\u7f6e<\/p>\n\n\n\n<p>\u9009\u62e9u-boot Configuration<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"682\" height=\"397\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-231.png\" alt=\"\" class=\"wp-image-1921\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-231.png 682w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-231-300x175.png 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/figure>\n\n\n\n<p>\u9009\u62e9 netboot offset \u9009\u9879 \u6309\u56de\u8f66<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"413\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-233.png\" alt=\"\" class=\"wp-image-1923\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-233.png 696w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-233-300x178.png 300w\" sizes=\"auto, (max-width: 696px) 100vw, 696px\" \/><\/figure>\n\n\n\n<p>\u4fee\u6539\u4e3a 0x08000000 \u6309OK \u786e\u8ba4 \uff080x08000000\u53ef\u4ee5\u4fee\u6539\u4e3a\u5176\u4ed6\u503c\uff0c\u5b83\u5f71\u54cduboot\u4e2dkernel\u7684\u52a0\u8f7d\u4f4d\u7f6e\uff0c\u4ee5\u4e0d\u4f1a\u8d85\u533a\u540c\u65f6\u4e0d\u4f1a\u8986\u76d6\u5176\u4ed6\u6587\u4ef6\u6570\u636e\u4e3a\u51c6\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"577\" height=\"230\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-234.png\" alt=\"\" class=\"wp-image-1924\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-234.png 577w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-234-300x120.png 300w\" sizes=\"auto, (max-width: 577px) 100vw, 577px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u6309\u591a\u6b21ESC\u56de\u5230\u6839\u83dc\u5355<\/p>\n\n\n\n<p>e)\u4fdd\u5b58\u8bbe\u7f6e \u9009\u62e9save \u5e76\u70b9\u9009ok \u5bf9\u8bbe\u7f6e\u8fdb\u884c\u4fdd\u5b58<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"418\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-209.png\" alt=\"\" class=\"wp-image-1886\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-209.png 702w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-209-300x179.png 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/figure>\n\n\n\n<p>f \uff09\u9000\u51fa \u8bbe\u7f6e\u754c\u9762<\/p>\n\n\n\n<p>\u4e3b\u83dc\u5355\u9009\u62e9EXIT \u9000\u51fa<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"456\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-211.png\" alt=\"\" class=\"wp-image-1890\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-211.png 735w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-211-300x186.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"425\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-210.png\" alt=\"\" class=\"wp-image-1887\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-210.png 710w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-210-300x180.png 300w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e \u7cfb\u7edf\u8fdb\u884c\u914d\u7f6e \uff0c\u6b64\u65f6\u7b49\u5f85\u914d\u7f6e\u7ed3\u675f<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"173\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-212.png\" alt=\"\" class=\"wp-image-1891\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-212.png 723w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-212-300x72.png 300w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/figure>\n\n\n\n<p><s>g) \u7b49\u5f85\u914d\u7f6e\u7ed3\u675f\u540e   \u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4 \u5bf9\u5185\u6838\u8fdb\u884c\u914d\u7f6e<\/s><strong>\uff08\u8fd9\u4e00\u6b65\u4e0d\u64cd\u4f5c \u6ca1\u5f71\u54cd\uff09<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><s>petalinux-config -c kernel<\/s><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"515\" height=\"212\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-13.png\" alt=\"\" class=\"wp-image-2310\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-13.png 515w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-13-300x123.png 300w\" sizes=\"auto, (max-width: 515px) 100vw, 515px\" \/><\/figure>\n\n\n\n<p><s>\u4e4b\u540e\u53c8\u662f\u6f2b\u957f\u7684\u7b49\u5f85<\/s><\/p>\n\n\n\n<p><s>\u4e4b\u540e\u5f39\u51fa\u4e86 KERNEL \u7684\u914d\u7f6e\u754c\u9762\uff0c\u8fd9\u91cc\u6211\u4eec\u4e0d\u9700\u8981\u4efb\u4f55\u4fee\u6539\u9ed8\u8ba4\u5373\u53ef\uff0c\u76f4\u63a5\u4fdd\u5b58<br>\u9000\u51fa<\/s><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"637\" height=\"390\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-14.png\" alt=\"\" class=\"wp-image-2313\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-14.png 637w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-14-300x184.png 300w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/figure>\n\n\n\n<p>h\uff09 \u7f16\u8bd1\u6574\u4e2a\u5de5\u7a0b<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">petalinux-build<\/pre>\n\n\n\n<p>\u4e4b\u540e\u53c8\u662f\u6f2b\u957f\u7684\u7b49\u5f85<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"772\" height=\"195\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-15.png\" alt=\"\" class=\"wp-image-2314\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-15.png 772w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-15-300x76.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-15-768x194.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u76f4\u63a5\u5230\u51fa\u73b0\u63d0\u793a successfully built project \u4ee3\u8868\u7f16\u8bd1\u5b8c\u6210\u4e86<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"742\" height=\"430\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-215.png\" alt=\"\" class=\"wp-image-1896\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-215.png 742w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-215-300x174.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>I) \u6253\u5305boot.bin<\/p>\n\n\n\n<p>\u7f16\u8bd1\u5b8c\u6210\u540e\uff0c\u9879\u76ee\u5de5\u7a0b\u6587\u4ef6\u5939\u4e0b\u4f1a\u6709image\u6587\u4ef6\u5939\uff0c\u6267\u884cpetalinux -package \u547d\u4ee4 \u5c06zynq_fsbl.elf, system_wrapper.bit\uff0cu-boot.elf,image.ub \u56db\u4e2a\u6587\u4ef6\u6253\u5305\u751f\u6210<br>BOOT.bin \u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">petalinux-package --boot --fsbl .\/images\/linux\/zynq_fsbl.elf --u-boot --fpga --kernel --force\n<\/pre>\n\n\n\n<p>\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u4ee3\u8868\u6253\u5305\u5b8c\u6210\uff08\u6709\u8b66\u544a\uff0c\u76f4\u63a5\u5ffd\u7565\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"346\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-16.png\" alt=\"\" class=\"wp-image-2317\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-16.png 683w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-16-300x152.png 300w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">TF\u542f\u52a8\u6d4b\u8bd5<\/h2>\n\n\n\n<p>\u5728Ubuntu \u7cfb\u7edf\u5185 \u6253\u5f00 \u5de5\u7a0b\u6587\u4ef6\u5939\u5185 \u7f16\u8bd1\u751f\u6210\u7684image\u6587\u4ef6\u5939<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"599\" height=\"295\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-17.png\" alt=\"\" class=\"wp-image-2318\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-17.png 599w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-17-300x148.png 300w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/figure>\n\n\n\n<p>\u518d\u6253\u5f00linux \u6587\u4ef6\u5939<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"225\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-18.png\" alt=\"\" class=\"wp-image-2319\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-18.png 450w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-18-300x150.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/figure>\n\n\n\n<p>\u590d\u5236\u8fd92\u4e2a\u6587\u4ef6 BOOT.bin\u3001image.ub<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"476\" height=\"342\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-22.png\" alt=\"\" class=\"wp-image-2329\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-22.png 476w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-22-300x216.png 300w\" sizes=\"auto, (max-width: 476px) 100vw, 476px\" \/><\/figure>\n\n\n\n<p>\u7136\u540e\u56de\u5230windows \u4e0b\uff0c\u7c98\u8d34\u5230\u683c\u5f0f\u4e3aFAT32\u7684 TF\u5361\u7684\u6839\u76ee\u5f55<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"404\" height=\"288\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-96.png\" alt=\"\" class=\"wp-image-2237\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-96.png 404w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-96-300x214.png 300w\" sizes=\"auto, (max-width: 404px) 100vw, 404px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"569\" height=\"187\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-95.png\" alt=\"\" class=\"wp-image-2236\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-95.png 569w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-95-300x99.png 300w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u6b63\u5e38\u9000\u51faTF\u5361\uff0c \u5e76\u5c06\u5361\u63d2\u5165\u5230 \u6211\u4eec\u7684\u4e3b\u677f\u4e0a<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e0a\u7535\u6d4b\u8bd5<\/h2>\n\n\n\n<p><strong>\u5c06\u8df3\u7ebf\u4f4d\u7f6e\u6362\u56de\u5230SD\u4e0a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"378\" height=\"531\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-97.png\" alt=\"\" class=\"wp-image-2239\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-97.png 378w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-97-214x300.png 214w\" sizes=\"auto, (max-width: 378px) 100vw, 378px\" \/><\/figure>\n\n\n\n<p><strong>\u5907\u6ce8 \u5b9e\u9645\u6d4b\u8bd5\u8fc7\u7a0b\u4e2d\u4f1a\u53d1\u73b0 \u865a\u62df\u673a \u548cwindows \u4e89\u62a2\u4e32\u53e3\u7684\u8d44\u6e90\u7684\u60c5\u51b5\uff0c\u5bfc\u81f4windows \u4e0b \u65e0\u6cd5\u8bbf\u95ee\u4e32\u53e3\uff0c\u6240\u4ee5\u8fd9\u91cc\u6d4b\u8bd5\u7684\u65f6\u5019\uff08\u628a\u4e32\u53e3\u9ed8\u8ba4\u8bbe\u7f6e\u8fde\u63a5\u5230windows \uff09 \u6216\u8005\u4e34\u65f6\u6302\u8d77\u865a\u62df\u673a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"529\" height=\"462\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-98.png\" alt=\"\" class=\"wp-image-2240\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-98.png 529w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/12\/image-98-300x262.png 300w\" sizes=\"auto, (max-width: 529px) 100vw, 529px\" \/><\/figure>\n\n\n\n<p>\u8bbe\u7f6e\u6210SD\u542f\u52a8\u540e<strong>\u91cd\u65b0\u4e0a\u7535\u540e<\/strong>\uff0c\u6253\u5f00\u4e32\u53e3\u52a9\u624b\uff0c\u6ce2\u7279\u7387\u8bbe\u7f6e\u6210115200 \uff0c\u4e4b\u540e\u6211\u4eec\u5c31\u80fd\u770b\u5230linux \u53d1\u51fa\u6765\u7684\u547d\u4ee4\u884c\u4e86\uff08\u8fd9\u91cc\u4e5f\u53ef\u4ee5\u7528 SDK \u81ea\u5e26\u7684Terminal \u529f\u80fd\uff0c\u5982\u4e0b\u56fe\u6253\u5f00\uff0c\u4e32\u53e3\u53f7\u6839\u636e\u5b9e\u9645\u7684\u9009\u62e9\uff0c\u5907\u6ce8\uff1a\u90e8\u5206JTAG\u4e0b\u8f7d\u5668\u5e26\u4e32\u53e3\u529f\u80fd\uff0c\u9009\u62e9\u4e32\u53e3\u6839\u636e\u5b9e\u9645\u7528\u7684\u54ea\u8def\u4e32\u53e3\u53bb\u9009\u62e9<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"920\" height=\"495\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-238.png\" alt=\"\" class=\"wp-image-1929\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-238.png 920w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-238-300x161.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/11\/image-238-768x413.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"592\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-23.png\" alt=\"\" class=\"wp-image-2330\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-23.png 705w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-23-300x252.png 300w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n\n\n\n<p>\u7cfb\u7edf\u6b64\u65f6\u505c\u7559\u5728\u7b49\u5f85\u8f93\u5165\u8d26\u53f7\u5bc6\u7801\u7684\u72b6\u6001, \u6b64\u65f6\u8f93\u5165\u7528\u6237\u540d root \u8f93\u5165\u5bc6\u7801 root \uff08\u4e0d\u540c\u7684\u4e32\u53e3\u52a9\u624b\u6709\u4e9b\u9700\u8981\u5e26\u56de\u8f66\uff09<\/p>\n\n\n\n<p>\u4e4b\u540e\u5c31\u6b63\u5f0f\u767b\u5f55 petalinux \u4e86<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"644\" height=\"589\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-24.png\" alt=\"\" class=\"wp-image-2331\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-24.png 644w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-24-300x274.png 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u5c31\u53ef\u4ee5\u8fdb\u884clinux \u7684\u64cd\u4f5c\u4e86 <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GPIO\u529f\u80fd\u9a8c\u8bc1\u4e00  \u70b9\u4eaeLED<\/h2>\n\n\n\n<p>\u6211\u4eec\u8fd9\u91cc\u76f4\u63a5\u7528\u6700\u6700\u539f\u59cb\u7684\u65b9\u5f0f\u6765\u9a71\u52a8GPIO\uff08sysfs\u65b9\u5f0f\uff09 \u9996\u5148\u6211\u4eec\u5c1d\u8bd5\u70b9\u4eaeLED\u706f<\/p>\n\n\n\n<p>\u5bf9GPIO\u7684\u64cd\u4f5c\u4e3b\u8981\u5206\u4e09\u6b65\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-preformatted\">\u2460\u5bfc\u5165IO\u5230\u7528\u6237\u7a7a\u95f4\uff1a\/sys\/class\/gpio\/export\n\necho &nbsp; &nbsp;960 &nbsp;&gt; &nbsp;export\n\n\u2461\u914d\u7f6eIO\uff1a\/sys\/class\/gpio\/direction\n\necho &nbsp; &nbsp; out &nbsp; &nbsp;&gt; &nbsp; direction &nbsp; &nbsp; # \u8f93\u51fa\n\necho &nbsp; &nbsp; in &nbsp; &nbsp;&gt; &nbsp; direction &nbsp; &nbsp; &nbsp; # \u8f93\u5165\n\n\u2462\u63a7\u5236IO\uff1a\/sys\/class\/gpio\/value\n\necho &nbsp; &nbsp; 1 &nbsp; &gt; value &nbsp; &nbsp; &nbsp; &nbsp;#\u8f93\u51fa\u9ad8\u7535\u5e73\n\necho &nbsp; &nbsp; 0 &nbsp; &gt; value &nbsp; &nbsp; &nbsp; &nbsp;#\u8f93\u51fa\u4f4e\u7535\u5e73<\/pre>\n<\/blockquote>\n\n\n\n<p>\u6309\u7167\u8fd9\u4e2a\u601d\u8def\u6211\u4eec\u6765\u5b9e\u9645\u64cd\u4f5c\u4e00\u4e0b<\/p>\n\n\n\n<p>a\uff09\u8fdb\u5165 \/sys\/class\/gpio\/ \u76ee\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd  \/sys\/class\/gpio\/ <\/pre>\n\n\n\n<p>b) \u67e5\u770b \u6587\u4ef6\u5939\u4e0b\u7684\u5185\u5bb9 <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ls<\/pre>\n\n\n\n<p>c)\u7531\u4e0b\u56fe\u53ef\u4ee5\u77e5\u9053\u7cfb\u7edf\u5df2\u7ecf\u8bc6\u522b\u51fa\u4e00\u4e2aGPIO\u8bbe\u5907   gpiochip906\u4e86<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"543\" height=\"181\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-25.png\" alt=\"\" class=\"wp-image-2332\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-25.png 543w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-25-300x100.png 300w\" sizes=\"auto, (max-width: 543px) 100vw, 543px\" \/><\/figure>\n\n\n\n<p><strong>gpiochip906\u7684\u8d77\u59cb\u7f16\u53f7\u662f 906 <\/strong>\uff0c\u56e0\u4e3a\u6211\u4eec\u7684\u677f\u5b50\u4e0aLED\u706f\u88ab\u914d\u7f6e\u5230EMIO\u76840 \u548cEMIO 1\u4e0a\u4e86\uff0c\u800cemio0 \u548cemio1\u5206\u522b\u5bf9\u5e9454\u548c55(\u7f16\u53f70-53\u5c5e\u4e8eMIO)\uff0c\u76f8\u5f53\u4e8e\u5bf9\u5e94linux \u7cfb\u7edf\u7684 gpio960\uff08906+54\uff09\u548cgpio961\uff08906+55\uff09<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\"><strong>\u5907\u6ce8  \u6709\u65f6\u5019gpiochip\u5e76\u4e0d\u662f906 \u4e5f\u53ef\u80fd\u662fshu905  904\uff0c \u8fd9\u6837\u5bf9\u5e94\u7684gpio \u6570\u5c31\u8981\u52a0\u4e0a\u5bf9\u5e94\u7684\u6570<\/strong><\/p>\n\n\n\n<p>d) \u8f93\u5165\u4e0b\u5217\u6307\u4ee4\u8f93\u5c06EMIO0 \u8282\u70b9\uff08\u5373LED\u706f\uff09\u5bfc\u5165\u7528\u6237\u7a7a\u95f4<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo 960 &gt; \/sys\/class\/gpio\/export<\/pre>\n\n\n\n<p>e) \u63a5\u4e0b\u6765\u6211\u4eec\u5c1d\u8bd5\u70b9\u4eaeLED\u706f\uff0c\u6211\u4eec\u9700\u8981\u7684\u64cd\u4f5c\u662f\u5c06\u8f93\u5165\u8f93\u51fa\u6539\u6210\u4e3a\u8f93\u51fa\u6a21\u5f0f\uff0c \u5e76\u4e14\u5c06LED\u706f\u5bf9\u5e94\u7684EMIO0 \uff08GPIO960\uff09\u8bbe\u7f6e\u4e3a\u9ad8\u7535\u5e73<\/p>\n\n\n\n<p>\u4e0b\u5217\u6307\u4ee4\u5c06GPIO960\u8bbe\u7f6e\u4e3a\u8f93\u51fa<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo out &gt; gpio960\/direction<\/pre>\n\n\n\n<p>\u8f93\u5165\u4e0b\u5217\u6307\u4ee4\u5c06GPIO960\u8bbe\u7f6e\u4e3a\u9ad8\u7535\u5e73<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo 1 &gt; gpio960\/value<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"557\" height=\"203\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-28.png\" alt=\"\" class=\"wp-image-2335\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-28.png 557w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-28-300x109.png 300w\" sizes=\"auto, (max-width: 557px) 100vw, 557px\" \/><\/figure>\n\n\n\n<p>\u6b64\u65f6LED\u706f\u88ab\u6b63\u5e38\u70b9\u4eae\u4e86\uff0c \u60f3\u8981\u5173\u95edLED\u706f\uff0c\u53ef\u4ee5\u628a  gpio960\/value \u8bbe\u7f6e\u4e3a0<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo 0 &gt; gpio960\/value<\/pre>\n\n\n\n<p>\u6b64\u65f6LED\u706f\u88ab\u7184\u706d<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>GPIO\u529f\u80fd\u9a8c\u8bc1\u4e8c   \u6309\u952e\u8bfb\u53d6<\/strong><\/h2>\n\n\n\n<p><strong>\u63a5\u4e0b\u6765\u6211\u4eec\u6765\u5c1d\u8bd5\u8bfb\u53d6\u6309\u952e\u7684\u503c<\/strong><\/p>\n\n\n\n<p><strong>gpiochip906\u7684\u8d77\u59cb\u7f16\u53f7\u662f 906 <\/strong>\uff0c\u56e0\u4e3a\u6211\u4eec\u7684\u677f\u5b50\u4e0aKEY\u88ab\u914d\u7f6e\u5230EMIO\u76842 \u548cEMIO 3\u4e0a\u4e86\uff0c\u800cemio0 \u548cemio1\u5206\u522b\u5bf9\u5e9456\u548c57(\u7f16\u53f70-53\u5c5e\u4e8eMIO)\uff0c\u76f8\u5f53\u4e8e\u5bf9\u5e94linux \u7cfb\u7edf\u7684 gpio962\uff08906+56\uff09\u548cgpio963\uff08906+57\uff09\uff0c<strong>\u6839\u636e\u4e4b\u524d\u8bbe\u7f6e  KEY1\u5bf9\u5e94\u7684\u662fgpio963<\/strong><\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\"><strong>\u5907\u6ce8  \u6709\u65f6\u5019gpiochip\u5e76\u4e0d\u662f906 \u4e5f\u53ef\u80fd\u662fshu905  904\uff0c \u8fd9\u6837\u5bf9\u5e94\u7684gpio \u6570\u5c31\u8981\u52a0\u4e0a\u5bf9\u5e94\u7684\u6570\uff0c\u67e5\u770bgpiochip \u7684\u65b9\u6cd5\u662f \u8fdb\u5165\/sys\/class\/gpio\/\u76ee\u5f55\u540e\uff0c\u7528ls\u547d\u4ee4\u67e5\u770b\u8bbe\u5907<\/strong><\/p>\n\n\n\n<p>a\uff09\u8fdb\u5165 \/sys\/class\/gpio\/ \u76ee\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd  \/sys\/class\/gpio\/ <\/pre>\n\n\n\n<p>b)  \u8f93\u5165\u4e0b\u5217\u6307\u4ee4\u8f93\u5c06EMIO2 \u8282\u70b9\uff08\u5373KEY1\uff09\u5bfc\u5165\u7528\u6237\u7a7a\u95f4<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo 963 &gt; \/sys\/class\/gpio\/export<\/pre>\n\n\n\n<p>c) \u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4e0b\u5217\u547d\u4ee4\u67e5\u770b\u5f53\u524d\u7684\u8f93\u5165\u8f93\u51fa\u72b6\u6001  <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat gpio963\/direction<\/pre>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\u8fd9\u91cc GPIO962\u9ed8\u8ba4\u5c31\u662f\u8f93\u5165\u72b6\u6001\u4e86<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"570\" height=\"215\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-30.png\" alt=\"\" class=\"wp-image-2340\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-30.png 570w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-30-300x113.png 300w\" sizes=\"auto, (max-width: 570px) 100vw, 570px\" \/><\/figure>\n\n\n\n<p>d) \u5982\u679c\u8f93\u5165\u8f93\u51fa\u72b6\u6001\u662fout \uff0c\u90a3\u6211\u4eec\u8fd9\u91cc\u9700\u8981\u7528\u4e0b\u5217\u547d\u4ee4\u5c06\u6a21\u5f0f\u4fee\u6539\u6210in<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo in &gt; gpio963\/direction<\/pre>\n\n\n\n<p>e )\u4e4b\u540e\u6211\u4eec\u901a\u8fc7\u4e0b\u5217\u6307\u4ee4\u6765\u67e5\u770b\u5f53\u524d\u7684\u6309\u952e\u503c\uff08\u8f93\u5165\u6307\u4ee4\u524d\uff0c\u6211\u4eec\u9700\u8981\u63d0\u524d\u6309\u4e0b\u6216\u8005\u677e\u5f00\u6309\u952e\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat gpio963\/value<\/pre>\n\n\n\n<p>\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5f53KEY1  (\u5373EMIO3 GPIO963)  \u6309\u4e0b\u65f6\uff0c\u8fd4\u56de\u7684value\u503c\u662f0\uff0c \u5f53KEY1 \u677e\u5f00\u65f6\u8fd4\u56de\u503c\u662f1<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"592\" height=\"287\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-31.png\" alt=\"\" class=\"wp-image-2341\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-31.png 592w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-31-300x145.png 300w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4ee5\u4e0a\u662fpetalinux \u7684GPIO \u8f93\u5165\u8f93\u51fa\u6d4b\u8bd5\u7684\u5b8c\u6574\u6d41\u7a0b\u3002 \u540e\u7eed\u6709\u65f6\u95f4 \u5c06\u5c1d\u8bd5\u8bbe\u5907\u6811\u548c\u9a71\u52a8\u7b49\u65b9\u5f0f\u6765\u8c03\u7528GPIO<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4ee5\u4e0b\u662f VIVADO \u7684\u5de5\u7a0b \uff08\u91cc\u9762\u7684image\u6587\u4ef6\u5939 \u91cc\u9762\u662f Ubuntu \u4e0b\u7f16\u8bd1\u7684\u955c\u50cf\u6587\u4ef6\uff0c\u5c06image \u6587\u4ef6\u5939\u91cc\u7684\u955c\u50cf\u590d\u5236\u5230fat32\u7684TF\u5361\u4e5f\u80fd\u770b\u6548\u679c\uff09\uff0c\u56e0\u4e3aubuntu\u4e0b\u5de5\u7a0b\u6bd4\u8f83\u5e9e\u5927\uff0c\u65e0\u6cd5\u4e0a\u4f20\uff0c\u6240\u4ee5\u5927\u5bb6\u6309\u7167\u4e0a\u9762\u63cf\u8ff0\u7684\u5185\u5bb9\u81ea\u884c\u521b\u5efa<\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-571aa178-ff99-46e2-bbb2-a3e4f9541a6b\" href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/06_Petalinux_GPIO_TEST.zip\">06_Petalinux_GPIO_TEST<\/a><a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/06_Petalinux_GPIO_TEST.zip\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-571aa178-ff99-46e2-bbb2-a3e4f9541a6b\">\u4e0b\u8f7d<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u5c06\u5728petalinux\u4e0b\u5b8c\u6210 GPIO\u7684\u8f93\u5165\u8f93\u51fa\u529f\u80fd\u3002\u5176\u4e2d\u8f93\u51fa\u529f\u80fd\u5c06\u7528LED\u706f\u6765\u6f14\u793a\uff0c\u8f93\u5165\u529f\u80fd\u7528\u677f\u5b50\u4e0a\u7684\u6309\u952e\u6765\u6f14\u793a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,13],"tags":[],"class_list":["post-2273","post","type-post","status-publish","format-standard","hentry","category-tiny-zynq","category-tiny-zynq-2"],"views":1528,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/2273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/comments?post=2273"}],"version-history":[{"count":35,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/2273\/revisions"}],"predecessor-version":[{"id":2383,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/2273\/revisions\/2383"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=2273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=2273"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=2273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}