EasyManua.ls Logo

CONITEC GALEP-5 - Page 27

CONITEC GALEP-5
30 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
The gdb shell frontend is text based and looks puristic at a first glance. Nevertheless it's often the most
practical way of debugging. The graphical frontends sometimes fail, especially with JTAG debugging.
Take your time to make yourself familiar with the debugger! It is a very powerful and well-working tool.
Preparations
Start your target system. Depending on what you're debugging, several steps might be required. Examples:
1. You're using USB for transferring the software to debug.
1. Reset the target system, transfer the software and start your program.
2. Start the OpenOCD software on GALEP-5.
3. The target system is immediately stopped at OpenOCD start (dependent on the reset_halt
parameter of the target config statement - see. OpenOCD documentation) and now you can
connect to gdb.
2. Your software starts automatically (f.i. out of a flash memory).
1. Start the OpenOCD software on GALEP-5.
2. You can now connect to gdb.
Under some circumstances it makes sense to additionally open a Telnet connection to OpenOCD (see
above).
Establishing the connection
(gdb) target remote 192.168.1.13:3333
A
fter the connection is established, gdb commands such as “continue”, “ss”, “ni” or “break” can be sent fo
r
controlling the program. Please have a look at the really good gdb command reference on
http://www.cs.dal.ca/studentservices/refcards/gdbref.pdf
.
More frontends for gdb
You have the choice between several frontends for gdb:
kdbg
Command: kdbg -r 192.168.1.13:3333 program_name
Set up gdb in kdbg -> Global Settings before.
kdevelop
Requires a start script that can be set up with Project Project Options Debugger.
ddd
Not tested yet.
Insight
Not tested yet.
Eclipse
Not tested yet.
A
ll those development systems support the gdb debugger. A detailed description would be outside the scope
of this document, but can be found on the Internet.
Developing with OpenOCD and the GALEP API
Conitec has published all libraries required for controlling GALEP-5 under the GPL. The source development
kit is contained in the g5api-abcM.tar.bz2 archive. The archive contains the source code as well as the
compiled library that direction runs on GALEP-5.
Compiling OpenOCD yourself
This chapter is for developers that are familiar with Linux and tools such as cross compilers, make,
subversion, etc.