The purpose of this article is to describe how to join together the Processor
Expert and ARM GCC toolchain under Eclipse environment.
Freescale provides the Processor Expert, which contains the Pin Settings Tool
to support an easy way to configure pin signals, from multiplexing to the electrical
properties of pins. With such Tool all the pins can be configured with a graphical
user interface, and then generate C code, in order to use it as an example in applications.
Please refer to the following Web for more details.
The Processor Expert Software for i.MX Processors (Version 1.0) does not include
a compiler or linker. Customers should merge the generated code into a build system.
However, it is possible to use common Eclipse-based IDE for the Processor Expert (V 1.0)
and GNU ARM “C” toolchains. In particular, the following sequence may be implemented for
both Linux and Windows hosts.
Install Eclipse (Kepler release) IDE for C/C++ Developers.
Add Eclipse Processor Expert plug-in, as recommended in the documentation.
Add GNU ARM Eclipse, which contains configurations for different toolchains,
including Linux ones.
Install appropriate toolchain. For bare-metal applications Sourcery CodeBench Lite
for ARM is sutable one.
Sourcery CodeBench Lite Edition including ARM GCC IDE - Mentor Graphics
Please use Getting Started Guide document from the CodeBench Lite package,
that explains how to install and build applications with the CodeBench Lite.
As an example, let’s consider minimal startup code for i.MX6Q (LED flickering
project on i.MX6Q SDB / SDP). Assuming Eclipse IDE with the Processor Expert
and GNU ARM tools is installed, we should create new “C” project under Eclipse :
Tab “Target Processor” :
ARM Family : cortex – a9
Architecture : armv7-a
Instruction set : ARM (-marm)
Endianness : Little endian (-mlittle-endian)
FloatABI : Library with FP (softfp)
FPU Type : neon
Unaligned access : Disabled (-mno-unaligned-access)
“Cross ARM GNU Create Flash Image” :
General : Raw binary.
TAB “Toolchains” :
Name : Sourcery CodeBench Lite for ARM EABI (arm-none-eabi-gcc)
(If needed customers can select appropriate toolchain)
Architecture : ARM (AArch32)
Prefix : arm-none-eabi
Check “Use global toolchain path” or select the required path directly.
C/C++ Build -> Settings -> Tool Settings -> Cross ARM C Linker -> General.
Add script file “mx6dq.ld”, uncheck “Remove unused section”, check
Note, the article of Miro Samek is very helpful in clarifying of startup code and linker
script. Please refer to “Building Bare-Metal ARM Systems with GNU”. Article Published
online at www.Embedded.com, July/August 2007.
So, now we can build the project : Project -> Build Project.
Two executable file will be generated : test.elf (for JTAG debugger) and test.bin,
which may be used to create bootable SD card, using cfimager-imx.exe utility :
CMD> cfimager-imx -o 0 -f test.bin -d g:
Please use readme files in the enclosed for more details.
Original Attachment has been moved to: sources.7z.zip
Original Attachment has been moved to: sd_image.7z.zip