Qt is great easy to use multiplatform C++ framework. Raspberry Pi is a great piece of widely used hardware. In this blog post I'd like to show how to mix these technologies together - compile Qt5 from sources for Raspberry Pi. In one of following posts I'll also show how to configure QtCreator for remote debug on Raspberry Pi.
The purpose of this blog entry is to show how to configure Eclipse IDE for C and C++ development for ARM Cortex microcontrollers using GCC. I will focus on configuration for STM32F0 platform since microcontrollers from ST are widely used. I also expect that you are using Windows. Configuration for linux is similar. So lets do it from scratch step by step.
I've discussed LED blinking using GPIO and software delay in my previous post. Today I'd like to show how to quickly configure cascaded timer interrupt using QuickStart. The purpose of this post is not to describe how timers work but to show how easily the configuration with QuickStart is. Timers and interrupt controller will be discussed deeply in some of next posts.
I've discussed CodeWarrior installation and QuickStart configuration in my previous post. Here I would like to describe how to simply work with GPIO and blink LED. I have MC56F8006DEMO kit from Freescale so this example is created using it. If you have another kit or application you should choose appropriate processor type and use correct GPIO port. We will start creating a new project. Start CodeWarrior IDE, click File -> New... and in the dialog select DSP56800E Quick Start r2.x Stationary (if there is no such target your installation was not sucessful). Fill project name and project location (see picture below).
It is not hard to install development suite - you only have to perform few steps (download links are at the end of this post). First you have to install CodeWarrior IDE (there is nothing to configure). The next to install is FreeMASTER (again nothing to configure in this step). QuickStart should be installed last. After finishing you have to perform post installation steps described in "\Program Files\Freescale\DSP56800E_Quick_Start r2.4\user_manuals\todo_CW.htm" (or can be found in Start menu - Freescale - DSP56800E Quick Start - Read post installation steps). It is an integration of QuickStart configuration interface to CodeWarrior and path setup.
I've described tools needed for development in my last post. JTAG adaptor is one of them. There are two low cost possibilities - CodeWarrior USB TAP and LPT JTAG. The biggest "pro" for USB TAP is that USB ports are everywhere. However flashing time and debugging speed is the same as in case of LPT JTAG. In this post you will find a construction of LPT JTAG. The biggest "con" is need of hardware LPT port - this is a problem of new laptops. If you would like to buy or build USB -> LPT converter - do not try this, it doesn't work (I've tried cheap USB-LPT from ebay and USB-LPT based on AVR MCU, both not working). Only chance is probably PCI or PCMCIA card.
I think there is no need to heavily introduce Freescale company - one of the biggest microcontrollers, processors and signal controllers manufacturer. For example their 8 bit microcontroller family S08 is very popular around the world. I will focus on something what Freescale calls "Digital signal controllers" (DSC) family with 56800/E core which can be placed somewhere between classic 8 bit microcontrollers and powerful microcontrolers with ARM core. They are interested because of their signal core, reasonable price and scope of development products offered by Freescale for free.