User guide

4
6310A–ATARM–26-Mar-07
Application Note
3.5 Make
Most GNU-based projects (including Atmel software examples) use the make utility to manage
their building process. It tells the compiler(s) and linker(s) which files must be compiled or linked
and how they should be, according to a set of rules written by the programmer in a makefile. The
advantage is that any tool chain can be used with make, thus rendering projects built using
makefiles more portable.
Since the YAGARTO toolchain does not provide make, another package must be installed to get
it. The GnuWin32 project (http://gnuwin32.sourceforge.net/) provides native ports of GNU tools
for Windows, this includes make.
The GNU manual gives more information about make and makefiles. It can be found at
http://www.gnu.org/software/make/manual/make.html. To find out about the other tools provided
by GnuWin32, please refer to http://gnuwin32.sourceforge.net/packages.html.
3.6 GDB Server
The GDB Server utility developed by SEGGER enables the GNU GDB debugger to connect
remotely to an ARM microcontroller through a JLink-compatible device. In addition, since it cre-
ates a TCP/IP server on the local network, any connected computer can debug the target.
Figure 3-4. GDB Server Main Window
GDB Server is a commercial package; however, Atmel has acquired the licence for its SAM-ICE
emulator. Thus, it can be used without restriction when using a SAM-ICE probe and an AT91
microcontroller.
More information about GDB Server can be found by visiting the following website:
http://www.segger.com/jlink_gdb.html.
4. Installation
4.1 SAM-BA
4.1.1 Getting SAM-BA
Since SAM-BA is part of the Atmel ISP solution, the whole package must be downloaded and
installed. The latest version of ISP is available on the Atmel web site, at the following address:
http://www.Atmel.com/dyn/products/tools_card.asp?tool_id=3883.