industrialNETworXnetx

Martin Kaul

Martin Kaul

Test

| 09.11.2009 | 13:25 | 1 reply

OpenOCD

Hi,

exists at Hilscher an simple example using OpenOCD and netX100 - for example blinking a led at a EvaBoard like NXSB100?

I found a configuration example for OpenOCD and netX100 in internet. Maybee this example have its origin at Hilscher and there exists also some examples at Hilscher.

best regards
Martin

M T

M T

Hilscher Gesellschaft für Systemautomation mbH

| 10.11.2009 | 07:59

OpenOCD is a JTAG interface to controllers (e.g. ARM based) using FTDI chips or some other JTAG Hardware.

It is not responsible for blinking LED's etc. You will need to download ARM/netX Software (.elf file) via JTAG and let it run on the Board. (As you are used to, when using HiTop). If you want to blink LEDs via JTAG you will need to search the OpenOCD command interface documentation for commands like mdw, mww, etc.

There is no example available, but there are many sites on the net providing information about OpenOCD with sample scripts.

I can only provide you a sample script for a NXHX-500RE without warranty and support:

tcl_port 6666
telnet_port 4444
gdb_port 3333

#interface
interface ft2232
ft2232_device_desc "NXHX 500-RE A"
ft2232_layout comstick
ft2232_vid_pid 0x0640 0x0028
jtag_speed 1

#reset_config trst_and_srst|trst_only|srst_only srst_pulls_trst|trst_pulls_srst|combined
reset_config trst_and_srst
jtag_nsrst_delay 500
jtag_ntrst_delay 500

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag newtap netx0 tap0 -irlen 4 -ircapture 0x1 -irmask 0xf

target create target0 arm926ejs -endian little -chain-position 0 -variant arm922t

target0 configure -work-area-virt 0x1000 -work-area-phys 0x1000 -work-area-size 0x4000 -work-area-backup 1

target0 configure -event reset-init {
halt

arm7_9 fast_memory_access enable
arm7_9 dcc_downloads enable

puts "Configuring SDRAM controller for MT48LC2M32 (8MB) \n"
mww 0x00100140 0
mww 0x00100144 0x03C23251
mww 0x00100140 0x030D0001

puts "Configuring SRAM nCS0 for 90ns Par. Flash (x16)\n"
mww 0x00100100 0x01010008

flash probe 0
}

#####################
# Flash configuration
#####################

#flash bank cfi
flash bank cfi 0xC0000000 0x01000000 2 2 0

init
reset init

This script will basically connect to a NXHX500-RE Board using the On-Board JTAG. How to download and Debug your application is up to you using the OpenOCD command interface (telnet) and/or an external GDB Debugger (e.g. Insight).

Please keep in mind that, due to the variety of debugging software using GDB interface and different JTAG hardware interfaces, it is not possible to support OpenOCD in general and every possible detail.

Here a list of public sites (no support from Hilscher) with information about configuring OpenOCD and using the telnet interface:
OpenOCD Documentation
OpenOCD Intro
Eclipse sample

Regards

MT

Login