CONITEC GALEP-5 Manual Download Page 26

OpenOCD Interfaces   

The OpenOCD software opens two network ports:  

„

A port for controlling the software with a Telnet client.  

„

A port that supports the 

gdb

 (Gnu Debugger) remote specifications.  

Assigning "GND"-> Socket pin 26  
Assigning "GND"-> Socket pin 27  
Assigning "GND"-> Socket pin 28  
Assigning "GND"-> Socket pin 29  
Assigning "GND"-> Socket pin 30  
Assigning "GND"-> Socket pin 31  
Assigning "GND"-> Socket pin 32  
Assigning "GND"-> Socket pin 33  
Assigning "GND"-> Socket pin 34  
Assigning "NTRST"-> Socket pin 23  
Assigning "TDI"-> Socket pin 22  
Assigning "TMS"-> Socket pin 21  
Assigning "TCK"-> Socket pin 20  
Assigning "TDO"-> Socket pin 18  
Assigning "NRESET"-> Socket pin 17  
Assigning button function 1 -> exec "btShort.script"...  
Assigning button function 3 -> exec "btLong.script"...  
Info:    options.c:50 configuration_output_handler(): jtag_speed: 100, 100  
Setting up socket...  
Using 1.8V logic levels.  
Target supply detected.  
Info:    jtag.c:1346  jtag_examine_chain():  JTAG device found: 0x05b0203f (Manufacturer: 0x01f, 
Part: 0x5b02, Version: 0x0)

  

Telnet port 

This port is defined in the config file, in the example above through the statement 

telnet_port  = 4444

. This 

port number must be given when connecting with a Telnet client. Via Telnet, debugging commands can be 
directly sent the the OpenOCD software, for instance:  

„

Disply processor registers  

„

Display and modify hardware breakpoints  

„

Reset the target system  

The output by OpenOCD scripts assigned to the GALEP-5D button (see above) are also sent to the Telnet 
port. For detailed information please refer to the OpenOCD documentation.  

gdb port 

This port is also defined in the config file, for instance through 

gdb_port  = 3333

. The gdb (Gnu Debugger) 

port is used by the gdb software for source level debugging.  

Debugging with gdb 

The debugger (“

gdb

”) runs on the target system. It has to be compiled for the target processor and is normally

part of the tool chain for a certain target system. When debugging an ARM based target you'll need a gdb 
comüiled with ARM support. The gdb source code is freely available, thus anyone can compile the debugger 
for any target. It runs on many platforms and can also be downloaded as a pre-compiled executable.  

There are many frontend for easier debugging. Some scenarios are described below.  

The shell frontend 

Summary of Contents for GALEP-5

Page 1: ...diting of files stored in binary Intel Hex Motorola S or JEDEC format New components made available regularly as free downloads from our web site allow new and existing owners of the GALEP 5 to be ass...

Page 2: ...ogue box will display on screen asking if you wish to open a connection via the automated Windows updater utility to seek an appropriate driver Here you will need to select the No option and then clic...

Page 3: ...nd low bytes of all 16 bit words in the buffer Fill Buffer Fills a buffer area with a byte value Split Buffer For programming memory chips with a data width smaller than the target system data width T...

Page 4: ...between the device and the data in the buffer to be displayed consecutively Blank F5 Checks whether the device has been successfully deleted or erased Read F6 Reads the contents of the device into the...

Page 5: ...Icons Displays all window icons in an adjacent arrangement Close All Closes all buffer windows Help Content Opens this document About Here among other things you will find the Version Number of the p...

Page 6: ...ress in the buffer window simply overwrite the address in the buffer window with the desired address and confirm with a return The buffer window will then display the data starting with the address en...

Page 7: ...ile after File Load Save and it is not stored At the start of the Galep32 application the original file will be reloaded if exist Icon Description The Data Buffer isn t modified no file loaded saved y...

Page 8: ...ep in mind that the device always must be inserted exactly as displayed in the Action window Such limitation obviously does not apply to the GALEP 4 and GALEP 5 ASIC pin hardware capabilities but both...

Page 9: ...e batteries 1 2 or 1 5 Volt DISPOSE OF USED BATTERIES ACCORDING TO LOCAL LAW For non mobile operation we suggest using the power adapter which comes with your GALEP 5 unregulated 12 Volt DC 500 mA Whe...

Page 10: ...20pin PLCC 210845 GAL Adapter 24pin DIL to 28pin PLCC 210846 Adapter 40pin DIL to 44pin SOP 210847 Adapter 40pin DIL to 44pin T QFP 210848 Adapter 40pin DIL to 80pin QFP 210849 Adapter 16pin DIL to 16...

Page 11: ...387 210889 Adapter M23 QFP 64 for Fujitsu CPU MB91F463N 210890 Adapter M08 QFP 144 for Fujitsu CPU MB91F467B 210891 Adapter M07 QFP 176 for Fujitsu CPU MB91F467R 210892 Adapter M08 QFP 144 for Fujitsu...

Page 12: ...See also Inserting an adapter into the GALEP P gina 3 de 3 GALEP Adapter 23 04 2009 mk MSITStore C DOCUME 1 Laura CONFIG 1 Temp Directorio 20temporal...

Page 13: ...the project file gpf2 The write back of the serial number status can be activated or deactivated Choose the allocation rule for the serial number between use strict only once or reuse the serial numbe...

Page 14: ...number data limited to 20 bytes For RecordType R are max 40 ASCII characters possible For L and B are max 20 ASCII characters allowed If the serial data field is shorter than the length specified tha...

Page 15: ......

Page 16: ...t device 2 0002 7AA 2 R 2 device 2 0022 7BB 2 R 2 device 2 2_7AA_7BB L 2 device 3 0003 7AA 2 R 3 0033 7BB 2 R 3 3_7AA_7BB L 4 0004 7AA 2 R 4 0044 7BB 2 R 4 4_7AA_7BB BBBB 5 L SerialAddress and DataLen...

Page 17: ...n directory The gpf2 file format must match the Galep software version When updating to a new software version either create the gpf2 files anew or keep the installation of the old GALEP software vers...

Page 18: ...turns the following values 0 No Batch job executed 1 Success 2 Error Quick Batch Tutorial Step 1 Start the GALEP5 exe without any command line option Load your data file und select your device set you...

Page 19: ...and program echo off echo Sample 2 blank erase and program if exist yourproject gpf2 goto galep5 echo missing yourproject gpf2 goto nobatch galep32 start wait GALEP5 yourproject gpf2 blank cfg console...

Page 20: ...th OpenOCD and the GALEP API Overview The following part of the documentation is for developers who want to use OpenOCD for debugging their target system For using GALEP 5 as interface for OpenOCD deb...

Page 21: ...d 100 logic_level 1800 socket_assign TargetDetect 24 socket_assign GND 26 socket_assign GND 27 socket_assign GND 28 socket_assign GND 29 socket_assign GND 30 socket_assign GND 31 socket_assign GND 32...

Page 22: ...nd their meaning can be found in the following table a Can be assigned to several pins b Value depends on vcc_level VCCx mV c Parameter range depends on logic_level mV The JTAG relevant signals must b...

Page 23: ...vcc_level VCC1 3300 vcc_level VCC2 4500 vcc_level VCC3 5000 socket_assign VCC1 1 socket_assign VCC2 2 socket_assign VCC3 3 In this configuration socket pin 1 is set to 3 3V pin 2 is set to 4 5V and p...

Page 24: ...mpiled archive g5ocd bin svn xyz tar bz2 resp the zip version into any directory 2 Add your config file see above 3 Transfer all data to GALEP 5 4 Log in on GALEP 5 with a Telnet client 5 Set the exec...

Page 25: ...tp In the image above the following commands were already entered cd home ftp chmod 777 ocd openocd ocd g5_carmeva cfg The last command starts the OpenOCD software It can be terminated with Ctrl C and...

Page 26: ...fig file in the example above through the statement telnet_port 4444 This port number must be given when connecting with a Telnet client Via Telnet debugging commands can be directly sent the the Open...

Page 27: ...ishing the connection gdb target remote 192 168 1 13 3333 After the connection is established gdb commands such as continue ss ni or break can be sent for controlling the program Please have a look at...

Page 28: ...86 tar_bz2 carmeva dev cc 3 4 1 glibc 2 3 3 bin 1 1 9_i386 tar bz2 GALEP 5 API und g5ocd Patch You ll find them under http www conitec net down g5ocd zip Open OCD Sources The OpenOCD project offers a...

Page 29: ...mailing list a quite active mailing list through which the OpenOCD developers answer relevant questions Informations about the GNU debugger gdb you ll find a command reference on http www cs dal ca s...

Page 30: ...estion or by replacing it at its own discretion The immediate delivery of a replacement device is not covered by this warranty Liability In no event shall Conitec be liable for any direct indirect spe...

Reviews: