Giter Club home page Giter Club logo

vitis_ide-tutorial's Introduction

Vitis IDE-Tutorial

0. 说明

本篇教程基于hellofpga系列教程. 由于该教程是基于Xilinx SDK的, 而新版Vitis套件已更新为Vitis IDE, 使用方法略有差异. 同时也记录了踩的一些坑. 本教程与hellofpga的前四步(PL端部分)相同, 故略.

5. Vitis IDE程序编写

File-Export-Export hardware, 在弹出的对话框中选择"include bitstream"' 点击“OK”确认.

导出完毕后在Tools-Launch Vitis IDE启动编译器.

1.png

选择File-New-Application Project

2.png

选择Create a new platform from hardware (XSA), 点击Browse选择Vivado生成的.xsa文件, 点击Next.

3.png

给项目起名, 点击Next.

4.png

默认配置, 点击Next.

5.png

选择空的C语言应用, 点击Finish.

6.png

展开Wrapper, 双击.spr文件

7.png

进入Board Support Package(BSP)

8.png

找到axi_gpio_0, 点击Import Examples.

9.png

勾选xgpio_examples, 点击OK.

10.png

6. 下载到板子上进行验证

点击Vitis-Program Device-Program, 烧录PL端程序.

11.png

点击菜单栏Project-Build Project, 等待build完成.

选中导入的例程, 点击上方绿色箭头(Run)右边的箭头, 点击Run As-1 Launch Hardware开始运行.

12.png

13.png

此时可以看到板载LED在闪烁.

如果看到no targets found with "name =~"APU*"或AP transaction timeout AP transaction timeout或Cannot reset APU. APB AP transaction error, DAP status 0xF0000021等与APU有关的报错的话, 将板子断电重启即可.

vitis_ide-tutorial's People

Contributors

wanghaozhe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.