CONITEC GALEP-5 Скачать руководство пользователя страница 21

Just like OpenOCD, the GALEP-5 port is an Open Source project with no warranty of functions and stability. 
We will continue developing the software further, but also give you all sources - the full GALEP-5 API - for 
improving and extending the software yourself.  

JTAG Debugging with GALEP-5 

A configuration file is required for configuring the JTAG debugger with your target system. This is a simple 
text file with configuration data for the OpenOCD program and the GALEP port. As mentioned, 
OpenOCD runs natively on the programmer. For this it has to be transferred first to GALEP together with the
configuration file. It is transferred with a FTP client and started with a Telnet client.  

The configuration file  

The configuration file contains settings for the interface, the target system, and for OpenOCD. Example:  

# Example that uses the galep5 hardware as ocd interface.  
# The socket is configured to interface the arm&eva hardware.  
# (See http://www.conitec.com/english/linuxboard.htm)  
 
# interface  
interface galep5  
interface_speed 0  
jtag_speed 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  
socket_assign GND          33  
socket_assign GND          34  
socket_assign NTRST        23  
socket_assign TDI          22  
socket_assign TMS          21  
socket_assign TCK          20  
socket_assign TDO          18  
socket_assign NRESET       17  
 
# daemon configuration  
telnet_port 4444  
gdb_port 3333  
 
# use combined on interfaces or targets that can’t set TRST/SRST separately  
reset_config trst_and_srst  
 
# jtag scan chain  
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)  
jtag_device 4 0x1 0xf 0xe  
 
# target configuration  
daemon_startup reset  
# target <type> <endianess> <reset mode>  
target arm9tdmi little reset_run 0 arm920t  
working_area 0 0x200000 0x4000 backup  
run_and_halt_time 0 5000  
 
# flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]  
flash bank cfi 0x10000000 0x800000 2 2 0 

Interface Settings  

The interface settings contain GALEP and socket specific data - see example above.  

Interface type

    

The settings begin with the 

interface  = galep5

 statement that determines the use of the GALEP-5 / 

OpenOCD port. This port supports the whole GALEP-5 series (GALEP-5M, GALEP-5D and GALEP-5P). 

Содержание GALEP-5

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 15: ......

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: