Zynq Linux Applikation: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Nick (Diskussion | Beiträge) |
Nick (Diskussion | Beiträge) |
||
| (16 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
Bauen einer Linux Applikation in der Vitis IDE. | Bauen einer Linux Applikation in der Vitis IDE. | ||
= Domain für Linux Applikation = | = Domain für Linux Applikation = | ||
*File ⇒ New ⇒ Plattform Project | *File ⇒ New ⇒ Plattform Project... | ||
*Platform project name: <code>appDev_Linux_platform</code> ⇒ Next | *Platform project name: <code>appDev_Linux_platform</code> ⇒ Next | ||
*Tab " | *Tab "Create a new platform from hardware (XSA)" ⇒ Browse ⇒ xxx_wrapper.xsa | ||
**Operating system: ⇒ "linux" | **Operating system: ⇒ "linux" | ||
**Häkchen entfernen "Generate boot components" ⇒ Finish | **Häkchen entfernen "Generate boot components" ⇒ Finish | ||
*Rechtsklick im Explorer ⇒ appDev_Linux_platform ⇒ Build Project | |||
== Platform: appDev_Linux_platform == | == Platform: appDev_Linux_platform == | ||
*"linux on ps7_cortexa9" auswählen | |||
= Linux Applikation = | = Linux Applikation = | ||
*File ⇒ New ⇒ Application Project... | |||
*Tab "Select a platform from repository" ⇒ appDev_Linux_platform ⇒ Next | |||
*Projektnamen vergeben: ⇒ Application project name: ⇒ Next ⇒ Next | |||
*Für C++ Projekt ⇒ "Empty Application(C++)" auswählen ⇒ Finish | |||
== Boost in Vitis == | |||
*Download [https://www.boost.org/users/download/ Boost C++ Libraries] | |||
unzip boost_ ... | |||
In Vitis rechtsklick auf das C++ Projekt ⇒ C/C++ Build Settings | |||
* ... compiler ⇒ Directories ⇒ Include Paths ⇒ Add... ⇒ Pfad zu ../boost_VERSION | |||
* ... linker ⇒ Libraries ⇒ Library search path (-L) ⇒ Add... ⇒ ../boost_VERSION/libs | |||
= Debug Linux Applikation = | |||
* rechtsklick ⇒ Projektnamen ⇒ Run As ⇒ Run Configurations | |||
* doppelklick ⇒ Single Application Debug ⇒ Klick Debugger_Projektname-Default ⇒ Connection: Linux Agent ⇒ New | |||
* Target Name, Host, Port 1534 ⇒ OK | |||
* IP-Adresse Zynq setzen: | |||
ifconfig eth0 10.0.0.13 netmask 255.0.0.0 up | |||
Aktuelle Version vom 11. Oktober 2021, 06:27 Uhr
Bauen einer Linux Applikation in der Vitis IDE.
Domain für Linux Applikation
- File ⇒ New ⇒ Plattform Project...
- Platform project name:
appDev_Linux_platform⇒ Next - Tab "Create a new platform from hardware (XSA)" ⇒ Browse ⇒ xxx_wrapper.xsa
- Operating system: ⇒ "linux"
- Häkchen entfernen "Generate boot components" ⇒ Finish
- Rechtsklick im Explorer ⇒ appDev_Linux_platform ⇒ Build Project
Platform: appDev_Linux_platform
- "linux on ps7_cortexa9" auswählen
Linux Applikation
- File ⇒ New ⇒ Application Project...
- Tab "Select a platform from repository" ⇒ appDev_Linux_platform ⇒ Next
- Projektnamen vergeben: ⇒ Application project name: ⇒ Next ⇒ Next
- Für C++ Projekt ⇒ "Empty Application(C++)" auswählen ⇒ Finish
Boost in Vitis
- Download Boost C++ Libraries
unzip boost_ ...
In Vitis rechtsklick auf das C++ Projekt ⇒ C/C++ Build Settings
- ... compiler ⇒ Directories ⇒ Include Paths ⇒ Add... ⇒ Pfad zu ../boost_VERSION
- ... linker ⇒ Libraries ⇒ Library search path (-L) ⇒ Add... ⇒ ../boost_VERSION/libs
Debug Linux Applikation
- rechtsklick ⇒ Projektnamen ⇒ Run As ⇒ Run Configurations
- doppelklick ⇒ Single Application Debug ⇒ Klick Debugger_Projektname-Default ⇒ Connection: Linux Agent ⇒ New
- Target Name, Host, Port 1534 ⇒ OK
- IP-Adresse Zynq setzen:
ifconfig eth0 10.0.0.13 netmask 255.0.0.0 up