Login

Why register?

  • Download software and technical materials
  • Purchase products at our on-line shop
  • Receive design news to stay up-to-date with Emcraft's new solutions

 

 

Running QT GUI Print


This application note explains how to run a demo QT GUI on the Embedded Artists LPC4357 Dev Kit under uClinux. The demo is shown in the following video. Even though that video shows the Qt demo running on the Embedded Artists LPC1788 Dev Kit, the demo runs the same on the LPC4357 Dev Kit as well.


Hardware Platform

The hardware platform is the Embedded Artists LPC4357 Dev Kit with the connected Embedded Artists 4.3 inch LCD board. There is a USB mouse plugged into the USB High Speed (HS) interface connector on the Dev Kit baseboard.


Installing the Demo

Download the Qt add-on for uClinux. It includes the QT 4.7.3 library sources, ported and ready for uClinux Cortex-M.

Go to the top of your Linux Cortex-M installation and unpack the Qt add-on:

[psl@ocean linux-cortexm-1.14.0]$ cd linux-cortexm-1.14.0
[psl@ocean linux-cortexm-1.14.0]$ tar jxf /tmp/qt-4.7.3.tar.bz2
[psl@ocean linux-cortexm-1.14.0]$

This will add the following directory to your Linux Cortex-M installation: A2F/qt-4.7.3. Build the Qt libraries:

[psl@ocean linux-cortexm-1.14.0]$ cd linux-cortexm-1.14.0
[psl@ocean linux-cortexm-1.14.0]$ source ACTIVATE.sh
[psl@ocean linux-cortexm-1.14.0]$ cd A2F/qt-4.7.3
[psl@ocean linux-cortexm-1.14.0]$ sh ./linux-cortexm-configure-mouse
[psl@ocean linux-cortexm-1.14.0]$ make -s -j6
...

Download the Qt demo project archive (qtdemo.tgz) and install it to the top of the Linux installation. Go to the project directory and build the bootable Linux image:

[psl@ocean linux-cortexm-1.14.0]$ cd projects/qtdemo
[psl@ocean linux-cortexm-1.14.0]$ make
...

Note: The demo project has been built and validated in context of the Emcraft Systems Release 1.14.0. If you are using a different release, some porting changes may be needed.


Running the Demo

Boot the bootable Linux image (qtdemo.uImage) to the LPC4357 Dev Kit from the network, as described in Loading Linux images via Ethernet and TFTP.

When you boot the Linux image on the target, it proceeds to automatically launch the Qt GUI on the 4.3" LCD. It takes about 15 seconds for the GUI to start to a fully functional state. Use the USB mouse to navigate and control the GUI.