Download Print this page

Advertisement

Quick Links

PhyBOARD-WEGA-AM335x
Single Board Computer
© PHYTEC Embedded Pvt. Ltd 2014
QT Manual
Product No
: PCL-051/PBA-CD-02
SOM PCB No
: 1397.0
CB PCB No
: 1405.0
Edition
: May, 2014
1
Revision no. 1.0

Advertisement

loading
Need help?

Need help?

Do you have a question about the PhyBOARD-WEGA-AM335 SERIES and is the answer not in the manual?

Questions and answers

Summary of Contents for Phytec PhyBOARD-WEGA-AM335 SERIES

  • Page 1 PhyBOARD-WEGA-AM335x Single Board Computer QT Manual Product No : PCL-051/PBA-CD-02 SOM PCB No : 1397.0 CB PCB No : 1405.0 Edition : May, 2014 © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 2 PHYTEC Embedded Pvt. Ltd further reserves the right to alter the layout and/or design of the hardware without prior notification and accepts no liability for doing so.
  • Page 3 Table of Contents ................................4 1. Application development using Qt Creator:..................4 2. QT Creator Configuration for phyBOARD-WEGA-AM335x............8 3. Application development........................19 © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 4 First of all install Qt Creator with the help of Ubuntu Software Center Enter Qt Creator in the search box in the right top corner (in Ubuntu Software Center). Install it (see the below image) Figure 1.1 © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 5 In Host : Click on Dash Home and enter as Network Connections and click. Figure 1.2.1 Here click on Add label and give a connection name as shown below. Figure 1.2.2 © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 6 Here you need to select Method as Manual and click Add label again do ip settings then Save as shown below. Figure 1.2.3 Then finally you will get successfully as below if your Connection Established correctly. Figure 1.2.4 © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 7 In Target : Do the ip settings in your target as shown below figures. Figure 1.2.5 Now set ip usig ifconfig eth0 192.168.1.196 up shown in below figure Figure 1.2.6 © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 8 Note: Here navigate to the path of qmake in our PC (refer section 2.3.2). Select qmake then click on Open Double click on Version Name and give the Qt Version a descriptive name in below image . © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 9 Note: Here navigate to the path where you have exported the tool chain Select Compiler Path: Click on Browse and select path of compiler /home/<user>/work/phytec/src/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux- gnueabihf-gcc. Debugger: Click on Browse & select path of Debugger home/<user>/work/phytec/src/arm- cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-gdb, as shown below. © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 10 On the left side of the window, select the Linux Devices tab Figure 2.1.3 In Linux Devices: click the Device Configurations tab. Click Add... in the top right and select Generic Linux device and click on Start Wizard © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 11 Make sure Authentication type is Password, but leave the password field blank. Click next and click Finish Figure 2.1.5 Now you should see Device test finished successfully, so you can close the window © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 12 Still under the Device Configurations tab click "Generate SSH Key...” Select Key size: 1024 Key algorithm RSA Then click Generate SSH Key in the SSH Key Configuration dialog box Figure 2.1.7 Click Do not Encrypt key file © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 13 Figure 2.1.8 Then click Save Public Key... Figure 2.1.9 Just use the default name id_rsa.pub and Click Save and Click Close to close the Generate SSH Key window. © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 14 Under the Device Configurations tab now click Deploy Public Key... Figurer 2.1.11 Select the file just generated (should be under /home/<user>/.ssh) IMPORTANT : You may need to right click and select show hidden files or Ctrl+h © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 15 Figure 2.1.12 Select the file id_rsa.pub and click on Open, shortly a window should show up saying "Sucessfully" Figure 2.1.13 © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 16 This section explains how to Install prebuilt toolchain binaries on the Host. Where as, building of Toolchain is explained in build system section. 2.2.2. Downloading the Toolchain: Download the toolchain from the public ftp of PHYTEC from the link below. ftp://ftp.phytec.de/pub/Products/India/phyBOARD-WEGA- AM335x/Linux/PD14.0.0/tools/toolchain/arm-cortexa8-linux-gnueabihf.tar.bz2 2.2.3.
  • Page 17 $ make $ sudo make install check the binary file in /opt/qt-cross $ ls /opt/qt-cross/bin Method-2: use prebuilt qt-cross provided by Phytec $ sudo cp qt-cross-hf.tar.bz2 /opt $ cp /opt $ sudo tar -xvf qt-cross-hf.tar.bz2 $ ls /opt/qt-cross/bin Completed , Now use the qmake path for cross-compiling you application in QT-Creator.
  • Page 18 After making all changes like baud rate - 115200, hardware flow control - No etc., press ‘ENTER’ to come out from the screen.Now, select the ‘Save setup as dfl’ it saves the setting as default. Have a look at the Screenshot below: Figure 2.4.3 © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 19 3.1. Simple Demo Application: Open a New Project Under Forms, double click on phytec.ui - this will bring up the widget editor. Figure 3.1.1 Find the label widget in the category of display widgets, left click and drag it on to the User Interface (UI).
  • Page 20 Now we need to check and update the build and run settings: On the left side vertical menubar select Projects Select the Build Settings tab and select ''Qt 4.8.5(sysroot-cross) Release'' in Edit build configuration. © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 21 Click on Edit on the left side vertical bar and click on Phytecindia.pro Add the two lines below to the bottom of Phytecindia.pro as shown in the screen shot below target.path += /home/phytec INSTALLS += target © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 22 Figure 3.1.7 Finally, run the application: Note: If application is not running add “-qws” to the Arguments section in Run settings. The Output can be seen in LCD display as shown below. © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 23 Figure 3.2.1 Click on Edit on the left side vertical bar and click on obserial.pro Add the below lines at the bottom of obserial.pro file as shown in the screen shot below. © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 24 Now on host side (power up the target board and make proper settings and make sure Ethernet wire is connected on the target side). To login to the target give the following command $ ssh root@< ip-address of target> Figure 3.2.4 © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 25 Go to the path which we mentioned in bottom of the .pro file in Qt creator i.e,target.path += /home/<user> (see the following image.) Figure 3.2.6 $ cd /home /<user> Figure 3.2.7 Now execute the output file $./obserial -qws $ ./obserial -qws Figure 3.2.8 © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 26 Now, type any letters on keyboard which is connected to USB-Hub, it visible on terminal of the LCD display: Figure 3.2.10 Open the minicom and log-in to the board The same will be displayed on the minicom as below: Figure 3.2.11 © PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...
  • Page 27 17, place St. Etienne F-72140 Sillé le Guillaume Tel.: +33 2 43 29 22 33 Fax: +33 2 43 29 22 34 www.phytec.fr ........We are looking forward to hear from you! ..........© PHYTEC Embedded Pvt. Ltd 2014 Revision no. 1.0...