Contents
.................................................................69
PHYTEC Messtechnik GmbH 2015 L-781e_7 i
Conventions, Abbreviations and Acronyms ....................................................................iii
1 ...................................................................................................... 1 Introduction
1.1
............................................................. 1 Rapid Development Kit Documentation
1.2
........................................................... 1 Professional Support Packages Available
1.3
.......................................................... 2 Overview of these QuickStart Instructions
1.4
.................................................................................... 2 System Requirements
1.5
........................................... 2 Software used in the virtual machine hard disk image
1.5.1
............................................................................................ 2 Ubuntu
1.5.2
............................................................................................. 3 Eclipse
1.5.3
........................................................................................ 3 Qt Creator
1.5.4
.................................................................................... 3 Yocto Project
2
................................................................................................... 4 Getting Started
2.1
........................................................ 4 Preparing and Starting the virtual machine
2.2
................................................................................... 5 Starting the Hardware
3
......................................................................................... 10 Working with Eclipse
3.1
.............................................................10 Programming in the C/C++ Perspective
3.1.1
................................................................10 Work with the Demo Project
3.1.2
.......................................................................15 Creating a New Project
3.1.3
..........................................................22 Modifying the Demo Application
3.1.4
.......................................25 Starting a Program out of Eclipse on the Target
3.2
.......................................................................27 Debugging an Example Project
3.2.1
...................................................28 Starting the GDB Server on the Target
3.2.2
....................................28 Configuring and Starting the Debugger in Eclipse
3.2.3
.........................................................................33 Setting a Breakpoint
3.2.4
..................................34 Stepping through and Watching Variable Contents
3.2.5
..................................36 Stepping through and Changing Variable Contents
3.2.6
..................................................................37 Using the Memory Monitor
4
..................................................................................... 40 Working with Qt Creator
4.1
..........................................................40 Stop the Running Qt Demo on the Target
4.2
.....................................................................40 Importing the Demo Application
4.3
.....................................................................42 Work with the Demo Application
4.4
..........................................45 Compile and Run the Demo Application on the Target
4.5
............................................48 Compile and Run the Demo Application on the Host
4.6
....................................................................49 Debugging the Demo Application
4.6.1
........................................49 Using QDebug for simple Debugging Messages
4.6.2
.............................................51 Using the integrated Qt Creator Debugger
5
........................................................................................... 55 Working with Yocto
5.1
.........................................................55 Add new packages to the Root Filesystem
5.2
.............................................59 Writing the Root Filesystem into the Target’s Flash
6
............................................................................ 62 Setup your own Linux-Host-PC
6.1
........................................................................................62 Essential Settings
6.1.1
.............................................................................62 Installing Ubuntu
6.1.2
........................................................64 Installation of Software Packages
6.1.3
....................................................................65 Set the Git Configuration
6.1.4
...............................65 Build the Board Support Package and Install the SDK
6.1.5
....................................................67 Set up Eclipse and Integrate Plug-ins
6.1.6 Install and Setup Qt Creator