SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By volunteer
#19071
Thanks greatly for creating the GNU tool OpenOCD!

I followed the tutorial on this website to configure my LPC2210
(flashless) board. http://www.yagarto.de/howto/yagarto1/index.html
However, when I tried to configure the wiggler JTAG, which connected the
PC with the LPC2210 board via a parallel port, it failed. It said:"
Info: openocd.c:82 main(): Open On-Chip Debuger (2006-08-17 17:00 CEST)
Debug: jtag.c:1184 jtag_init():
Debug: parport.c372 parport_init(): requesting privileges for parallel
port 0x378...
Error: parport.c:380 parport_init():missing privileges for direct i/o

Could anyone tell me what the problem is? And anyone who is experienced
in configuring a system with external flash, please give me some
tutorials. Thank you very much.

The configuration file is as follows:


#daemon configuration
telnet_port 4444
gdb_port 3333

#interface
interface parport
parport_port 0x378
parport_cable wiggler
jtag_speed 0

#use combined on interfaces or targets that can't set TRST/SRST
separately
reset_config trst_and_srst srst_pulls_trst

#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> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
run_and_halt_time 0 30

working_area 0 0x40000000 0x40000 nobackup

#flash configuration
#flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
flash bank cfi 0x80000000 0x200000 2 2 0

# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.ph ... p+Debugger