Advertisement

Quick Links

Cosmic-AM335x
QT Development Manual
SOM Product No: PCM-051
Carrier Board Product No: POB-002
Release 2.0
September,2013
www.phytec.in
1
Revision no. 2.0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Cosmic-AM335 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Phytec Cosmic-AM335 Series

  • Page 1 Cosmic-AM335x QT Development Manual SOM Product No: PCM-051 Carrier Board Product No: POB-002 Release 2.0 September,2013 www.phytec.in Revision no. 2.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

    2.3.Building qmake using ptxdist................14 2.3.1Download the PTX-dist packet from the following link……………………………14 2.3.2.Download the PTX-dist BSP source from following link…………………………14 2.4.Setting Serial Console (Minicom)...............15 2.5.Set the ip for Cosmic-AM335x................17 3. Application development..................18 3.1.Simple Demo Application…………………………………………………………………18 3.2.Uart Read Application..................23 www.phytec.in Revision no. 2.0...
  • Page 4: Qt Application Development For Cosmic-Am335X

    Qt in linux 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 www.phytec.in Revision no. 2.0...
  • Page 5: Qt Creator Configuration For Cosmic-Am335X

    Click the Qt Versions tab under Build & Run Remove any versions that may already exist to make sure you start with a clean configuration Click Add... on the right Navigate to /home/bhaskar/work/phytec/src/OpenBoard- AM335xPD13.0.0/platformPHYCORE-AM335x/sysroot-cross/bin/qmake Note:here Navigate to the path of qmake in our PC.(referN 2.4)
  • Page 6 Click the Tool Chains tab under Build & Run Click Add in the top right and add a GCC For Compiler Path select Browse Navigate to /home/bhaskar/work/phytec/src/arm-cortexa8-linux-gnueabi/bin Note:here navigate to the path where you have exported the tool chain Select arm-cortexa8-linux-gnueabi-gcc and click on open...
  • Page 7 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 Figure 2.1.4 www.phytec.in Revision no. 2.0...
  • Page 8 Type in the IP address of the Embedded Linux Device. Type the IP address for your board, not the one shown in the screen capture. For Username type in root Make sure Authentication type is Password, but leave the password field blank. Click Next and click Finish Figure 2.1.5 www.phytec.in Revision no. 2.0...
  • Page 9 Now we need to setup an SSH key so that the host can communicate with the target 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 www.phytec.in Revision no. 2.0...
  • Page 10 Click Do not Encrypt key file Figure 2.1.8 Then click Save Public Key... Figure 2.1.9 www.phytec.in Revision no. 2.0...
  • Page 11 Just use the default name id_rsa.pub and Click Save and Click Close to close the Generate SSH Key window. Figure 2.1.10 Under the Device Configurations tab now click Deploy Public Key... Figurer 2.1.11 www.phytec.in Revision no. 2.0...
  • Page 12 IMPORTANT You may need to right click and select show hidden files or Ctrl+h Figure 2.1.12 Select the file id_rsa.pub and click on Open, shortly a window should show up saying "Deployment finished sucessfully" Figure 2.1.13 www.phytec.in Revision no. 2.0...
  • Page 13: Target Setup

    This section explains how to install prebuilt toolchain binaries on the Host. Whereas building of Toolchain is explained in buidsystem 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/Cosmic-AM335x/Linux/PD13.0.0/tools/toolchain/arm- cortexa8-linux-gnueabi.tar.bz2 2.2.3.Export the Toolchain to Shell Path:...
  • Page 14: Building Qmake Using Ptxdist

    $ echo $PATH 2.3.Building qmake using ptxdist 2.3.1Download the PTX-dist packet from the following link: ftp://ftp.phytec.de/pub/Products/India/Cosmic-AM335x/Linux/PD13.0.0/buildsystems/ptxdist/ptxdist- 2012.03.0.tar.bz2 Extract the above downloaded source $ tar -xvf ptxdist-2012.03.0.tar.bz2 Go to downloaded folder $ cd ptxdist-2012.03...
  • Page 15: Setting Serial Console (Minicom)

    Using the options at left; make the setting as shown in the figure 3.2. For ex: Serial device – dev/ttsyS0, first press ‘A’ the cursor blinks at the particular line then change the device name to /dev/ttyS0 and press „ENTER‟. www.phytec.in Revision no. 2.0...
  • Page 16 After making all changes like baud rate -115200, hardware control flow -No etc. that are required press „ENTER‟ to come out from the screen, now the previous screen will appear. Figure 2.4.3 Now select the ‘Save setup as dfl’ it saves the setting as default. Now select ‘Exit‟ www.phytec.in Revision no. 2.0...
  • Page 17: Set The Ip For Cosmic-Am335X

    Again check whether it is configured or not $ ifconfig –a Then we have to set the gateway $ route add default gw 192.168.1.1 To see the change in the gateway. $route www.phytec.in Revision no. 2.0...
  • Page 18: Application Development

    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 19 Figure 3.1.3 File->Save phytec.ui 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 selct the Qt 4.7.4(sysroot-cross)Release for build configuration. Figure 3.1.4 www.phytec.in...
  • Page 20 Figure 3.1.5 Now under the Projects Mode select the Run Settings tab Under Deployment click Add and select Deploy to Remote Linux Host However you see the <no target path set> error Figure 3.1.6 www.phytec.in Revision no. 2.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 Figure 3.1.7 Select File ->...
  • Page 22  Save all files if asked NOTE: To exit from the hello world running on the target, click on the "X" on the upper right menu bar. The Output can be seen in the connected LCD display. Figure 3.1.9 www.phytec.in Revision no. 2.0...
  • Page 23: Uart Read Application

    3.2.Uart Read Application Open the Uart project build it and run it on the target Down load the Source code of Uart from the following link: ftp://ftp.phytec.de/pub/Products/India/Cosmic-AM335x/Linux/PD13.0.0/src/apps/Qt_uart.tar.gz Select File-> Open File or Project Open the obserail.pro file in the Qt_uart folder.
  • Page 24 Now on host side (power up the target if not and make proper settings and make sure Ethernet wire is connected on target side) To login to the target give the following command $ssh root@<ipaddress of target> Figure 3.2.4 Now you are in target Figure 3.2.5 www.phytec.in Revision no. 2.0...
  • Page 25 Go to the path which we mentioned in bottom of the .pro file in Qt creator i.e,target.path += /home/naga (see the following image.) Figure 3.2.6 $cd /home /naga Figure 3.2.7 Now execute the output file $./obserial -qws $./obserial –qws Figure 3.2.8 www.phytec.in Revision no. 2.0...
  • Page 26 Click on the Apply Click on the icon(connect to serial port) which is first icon in the below row Now type any letters on keyboard which is connected to usb hub, it visible on terminal of the LCD display www.phytec.in Revision no. 2.0...
  • Page 27 Figure 3.2.10 Open the minicom and login to the board The same will be displayed on the minicom Figure 3.2.11 www.phytec.in Revision no. 2.0...
  • Page 28 Get the dialog going ..and stay in touch India PHYTEC Embedded Ltd. #16/9c 3rd Floor, 3rd Main 8th Block, Opp. Police Station Kormangala, Bangalore-560095 Tel.: +91-80-40867046 www.phytec.in Germany PHYTEC Messtechnik GmbH Robert-Koch-Straße 39 D-55129 Mainz Tel.: +49 6131 9221-32 Fax: +49 6131 9221-33 www.phytec.de...

This manual is also suitable for:

Pcm-051

Table of Contents