{"id":7651,"date":"2024-10-07T11:25:18","date_gmt":"2024-10-07T03:25:18","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=7651"},"modified":"2024-10-23T14:48:46","modified_gmt":"2024-10-23T06:48:46","slug":"lemon_zynq_usb_slave","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2024\/10\/07\/lemon_zynq_usb_slave\/","title":{"rendered":"\u57fa\u4e8eLemon ZYNQ\u7684PS\u5b9e\u9a8c\u5341\u4e00 USB slave\u529f\u80fd\u6d4b\u8bd5\uff08\u5373ZYNQ\u6a21\u62dfU\u76d8\u7684\u529f\u80fd\u6d4b\u8bd5\uff09"},"content":{"rendered":"\n<p>\u672c\u5de5\u7a0b\u5c06\u8bb0\u5f55\u5728SDK\u73af\u5883\u4e0b\u8c03\u7528\u5b98\u65b9demo\u6765\u5b9e\u73b0USB\u7684slave\uff08device\uff09\u529f\u80fd\u6d4b\u8bd5<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6b64\u7ae0\u8282\u5185\u5bb9\u9002\u7528\u4e8eLemon ZYNQ\u4e3b\u677f\uff0c\u5982\u662f\u5176\u4ed6\u677f\u5b50\u8bf7\u770b\u5bf9\u5e94\u677f\u5b50\u76ee\u5f55<\/strong><\/li>\n\n\n\n<li><strong>\u672c\u6587\u5728 vivado2018.3\u7248\u672c\u4e0a\u6f14\u793a<\/strong><\/li>\n<\/ul>\n\n\n\n<p>ZYNQ\u7684USB\u53ef\u4ee5\u540c\u65f6\u5145\u5f53USB HOST\uff0c\u548cUSB DEVICE(SLAVE)\u7684\u89d2\u8272\u529f\u80fd\u975e\u5e38\u5f3a\u5927\uff0c\u677f\u5b50\u4e0a\u540c\u65f6\u4fdd\u7559\u4e86USB HOST\u7684\u63a5\u53e3\uff0c\u548cUSB DEVICE\u7684\u63a5\u53e3\uff0cUSB\u529f\u80fd\u5927\u591a\u6570\u60c5\u51b5\u90fd\u662f\u5728linux\u4e0b\u4f7f\u7528\u7684\uff0c\u5728arm\u88f8\u673a\u4e0b\u4f7f\u7528\u7684\u8d44\u6599\u975e\u5e38\u7684\u5c11\uff0c\u597d\u5728\u5b98\u65b9\u4e3a\u6211\u4eec\u4fdd\u7559\u4e86\u4e00\u4e2aUSB DEVICE\u7684SDK Demo\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2ademo\u53bb\u719f\u6089\u6574\u4e2ausb\u9879\u76ee\u7684\u521b\u5efa\u6d41\u7a0b\uff0c\u5177\u4f53\u64cd\u4f5c\u5982\u4e0b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001\u5de5\u7a0b\u521b\u5efa<\/strong><\/h2>\n\n\n\n<p>\u5de5\u7a0b\u521b\u5efa\u7684\u8fc7\u7a0b\u53ef\u4ee5\u53c2\u8003\u8bd5\u9a8c\u4e00\u4e2d\u7684\u5185\u5bb9\uff0c\u8fd9\u91cc\u4e0d\u518d\u8be6\u7ec6\u63cf\u8ff0\u4e86\u3002<a href=\"http:\/\/www.hellofpga.com\/index.php\/2024\/10\/04\/lemon_zynq_ps_gpio_emio\/\">\u57fa\u4e8eLemon ZYNQ\u7684PS\u5b9e\u9a8c\u4e00 GPIO\u4e4b\u7528EMIO\u65b9\u5f0f\u70b9\u4eaeLED\uff08\u5b8c\u6574\u56fe\u6587\uff09<\/a>(\u82af\u7247\u578b\u53f7\u9009XC7Z020CLG400-1)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001Vivado \u4e2d\u7684\u8bbe\u7f6e<\/strong><\/h2>\n\n\n\n<p>1\uff09IP INTEGRATOR\u2192Create Block Design\uff0c\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u4e2d\u8f93\u5165\u8bbe\u8ba1\u540d\uff0c\u6700\u540e\u70b9\u51fb\u201cOK\u201d\uff0c\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"599\" height=\"283\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-1.png\" alt=\"\" class=\"wp-image-183\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-1.png 599w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-1-300x142.png 300w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/figure>\n\n\n\n<p>2)\u5728\u53f3\u4fa7\u7684\u7a97\u53e3\u91cc \uff0c\u70b9\u51fb\u52a0\u53f7\uff0c\u5728\u9009\u62e9\u6846\u91cc\u641c\u7d22ZYNQ\uff0c\u5e76\u627e\u5230ZYNQ7 PROCESSING SYSTEM \uff0c\u53cc\u51fb\u5e76\u6253\u5f00<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"477\" height=\"271\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-2.png\" alt=\"\" class=\"wp-image-184\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-2.png 477w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-2-300x170.png 300w\" sizes=\"auto, (max-width: 477px) 100vw, 477px\" \/><\/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=\"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>4\uff09\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\uff1aMT41K256M16RE-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=\"788\" height=\"453\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-70.png\" alt=\"\" class=\"wp-image-2527\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-70.png 788w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-70-300x172.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/01\/image-70-768x442.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\u56e0\u4e3aLemon ZYNQ\u4e3b\u677f\u7684PS\u65f6\u949f\u662f50M\u7684\u6676\u632f\u8f93\u5165\u7684\uff0c\u6240\u4ee5\u8fd9\u91cc\u9700\u8981\u628a\u9ed8\u8ba4\u7684PS\u8f93\u5165\u65f6\u949f33.33M\u6539\u621050M<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"531\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-22-1024x531.png\" alt=\"\" class=\"wp-image-7455\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-22-1024x531.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-22-300x156.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-22-768x398.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-22.png 1060w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>6\uff09\u4f7f\u80fdzynq\u7684USB0\u529f\u80fd<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"677\" height=\"224\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-1.png\" alt=\"\" class=\"wp-image-2807\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-1.png 677w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-1-300x99.png 300w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/figure>\n\n\n\n<p>7\uff09\u53e6\u5916 \u7531\u4e8e\u6211\u4eec\u7684USB PHY\u7684\u4fe1\u53f7\u662f\u63a5\u5728mio\u768446\u811a\u4e0a \u6240\u4ee5\u8fd9\u91cc\u540c\u6837\u9700\u8981\u4f7f\u80fd MIO\u7684USB RST\u4fe1\u53f7\uff08\u7cfb\u7edf\u540c\u65f6\u4f1a\u9ed8\u8ba4\u52fe\u9009I2C\u590d\u4f4d \uff0c\u53ef\u4ee5\u5173\u95ed\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"926\" height=\"543\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-2.png\" alt=\"\" class=\"wp-image-2809\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-2.png 926w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-2-300x176.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-2-768x450.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u56e0\u4e3aUSB PHY\u662f\u63a5\u5728BANK501\u4e0a\u7684\uff0c\u800cBANK501\u7535\u5e73\u662f1.8V\uff0c\u6240\u4ee5\u8fd9\u91cc\u6211\u4eec\u9700\u8981\u4fee\u6539IO\u7535\u5e73<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"791\" height=\"447\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-66.png\" alt=\"\" class=\"wp-image-7655\" style=\"width:623px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-66.png 791w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-66-300x170.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-66-768x434.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>8\uff09\u968f\u540e\u70b9OK \u4fdd\u5b58\u4fee\u6539\uff0c\u5e76\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=\"788\" height=\"424\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-3.png\" alt=\"\" class=\"wp-image-2811\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-3.png 788w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-3-300x161.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-3-768x413.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>10\uff09\u8fde\u63a5AXI\u7684\u65f6\u949f\uff08AXI\u9ed8\u8ba4\u5f00\u542f\u7684\uff0c\u8fd9\u91cc\u7528\u4e0d\u5230AXI\uff0c\u4e5f\u53ef\u4ee5\u53bb\u8bbe\u7f6e\u91cc\u5173\u95edAXI\u529f\u80fd\uff0c\u5c31\u4e0d\u9700\u8981\u8fde\u63a5\u4e86\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"330\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-4.png\" alt=\"\" class=\"wp-image-2812\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-4.png 850w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-4-300x116.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-4-768x298.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>11) \u5728source\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>\u5728\u5f39\u51fa\u7684\u83dc\u5355\u91cc\u76f4\u63a5\u70b9\u9009OK<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"503\" height=\"296\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-22.png\" alt=\"\" class=\"wp-image-2880\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-22.png 503w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-22-300x177.png 300w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/figure>\n\n\n\n<p>12) \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>13) \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<h2 class=\"wp-block-heading\"><strong>\u4e09\u3001SDK\u90e8\u5206\u8bbe\u8ba1<\/strong><\/h2>\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<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>3\uff09\u65b0\u5efa\u4e00\u4e2a\u5de5\u7a0b file\u2192new\u2192Application Project\uff0c\u6765\u65b0\u5efa\u4e00\u4e2a\u201cApplication Project\u201d\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"546\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-23.png\" alt=\"\" class=\"wp-image-214\" style=\"width:466px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-23.png 624w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-23-300x263.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>4\uff09\u5728\u65b0\u5efa\u5de5\u7a0b\u540d\u4e2d\u8f93\u5165\u81ea\u5df1\u7684\u5de5\u7a0b\u540d\u79f0\uff0c\u70b9\u51fbNEXT<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"632\" height=\"791\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-6.png\" alt=\"\" class=\"wp-image-2815\" style=\"width:482px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-6.png 632w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-6-240x300.png 240w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/figure>\n\n\n\n<p>5\uff09\u9009\u62e9\u7a7a\u5de5\u7a0b\uff0c\u70b9\u51fb\u5b8c\u6210FINISH<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"485\" height=\"262\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-26.png\" alt=\"\" class=\"wp-image-216\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-26.png 485w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2021\/08\/image-26-300x162.png 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/figure>\n\n\n\n<p>6\uff09\u4e4b\u540eSDK\u4f1a\u4e3a\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u7a7a\u7684\u5de5\u7a0b\uff0c\u8fd9\u91cc\u6211\u4eec\u53ea\u9700\u8981\u7528\u5230bsp\u5c31\u591f\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5c55\u5f00BSP\u76ee\u5f55\uff0c\u70b9\u51fbsystem.mss\u6587\u4ef6\uff0c\u5728\u53f3\u4fa7\u9009\u62e9\u5bfc\u5165usbps\u7684 demo\u5e76\u5bfc\u5165<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"583\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-8-1024x583.png\" alt=\"\" class=\"wp-image-2818\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-8-1024x583.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-8-300x171.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-8-768x437.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-8.png 1170w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u52fe\u9009\u5de5\u7a0b\uff0c\u7136\u540e\u70b9\u51fbok<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"857\" height=\"548\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-9.png\" alt=\"\" class=\"wp-image-2819\" style=\"width:482px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-9.png 857w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-9-300x192.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-9-768x491.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\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5bfc\u5165usb\u7684demo\uff0c\uff0c\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"424\" height=\"246\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-10.png\" alt=\"\" class=\"wp-image-2821\" style=\"width:312px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-10.png 424w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-10-300x174.png 300w\" sizes=\"auto, (max-width: 424px) 100vw, 424px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56db\u3001\u4e0b\u8f7d\u548c\u8c03\u8bd5<\/strong><\/h2>\n\n\n\n<p><strong>1\uff09\u5148\u7528USB\u7ebf\u5c06\u677f\u5b50\u7684JTAG\u53e3\u548c\u7535\u8111\u8fde\u63a5<\/strong>\u65b0\u521b\u5efa\u7684\u5de5\u7a0b\u6700\u597d\u5148\u5bf9Run as \u8fdb\u884c\u914d\u7f6e\uff1a\u53f3\u952e\u5de5\u7a0b\uff0c\u5e76\u70b9\u9009Run As -&gt; Run Configurations<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"798\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-27.png\" alt=\"\" class=\"wp-image-7494\" style=\"width:549px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-27.png 750w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-27-282x300.png 282w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>2\uff09 \u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\u5bf9Reset entire system \u548c Program FPGA\u4e24\u4e2a\u9009\u9879\u8fdb\u884c\u52fe\u9009\u64cd\u4f5c\uff0c\u8fd9\u6837\u5c31\u4e0d\u4f1a\u51fa\u73b0\u4e0b\u8f7d\u7a0b\u5e8fdebug\u7684\u65f6\u5019\u6982\u7387\u6027\u4e0d\u5de5\u4f5c\u7684\u95ee\u9898\u4e86\u3002<strong>\uff08\u8fd9\u6837\u64cd\u4f5c\u540e\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5bf9FPGA\u8fdb\u884c\u914d\u7f6e\uff0c\u4e0d\u9700\u8981\u6309\u4e4b\u524d\u5de5\u7a0b\u624b\u52a8\u5bf9FPGA\u8fdb\u884c\u7f16\u7a0b\u4e86\uff09<\/strong><\/p>\n\n\n\n<p>PS\u5982\u679c\u6ca1\u6709\u51fa\u73b0\u4e0b\u56fe\u5bf9\u8bdd\u6846\uff0c\u53ef\u4ee5\u76f4\u63a5\u53cc\u51fb\u5de6\u4fa7\u7684applicationo \uff08System Debugger\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"705\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-29-1024x705.png\" alt=\"\" class=\"wp-image-7496\" style=\"width:548px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-29-1024x705.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-29-300x206.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-29-768x528.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/image-29.png 1401w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>3\uff09\u9009\u4e2d\u6211\u4eec\u751f\u6210\u7684USB\u5de5\u7a0b \u5c55\u5f00\u7eff\u8272\u7bad\u5934\uff08RUN\uff09\u53f3\u8fb9\u7684\u56fe\u6807\uff0c\u9009\u62e9Run As\u21921 Launch on Hardware\uff08System Debugger\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"947\" height=\"246\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-11.png\" alt=\"\" class=\"wp-image-2822\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-11.png 947w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-11-300x78.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-11-768x200.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\u7528\u53e6\u4e00\u6839TYPE C\u6570\u636e\u7ebf\u8fde\u5c06\u6211\u4eec\u677f\u5b50\u4e0a\u7684USB SLAVE\u53e3\u548c\u7535\u8111\u8fde\u63a5\uff0c\u6b64\u65f6\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u7535\u8111\u51fa\u73b0\u4e86\u4e00\u4e2a1MB\u7684U\u76d8\uff0c\u5e76\u63d0\u793a\u662f\u5426\u683c\u5f0f\u5316\u8fd9\u4e2aU\u76d8\uff08\u8fd9\u91cc\u9009\u62e9\u683c\u5f0f\u5316\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"433\" height=\"189\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-14.png\" alt=\"\" class=\"wp-image-2830\" style=\"width:259px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-14.png 433w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-14-300x131.png 300w\" sizes=\"auto, (max-width: 433px) 100vw, 433px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"370\" height=\"683\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-15.png\" alt=\"\" class=\"wp-image-2831\" style=\"width:283px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-15.png 370w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-15-163x300.png 163w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><\/figure>\n\n\n\n<p>\u4e4b\u540e\u7535\u8111\u5c31\u51fa\u73b0\u4e86\u4e00\u4e2a\u7531DDR RAM\u865a\u62df\u51fa\u6765\u76841MB\u5927\u5c0f\u7684U\u76d8\u4e86\uff08\u53ef\u4ee5\u50cf\u6b63\u5e38U\u76d8\u4e00\u6837\u590d\u5236\u7c98\u8d34\u6587\u4ef6\uff09\uff0c<strong>\u6ce8\u610f\u8fd9\u4e2aU\u76d8\u65ad\u7535\u6570\u636e\u4f1a\u4e22\u5931\u8bf7\u4e0d\u8981\u653e\u91cd\u8981\u6587\u4ef6\u3002<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"357\" height=\"113\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-16.png\" alt=\"\" class=\"wp-image-2832\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-16.png 357w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-16-300x95.png 300w\" sizes=\"auto, (max-width: 357px) 100vw, 357px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e94\u3001\u4fee\u6539\u865a\u62dfU\u76d8\u7684\u5bb9\u91cf\u5927\u5c0f\u4ecb\u7ecd<\/strong><\/h2>\n\n\n\n<p>\u6d4b\u8bd5demo\u9ed8\u8ba4\u7684U\u76d8\u5bb9\u91cf\u53ea\u67091MB\uff0c\u8fd9\u4e2a\u5bb9\u91cf\u662f\u53ef\u4ee5\u4fee\u6539\u7684\uff0c\u901a\u8fc7\u4fee\u6539 storage.h\u53ef\u4ee5\u8c03\u6574\u8fd9\u4e2aU\u76d8\u7684\u5927\u5c0f\uff08\u8bf7\u4e0d\u8981\u63a5\u8fd1\u6216\u8005\u8d85\u8fc7\u677f\u5b50\u4e0aDDR\u5bb9\u91cf\u7684\u5927\u5c0f\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"563\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-13-1024x563.png\" alt=\"\" class=\"wp-image-2827\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-13-1024x563.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-13-300x165.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-13-768x422.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-13.png 1154w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u6bd4\u5982\u8bf4\u6211\u4eec\u5c06\u503c\u6539\u62100xFF00000 \u5c31\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2a255MB\u7684\u865a\u62dfU\u76d8<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"202\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-17.png\" alt=\"\" class=\"wp-image-2834\" style=\"width:518px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-17.png 707w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/02\/image-17-300x86.png 300w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/figure>\n\n\n\n<p>\u4ee5\u4e0a\u5c31\u662f\u672c\u6b21USB_SLAVE\u7684\u529f\u80fd\u6f14\u793a\uff0cZYNQ\u7684 USB \u529f\u80fd\u8fdc\u4e0d\u6b62\u8fd9\u4e9b\uff0c \u5b98\u65b9SDK \u53ea\u662f\u63d0\u4f9b\u4e86\u4e00\u4e2a\u6f14\u793ademo\uff0c\u5982\u679c\u8981\u505aslave\u65b9\u9762\u7684\u88f8\u673a\u76f8\u5173\u5e94\u7528\u53ef\u4ee5\u6df1\u5165\u7814\u7a76\u8fd9\u4e2ademo \uff0c&nbsp;<strong>Host\u529f\u80fd\u5c06\u5728\u540e\u7eedpetalinux\u7684\u7ae0\u8282\u505a\u6f14\u793a<\/strong>\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u7528\u786c\u76d8\u6d4b\u901f\u5de5\u5177\u6765\u5bf9\u8fd9\u4e2a\u865a\u62dfU\u76d8\u8fdb\u884c\u6d4b\u901f\uff0c\u7ed3\u679c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"522\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/USB-\u901f\u5ea6\u6d4b\u8bd5.jpg\" alt=\"\" class=\"wp-image-8029\" style=\"width:478px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/USB-\u901f\u5ea6\u6d4b\u8bd5.jpg 709w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/USB-\u901f\u5ea6\u6d4b\u8bd5-300x221.jpg 300w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u672c\u6587\u7684\u5b8c\u6574\u5de5\u7a0b\u4e0b\u8f7d\uff1a<\/strong><a href=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2024\/10\/11_PS_USB_SLAVE_TEST.zip\"><strong>11_PS_USB_SLAVE_TEST<\/strong><\/a><\/li>\n\n\n\n<li><strong>VIVADO\u7684\u7248\u672c\uff1a2018.3<\/strong><\/li>\n\n\n\n<li><strong>\u5de5\u7a0b\u521b\u5efa\u76ee\u5f55\uff1aE:\\Lemon_ZYNQ\\SDK\\11_PS_USB_SLAVE_TEST<\/strong><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u5de5\u7a0b\u5c06\u8bb0\u5f55\u5728SDK\u73af\u5883\u4e0b\u8c03\u7528\u5b98\u65b9demo\u6765\u5b9e\u73b0USB\u7684slave\uff08device\uff09\u529f\u80fd\u6d4b\u8bd5<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-7651","post","type-post","status-publish","format-standard","hentry","category-lemon-zynq"],"views":1564,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/7651","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=7651"}],"version-history":[{"count":9,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/7651\/revisions"}],"predecessor-version":[{"id":8411,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/7651\/revisions\/8411"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=7651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=7651"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=7651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}