{"id":580,"date":"2022-03-13T21:44:18","date_gmt":"2022-03-13T13:44:18","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=580"},"modified":"2025-05-11T10:31:40","modified_gmt":"2025-05-11T02:31:40","slug":"tf_card_boot","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2022\/03\/13\/tf_card_boot\/","title":{"rendered":"\u57fa\u4e8eEBAZ4205\u7684PS\u5b9e\u9a8c\u4e03 \u5c06\u7a0b\u5e8f\u653e\u7f6e\u5728TF\u5361\u5e76\u8fdb\u884cTF\u5361\u542f\u52a8\u6f14\u793a"},"content":{"rendered":"\n<p>ZYNQ \u6709\u591a\u79cd\u542f\u52a8\u65b9\u5f0f\u53ef\u4ee5\u9009\u62e9\uff0c\u9664\u4e86\u4e4b\u524d\u4ecb\u7ecd\u7684\u4eceNAND FLASH \u7684\u65b9\u5f0f\u6765\u542f\u52a8\u5916\uff0c\u8fd8\u53ef\u4ee5\u8ba9\u7cfb\u7edf\u4eceTF \u5361\u7684\u65b9\u5f0f\u6765\u542f\u52a8\uff0c\u672c\u6587\u5c06\u901a\u8fc7\u4e00\u4e2aEMIO \u70b9LED \u706f\u7684\u65b9\u5f0f\u6765\u6f14\u793a TF \u5361\u7684\u542f\u52a8\u8fc7\u7a0b\u3002<\/p>\n\n\n\n<p class=\"has-pale-pink-color has-text-color\">\u672c\u4f8b\u5b50\u6f14\u793a \u7528EMIO \u6620\u5c04\u5230PL\u7aef\u7684\u65b9\u5f0f\u6765\u9a71\u52a8LED\u706f\uff0c\u8fdb\u800c\u6f14\u793aTF\u5361\u542f\u52a8\u7684\u64cd\u4f5c\u8fc7\u7a0b\uff08\u4e24\u4e2aLED\u706f\u76f4\u63a5\u4f7f\u7528EMBAZ4205\u4e3b\u677f\u4e0a\u7684\u7ea2\u7eff\u706f\uff09<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">1<strong>\uff09ZYNQ\u542f\u52a8\u6d41\u7a0b<\/strong><\/h1>\n\n\n\n<p>1.\u9996\u5148\u4e86\u89e3ZYNQ\u7684\u542f\u52a8\u8fc7\u7a0b\uff0c ZYNQ\u7684\u542f\u52a8\u8fc7\u7a0b\u4ee5 ARM\u6838\u4e3a\u4e3b\uff0c \u4e0a\u7535\u540e \u786c\u4ef6\u5148\u8bfb\u53d6ARM\u6838PS\u7aef\u7684IO \u4ee5\u786e\u5b9a \u7cfb\u7edf\u4eceNAND \uff0cQSPI \uff0cSD Card\u8fd8\u662f JTAG \u542f\u52a8\u7cfb\u7edf\u3002 \uff08EBAZ4205\u677f\u5b50\u9ed8\u8ba4\u786c\u4ef6\u662f\u4eceNAND FLASH \u9a71\u52a8\u7684\uff09<\/p>\n\n\n\n<p>ZYNQ \u7684\u4e0d\u540c\u542f\u52a8\u65b9\u5f0f   \u4ee5\u53ca \u542f\u52a8\u76f8\u5173\u7684IO \u53ca\u9009\u9879\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5982\u679c\u9700\u8981\u8ba9\u7cfb\u7edf\u4eceSD\u5361\u6a21\u5f0f\u542f\u52a8<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"971\" height=\"622\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-32.png\" alt=\"\" class=\"wp-image-489\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-32.png 971w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-32-300x192.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-32-768x492.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u4e0b\u56fe\u662fEBAZ4205\u90e8\u5206\u542f\u52a8\u90e8\u5206\u7684\u914d\u7f6e\u7535\u963b\uff0c \u5176\u4e2dIO0\u5c31\u662f\u4e0a\u56fe\u4e2dZYNQ\u7684MIO5\uff0c IO1\u5c31\u662f\u4e0a\u56fe\u4e2d\u7684MIO4<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/11\/image-1-1024x498.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u6240\u4ee5\u8981\u4ece NAND FLASH \u542f\u52a8\u6539\u6210TF \u5361\u542f\u52a8  \u53ea\u9700\u8981\u5c06IO0 \u5373MIO5\u4ece\u4f4e\u7535\u5e73\u6539\u6210\u9ad8\u7535\u5e73\uff0c \u4e5f\u5c31\u662f\u5c06R2584\u7684 20K \u66f4\u6362\u4f4d\u7f6e\u5230R2577\u7684\u5730\u65b9\u5373\u53ef\uff08\u56fe\u4e0a\u7684\u4f4d\u7f6e\u662f NAND FLASH \u542f\u52a8\uff0c\u66f4\u6362\u8fd9\u4e2a\u7535\u963b\u7531\u4e0b\u9762\u53d8\u5230\u4e0a\u9762\u5373\u53ef\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"374\" height=\"409\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-4.png\" alt=\"\" class=\"wp-image-582\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-4.png 374w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-4-274x300.png 274w\" sizes=\"auto, (max-width: 374px) 100vw, 374px\" \/><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">3\uff09 \u8f6f\u4ef6\u90e8<strong>\u5206\u914d\u7f6e<\/strong><\/h1>\n\n\n\n<p>1.\u521b\u5efa\u5de5\u7a0b\u2013&gt;create block design\u2013&gt;\u201d+\u201d\u2013&gt;\u68c0\u7d22zynq7 processing system \u5e76\u6dfb\u52a0<\/p>\n\n\n\n<p>2.\u6dfb\u52a0ZYNQ 7\u5904\u7406\u5668\u6a21\u5757<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"505\" height=\"266\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-3.png\" alt=\"\" class=\"wp-image-186\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-3.png 505w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-3-300x158.png 300w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><\/figure>\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>\u5728MIO Configuration \u4e2d \u4f7f\u80fdSD 0\u7684\u529f\u80fd<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"575\" height=\"179\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-5.png\" alt=\"\" class=\"wp-image-584\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-5.png 575w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-5-300x93.png 300w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u63a5\u4e0b\u6765\u6dfb\u52a02\u8defEMIO \u7528\u4e8e\u70b9\u4eaeLED \u6765\u8fdb\u884c\u6f14\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"573\" height=\"288\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-6.png\" alt=\"\" class=\"wp-image-585\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-6.png 573w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-6-300x151.png 300w\" sizes=\"auto, (max-width: 573px) 100vw, 573px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4fdd\u5b58\u540e  \u70b9\u9009Run Block Automation \u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u5e76\u70b9OK<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"591\" height=\"312\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-7.png\" alt=\"\" class=\"wp-image-586\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-7.png 591w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-7-300x158.png 300w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/figure>\n\n\n\n<p>\u624b\u52a8\u8fde\u63a5 M_AXI_GP0_ACLK \u5230 FCLK_CLK0<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"652\" height=\"411\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-8.png\" alt=\"\" class=\"wp-image-587\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-8.png 652w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-8-300x189.png 300w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/figure>\n\n\n\n<p>\u53f3\u952e\u6846\u56fe\u91cc\u7684GPIO_0 \uff0c\u5e76\u9009MAKE EXTERNAL  \u6765\u62c9\u51faGPIO_0\u8d44\u6e90<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"744\" height=\"389\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-9.png\" alt=\"\" class=\"wp-image-588\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-9.png 744w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-9-300x157.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u70b9\u9009\u4fdd\u5b58\uff0c\u5e76\u70b9source\u2192Design Source \uff0c\u53f3\u952e\u6211\u4eec\u521b\u5efa\u7684BLOCK\u5de5\u7a0b\uff0c\u70b9\u51fbcreate HDL wrapper\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"446\" height=\"271\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-12.png\" alt=\"\" class=\"wp-image-195\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-12.png 446w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-12-300x182.png 300w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><\/figure>\n\n\n\n<p>\u5728\u5f39\u51fa\u7684\u5bf9\u9ec4\u6846\u91cc\u4fdd\u6301\u9ed8\u8ba4<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"492\" height=\"281\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-13.png\" alt=\"\" class=\"wp-image-196\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-13.png 492w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-13-300x171.png 300w\" sizes=\"auto, (max-width: 492px) 100vw, 492px\" \/><\/figure>\n\n\n\n<p>\u8f6f\u4ef6\u81ea\u52a8\u4e3a\u6211\u4eec\u751f\u6210HDL\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"375\" height=\"210\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-14.png\" alt=\"\" class=\"wp-image-197\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-14.png 375w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-14-300x168.png 300w\" sizes=\"auto, (max-width: 375px) 100vw, 375px\" \/><\/figure>\n\n\n\n<p>\u6309\u4e0b\u7eff\u8272\u7bad\u5934\u5bf9\u5de5\u7a0b\u8fdb\u884c\u7f16\u8bd1<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"115\" height=\"56\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-19.png\" alt=\"\" class=\"wp-image-206\"\/><\/figure>\n\n\n\n<p>\u6dfb\u52a0LED \u7684\u7ba1\u811a\u5b9a\u4e49<\/p>\n\n\n\n<p>RTL_ANALYSIS &#8211;&gt; Schematic &#8211;&gt; IO\/Ports<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"474\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-10-1024x474.png\" alt=\"\" class=\"wp-image-589\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-10-1024x474.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-10-300x139.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-10-768x356.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-10.png 1287w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u8fd9\u6b21\u6211\u4eec\u76f4\u63a5\u70b9\u4eae\u4e3b\u677f\u4e0a\u7684\u4e24\u4e2aLED\u6307\u793a\u706f\uff08\u975e\u8f6c\u63a5\u677f\u4e0a\u7684\u6307\u793a\u706f\uff09\uff0c\u6839\u636e\u539f\u7406\u56fe\u53ef\u4ee5\u770b\u5230\u4e24\u4e2a\u706f\u5206\u522b\u662f\u63a5\u5230W13\u548cW14\u4e0a\uff0c   \u5c06W13 \u548cW14\u586b\u5165\u4e24\u4e2aIO\u7684\u9009\u9879\u4e2d\uff0c\u5e76\u5c06\u7535\u5e73\u9009\u9879\u4fee\u6539\u62103.3<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"132\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-12-1024x132.png\" alt=\"\" class=\"wp-image-591\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-12-1024x132.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-12-300x39.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-12-768x99.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-12.png 1169w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u4fdd\u5b58\u8bbe\u7f6e\uff08\u4f1a\u63d0\u9192 \u521b\u5efa\u7ea6\u675f\u7684\u540d\u79f0\uff0c\u968f\u610f\u70b9\u5165\u5373\u53ef\uff09<\/p>\n\n\n\n<p>\u6309\u4e0bGenerate Bitstream \u5b8c\u6210\u7efc\u5408\u4ee5\u53ca\u751f\u6210bit\u6587\u4ef6<\/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<h1 class=\"wp-block-heading\">4<strong>&nbsp;SDK\u90e8\u5206\u914d\u7f6e<\/strong><\/h1>\n\n\n\n<p>1\uff09File\u2192Export\u2192Export hardware\u2026\uff0c\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>2\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<p>3\uff09\u518d\u521b\u5efa\u4e00\u4e2aLED \u5de5\u7a0b\uff0c\u8d1f\u8d23LED \u6307\u793a\u706f\u7684\u95ea\u70c1<\/p>\n\n\n\n<p>a. \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7a7a\u5de5\u7a0b,\u53ef\u4ee5\u53d6\u540d\u53ebLED<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"457\" height=\"405\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-18.png\" alt=\"\" class=\"wp-image-463\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-18.png 457w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-18-300x266.png 300w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/figure>\n\n\n\n<p>b.\u53f3\u952e\u5de5\u7a0bLED \u7684SRC\u76ee\u5f55\uff0c\u7136\u540e\u65b0\u5efa\u4e00\u4e2aSOURCE FILE<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"616\" height=\"450\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-19.png\" alt=\"\" class=\"wp-image-464\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-19.png 616w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-19-300x219.png 300w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/figure>\n\n\n\n<p>c.\u53d6\u540d main.c<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"493\" height=\"287\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-20.png\" alt=\"\" class=\"wp-image-465\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-20.png 493w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/01\/image-20-300x175.png 300w\" sizes=\"auto, (max-width: 493px) 100vw, 493px\" \/><\/figure>\n\n\n\n<p>d. \u590d\u5236\u4ee5\u4e0b\u4ee3\u7801 \u5230main.c \uff08\u4ee3\u7801\u662fSDK\u4e2d GPIO\u7684\u793a\u4f8b\u4ee3\u7801\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n#include \"xparameters.h\"\n#include \"xgpiops.h\"\n#include \"xplatform_info.h\"\n\n#define LED_RED         54\n#define LED_GREEN  \t55\n\n#define GPIO_DEVICE_ID  \tXPAR_XGPIOPS_0_DEVICE_ID\nXGpioPs Gpio;\t\/* The driver instance for GPIO Device. *\/\n\nvoid Gpio_Init(void){\n\tXGpioPs_Config *ConfigPtr;\n\n\tConfigPtr = XGpioPs_LookupConfig(GPIO_DEVICE_ID);\n\tXGpioPs_CfgInitialize(&amp;Gpio, ConfigPtr,ConfigPtr-&gt;BaseAddr);\n\n\tXGpioPs_SetDirectionPin(&amp;Gpio, LED_RED, 1);\n\tXGpioPs_SetOutputEnablePin(&amp;Gpio, LED_RED, 1);\n\tXGpioPs_WritePin(&amp;Gpio, LED_RED, 0);\n\n\tXGpioPs_SetDirectionPin(&amp;Gpio, LED_GREEN, 1);\n\tXGpioPs_SetOutputEnablePin(&amp;Gpio, LED_GREEN, 1);\n\tXGpioPs_WritePin(&amp;Gpio, LED_GREEN, 0);\n\n}\n\nint main(void){\n\tvolatile int Delay;\n\tGpio_Init();\n\n\twhile(1){\n\t\tXGpioPs_WritePin(&amp;Gpio, LED_RED, 0);\n\t\tXGpioPs_WritePin(&amp;Gpio, LED_GREEN, 1);\n\t\tfor (Delay = 0; Delay &lt; 20000000; Delay++);\n\t\tXGpioPs_WritePin(&amp;Gpio, LED_RED, 1);\n\t\tXGpioPs_WritePin(&amp;Gpio, LED_GREEN, 0);\n\t\tfor (Delay = 0; Delay &lt; 20000000; Delay++);\n\t}\n}\n<\/code><\/pre>\n\n\n\n<p>\u4ee3\u7801\u89e3\u8bfb\uff0c \u56e0\u4e3a\u6211\u4eec\u662f\u7528EMIO \u7684\u65b9\u5f0f\u6765\u70b9\u4eaeLED \uff0c\u800cEMIO \u662f\u4ece54\u5f00\u59cb\u7684\uff0c \u6211\u4eec\u5728FPGA\u7aef\u4e00\u5171\u8bbe\u7f6e\u4e86\u4e24\u8defEMIO\uff0c\u6240\u4ee5\u8fd9\u91cc\u5b9a\u4e49\u4e86<\/p>\n\n\n\n<p>#define LED_RED         54<\/p>\n\n\n\n<p> #define LED_GREEN   55<\/p>\n\n\n\n<p>\u5bf9LED_RED  IO \u8f93\u51fa\u9ad8\u7535\u5e73\uff1a<\/p>\n\n\n\n<p>XGpioPs_WritePin(&amp;Gpio, LED_RED, 1);<\/p>\n\n\n\n<p>\u5bf9LED _RED_IO \u62c9\u4f4e<\/p>\n\n\n\n<p>XGpioPs_WritePin(&amp;Gpio, LED_GREEN, 0);<\/p>\n\n\n\n<p>\u5ef6\u65f6<\/p>\n\n\n\n<p>for (Delay = 0; Delay &lt; 20000000; Delay++);<\/p>\n\n\n\n<p>main \u51fd\u6570\u7684\u5faa\u73af\u4e2d  LED_RED \u548cLED_GREEN \u4e0d\u505c\u7684\u8f93\u51fa\u9ad8\u548c\u4f4e\uff0c \u8fd9\u6837\u5728\u677f\u5b50\u4e0a\u5c31\u662f\u4e24\u4e2a\u706f\u4e0d\u505c\u7684\u4ea4\u53c9\u4eae\u706d<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>e.\u5728\u7ebf\u8c03\u8bd5\u770b\u770b \u7a0b\u5e8f\u662f\u5426\u6b63\u5e38\u8fd0\u884c<\/p>\n\n\n\n<p>\u5148\u5bf9FPGA\u90e8\u5206\u8fdb\u884c\u914d\u7f6e\uff0c\u70b9\u9009XILINX &#8211;&gt;Program FPGA \uff0c \u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u70b9\u9009  PROGRAM \u8fdb\u884c\u914d\u7f6e<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"360\" height=\"266\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-13.png\" alt=\"\" class=\"wp-image-592\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-13.png 360w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-13-300x222.png 300w\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" \/><\/figure>\n\n\n\n<p>\u5728\u9879\u76ee\u5217\u8868\u4e2d\u9009\u4e2d\u521a\u624d\u521b\u5efa\u7684LED\u5de5\u7a0b\uff0c\u53f3\u952e\uff0c\u9009\u62e9run as&#8211;&gt; launch \u8fdb\u884c\u8c03\u8bd5\uff0c <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"542\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-14.png\" alt=\"\" class=\"wp-image-593\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-14.png 738w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-14-300x220.png 300w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/figure>\n\n\n\n<p>\u5982\u679c\u770b\u5230\u4e3b\u677f\u4e0a\u7684\u4e24\u4e2aLED\u706f\u4ea4\u66ff\u95ea\u70c1\u4e86\uff0c\u8bf4\u660e\u7a0b\u5e8f\u6b63\u5e38\u5de5\u4f5c\u4e86<\/p>\n\n\n\n<p style=\"font-size:25px\"><strong>5. \u521b\u5efaTF\u5361\u7684 \u955c\u50cf\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p>\u521b\u5efa\u955c\u50cf\u6587\u4ef6\u5206\u4e24\u6b651. \u521b\u5efaFSBL\u6a21\u5757\uff0c2.\u521b\u5efaimage\uff08boot.bin\uff09\u6587\u4ef6<\/p>\n\n\n\n<p>1\uff09\u5728SDK\u4e2d\u65b0\u5efa\u5982\u4e0b\uff0c\u7136\u540e\u8bbe\u7f6e\u5de5\u7a0b\u540dfsbl\uff0c\u70b9next\u9009\u62e9FSBL\u6a21\u677f<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"495\" height=\"484\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/12\/image-2.png\" alt=\"\" class=\"wp-image-411\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/12\/image-2.png 495w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/12\/image-2-300x293.png 300w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-black-color has-text-color\">2.\u9009\u4e2d\u521a\u624d\u521b\u5efa\u7684LED \u5de5\u7a0b\uff0c\u70b9 XILINX&#8211;&gt;Create Boot Image<strong>\uff08\u5fc5\u987b\u8981\u9009\u4e2d \u4e0d\u7136\u63a5\u4e0b\u6765\u7684\u7a97\u53e3\u4f1a\u662f\u7a7a\u7684 \u4e0d\u4f1a\u81ea\u52a8\u586b\u5165\uff09<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"614\" height=\"314\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-16.png\" alt=\"\" class=\"wp-image-595\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-16.png 614w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-16-300x153.png 300w\" sizes=\"auto, (max-width: 614px) 100vw, 614px\" \/><\/figure>\n\n\n\n<p>\u6b63\u5e38\u7684\u8bdd\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5e2e\u6211\u4eec\u586b\u5165\u91cc\u9762\u7684\u7684\u4fe1\u606f\uff0c \u5982\u679c\u9879\u76ee\u521b\u5efa\u4e86\u591a\u4e2a\u5e94\u7528\u5de5\u7a0b\uff0c\u9700\u8981\u4ed4\u7ec6\u786e\u8ba4\u4e0b\u56fe\u4e2d\u7684\u4fe1\u606f \u662f\u5426\u6709\u8bef<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"877\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-17-1024x877.png\" alt=\"\" class=\"wp-image-596\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-17-1024x877.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-17-300x257.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-17-768x658.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-17.png 1061w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\"><strong>\u5982\u679c\u4fe1\u606f\u662f\u7a7a\u767d\u7684\u6216\u8005\u6709\u8bef \u53ef\u4ee5\u5728\u524d\u9762\u8981\u6c42\u9009\u4e2d\u7684\u5730\u65b9\uff0c\u5148\u9f20\u6807\u5de6\u952e\u9009\u62e9\u5176\u4ed6\u7684\u76ee\u5f55\uff0c\u4e4b\u540e\u518d\u70b9\u56de\u6211\u4eec\u7684\u5e94\u7528 \uff0c\u8fd9\u6837\u518d\u6253\u5f00create image \u4fe1\u606f\u5c31\u6062\u590d\u6b63\u5e38\u4e86<\/strong><\/p>\n\n\n\n<p>\u5982\u679c\u7cfb\u7edf\u4ecd\u7136\u6ca1\u6709 \u81ea\u52a8\u586b\u5165\uff0c\u6216\u8005\u4fe1\u606f\u6709\u8bef\uff0c\u53ef\u4ee5\u53c2\u8003\u6211\u4e4b\u524d\u7684\u5de5\u7a0b\uff0c\u91cc\u9762\u6709\u624b\u52a8\u586b\u5165\u8fd9\u4e9b\u4fe1\u606f\u7684\u65b9\u6cd5<\/p>\n\n\n\n<p><blockquote class=\"wp-embedded-content\" data-secret=\"KYOnpvZggl\"><a href=\"http:\/\/www.hellofpga.com\/index.php\/2021\/12\/31\/nand-flash\/\">\u57fa\u4e8eEBAZ4205\u7684PS\u5b9e\u9a8c\u516d \u7a0b\u5e8f\u56fa\u5316 NAND FLASH(FLASH\u542f\u52a8)<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u300a \u57fa\u4e8eEBAZ4205\u7684PS\u5b9e\u9a8c\u516d \u7a0b\u5e8f\u56fa\u5316 NAND FLASH(FLASH\u542f\u52a8) \u300b\u2014Hello FPGA\" src=\"http:\/\/www.hellofpga.com\/index.php\/2021\/12\/31\/nand-flash\/embed\/#?secret=u7EVwe3gdr#?secret=KYOnpvZggl\" data-secret=\"KYOnpvZggl\" width=\"525\" height=\"296\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u4e4b\u540e\u70b9\u51fbCreate Image \uff0c\u751f\u6210\u955c\u50cf\u6587\u4ef6\uff0c \u5e76\u4e14\u8bb0\u4f4f\u5bfc\u51fa\u7684\u6587\u4ef6\u5939<\/strong>\uff08\u540e\u9762\u8981\u7528\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1015\" height=\"678\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-18.png\" alt=\"\" class=\"wp-image-597\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-18.png 1015w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-18-300x200.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-18-768x513.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p style=\"font-size:25px\"><strong>6. \u9a8c\u8bc1SD  TF \u5361\u542f\u52a8<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u5728\u521a\u624dcreate boot image \u4e2d\u7684 ouput\u4e2d bif \u548cboot.bin\u6587\u4ef6\u7684\u5bfc\u51fa\u6587\u4ef6\u5939\u4e2d\uff0c\u590d\u5236\u51fa\u8fd9\u4e24\u4e2a\u6587\u4ef6\u5230\u7a7a\u7684TF\u5361\u4e2d \uff08\u5207\u8bb0 \u9700\u8981\u683c\u5f0f\u5316\u6210FAT32\u683c\u5f0f\uff09<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"385\" height=\"213\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-19.png\" alt=\"\" class=\"wp-image-598\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-19.png 385w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/image-19-300x166.png 300w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><\/figure>\n\n\n\n<p>2. \u5c06TF \u5361\u63d2\u5165\u5230 \u4e3b\u677f\u7684\u5361\u69fd\u4e2d<\/p>\n\n\n\n<p>3. \u5c06\u677f\u5b50\u8bbe\u7f6e\u6210 TF\u5361\u542f\u52a8\u6a21\u5f0f\uff08\u524d\u9762\u63d0\u5230\uff0c\u9700\u8981\u4fee\u6539\u7535\u963b\u4f4d\u7f6e\uff09<\/p>\n\n\n\n<p>4.\u91cd\u65b0\u65ad\u7535\u540e \u518d\u4e0a\u7535\uff0c \u6b63\u5e38\u60c5\u51b5\u4e0b \u7cfb\u7edf\u7684\u4e24\u4e2a\u6307\u793a\u706f\u5f00\u59cb\u4ea4\u66ff\u95ea\u70c1\uff0c\u8bf4\u660eTF\u5361\u542f\u52a8\u6210\u529f\u4e86<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u5982\u679c\u542f\u52a8\u4e0d\u6210\u529f\uff0c\u6709\u53ef\u80fd\u662f\u4ee5\u4e0b\u51e0\u79cd\u60c5\u51b5<\/strong><\/p>\n\n\n\n<p>a. TF\u5361\u7684 \u683c\u5f0f\u4e0d\u5bf9\uff0c<\/p>\n\n\n\n<p>b. TF\u5361\u6709\u591a\u4e2a\u5206\u533a\uff0c\u9700\u8981\u7edf\u4e00\u6210\u4e00\u4e2a\u518d\u8fdb\u884c\u683c\u5f0f\u5316,\uff08\u7528\u8001\u6bdb\u6843\u7b49\u5de5\u5177\u505a\u8fc7\u542f\u52a8\u76d8\u7684\u4f1a\u51fa\u73b0\u8fd9\u79cd\u60c5\u51b5\uff09<\/p>\n\n\n\n<p>c. TF\u5361\u4e0d\u652f\u6301\uff0c\u5c1d\u8bd5\u66f4\u6362\u4e0d\u540c\u54c1\u724c \u4e0d\u540c\u5bb9\u91cf\u5927\u5c0f\u7684TF\u5361\uff0c \u5927\u5bb9\u91cf\uff0c\u8d8a\u9ad8\u901f\u7684TF\u5361\u7684\u517c\u5bb9\u6027\u8d8a\u5dee<\/p>\n\n\n\n<p><strong>\u5b8c\u6574\u7684\u5de5\u7a0b\u5982\u4e0b<\/strong><\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-ef775207-b50a-4ae4-bde0-1739bf76372a\" href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/11_TF_CARD_BOOT.zip\">11_TF_CARD_BOOT<\/a><a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2022\/03\/11_TF_CARD_BOOT.zip\" class=\"wp-block-file__button\" download aria-describedby=\"wp-block-file--media-ef775207-b50a-4ae4-bde0-1739bf76372a\">\u4e0b\u8f7d<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>ZYNQ \u6709\u591a\u79cd\u542f\u52a8\u65b9\u5f0f\u53ef\u4ee5\u9009\u62e9\uff0c\u9664\u4e86\u4e4b\u524d\u4ecb\u7ecd\u7684\u4eceNAND FLASH \u7684\u65b9\u5f0f\u6765\u542f\u52a8\u5916\uff0c\u8fd8\u53ef\u4ee5\u8ba9\u7cfb\u7edf\u4eceTF \u5361\u7684\u65b9\u5f0f\u6765\u542f\u52a8\uff0c\u672c\u6587\u5c06\u901a\u8fc7\u4e00\u4e2aEMIO \u70b9LED \u706f\u7684\u65b9\u5f0f\u6765\u6f14\u793a TF \u5361\u7684\u542f\u52a8\u8fc7\u7a0b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-580","post","type-post","status-publish","format-standard","hentry","category-ebaz4205"],"views":1397,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/580","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=580"}],"version-history":[{"count":11,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/580\/revisions"}],"predecessor-version":[{"id":9803,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/580\/revisions\/9803"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=580"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}