background image

2.4. Setting Serial Console (Minicom)

$ sudo minicom -s

Select the option serial port setup from menu on terminal and press 

'Enter'

                                    Figure 2.4.1

Using the options at left; make the setting as shown in the figure 2.4.2 
For 

ex:

 Serial device – dev/ttyS0, first press ‘A’ the cursor blinks at the particular line then 

change the device name to 

/dev/ttyS0

 and press 

‘ENTER’

 

Figure 2.4.2

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

18

Revision no. 1.0

Summary of Contents for 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 1 Revision no 1 0...

Page 2: ...om the improper usage or improper installation of the hardware or software PHYTEC Embedded Pvt Ltd further reserves the right to alter the layout and or design of the hardware without prior notificati...

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 3 Revision no 1 0...

Page 4: ...th chapter Describes Qt Creator with UART Demo application 1 Application development using Qt Creator With the help of example projects we will teach you how to work with Qt Explain how to run Qt appl...

Page 5: ...st and Target 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...

Page 6: ...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 Embed...

Page 7: ...arget 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 7 Revision no...

Page 8: ...the left side vertical menubar click Build Run 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 r...

Page 9: ...bin 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 ar...

Page 10: ...ions menu 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 c...

Page 11: ...he IP address Box as 192 168 1 196 For your target In the Box The Username to log into device write entry as root Make sure Authentication type is Password but leave the password field blank Click nex...

Page 12: ...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...

Page 13: ...ure 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 13 Revision no 1...

Page 14: ...ations 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 E...

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 15 Revision no 1 0...

Page 16: ...phyBOARD WEGA AM335x Linux PD14 0 0 tools toolchain arm cortexa8 linux gnueabihf tar bz2 2 2 3 Export the Toolchain to Shell Path Extract the toolchain that has downloaded from terminal issue the fol...

Page 17: ...verywhere opensource src 4 8 5 vim mkspecs qws linux arm gnueabi g qmake conf change arm none linux gnueabi to arm cortexa8 linux gnueabihf save and exit Execute the following configuration command co...

Page 18: ...l device dev ttyS0 first press A the cursor blinks at the particular line then change the device name to dev ttyS0 and press ENTER Figure 2 4 2 After making all changes like baud rate 115200 hardware...

Page 19: ...opment 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 l...

Page 20: ...ee all the letters 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 selec...

Page 21: ...e the no target path set error Figure 3 1 5 To fix the no target path set errors do the following Click on Edit on the left side vertical bar and click on Phytecindia pro Add the two lines below to th...

Page 22: ...replaced with home phytec Now in the Run portion Select Add terminal on Remote Generic Linux Host Figure 3 1 7 Finally run the application Note If application is not running add qws to the Arguments s...

Page 23: ...apps Qt_uart tar gz Select File Open File or Project Open the obserial pro file in the Qt_uart folder as shown in the screenshot below Figure 3 2 1 Click on Edit on the left side vertical bar and clic...

Page 24: ...ck Add and select Deploy to Remote Linux Host Now in the Run portion Select Add obserial on Remote Generic Linux Host Figure 3 2 3 Now on host side power up the target board and make proper settings a...

Page 25: ...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 Figu...

Page 26: ...baud rate in serial port settings in target NOTE Set the serial port settings in LCD display preferably ttyO1 Click on the Apply button Next Click on the icon connect to serial port which is first in...

Page 27: ...9 D 55129 Mainz Tel 49 6131 9221 32 Fax 49 6131 9221 33 www phytec de www phytec eu America PHYTEC America LLC 203 Parfitt Way SW Suite G100 Bainbridge Island WA 98110 Tel 1 206 780 9047 Fax 1 206 780...

Reviews: