Zynq Linux Applikation: Unterschied zwischen den Versionen

Aus Nicki Wiki
Zur Navigation springen Zur Suche springen
 
(12 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> &rArr; Next
*Platform project name: <code>appDev_Linux_platform</code> &rArr; Next
*Tab "Create a new platform from hardware (XSA)" &rArr; Browse &rArr; xxx_wrapper.xsa
*Tab "Create a new platform from hardware (XSA)" &rArr; Browse &rArr; xxx_wrapper.xsa
Zeile 12: Zeile 12:


= Linux Applikation =
= Linux Applikation =
* File &rArr; New &rArr; Application Project...
*File &rArr; New &rArr; Application Project...
* Tab "Select a platform from repository" &rArr; appDev_Linux_platform &rArr; Next
*Tab "Select a platform from repository" &rArr; appDev_Linux_platform &rArr; Next
*
*Projektnamen vergeben: &rArr; Application project name: &rArr; Next &rArr; Next
*Für C++ Projekt &rArr; "Empty Application(C++)" auswählen &rArr; Finish
== Boost in Vitis ==
*Download [https://www.boost.org/users/download/ Boost C++ Libraries]
unzip boost_ ...
In Vitis rechtsklick auf das C++ Projekt &rArr; C/C++ Build Settings
* ... compiler &rArr; Directories &rArr; Include Paths &rArr; Add... &rArr; Pfad zu ../boost_VERSION
* ... linker &rArr; Libraries &rArr; Library search path (-L) &rArr; Add... &rArr; ../boost_VERSION/libs
 
= Debug Linux Applikation =
* rechtsklick &rArr; Projektnamen &rArr; Run As &rArr; Run Configurations
* doppelklick &rArr; Single Application Debug &rArr; Klick Debugger_Projektname-Default &rArr; Connection: Linux Agent &rArr; New
* Target Name, Host, Port 1534 &rArr; 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

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