parport error

I’ve installed openocd and I’m using a wiggler to connect with a MCB2300 board.

when I try to start openocd with the following command

openocd -f lpc2000.cfg

I get:

Info: openocd.c:86 main(): Open On-Chip Debugger (2007-04-11 16:20 CEST)

Error: parport.c:337 parport_init(): cannot open device. check it exists and that user read and write rights are set

I don’t know what to do, since I issue the command as root. Any help??

Thanks

I have error same you.

I build openocd with ubuntu ( linux )

./configure --enable-parport --enable-parport_ppdev

when use openocd -f lpc2xxx_pp.cfg

it have error Error: parport.c:xxx parport_init(): cannot open device. check it exists and that user read and write rights are set

please help me thanks you

Hi,

First, check that /dev/parport0 is present and that you (as a user) have read/write access to the device. You may need to add your user to the lp group. You can also try to call the openocd as root (just to test it).

If you are missing /dev/parport0, then you need to make sure that you have the parport and ppdev module loaded in your kernel by running this command

user@machine$ lsmod
Module                  Size  Used by
parport_pc             24424  1
ppdev                   8200  2
parport                23104  2 parport_pc,ppdev

Your list may be much longer if you are using a Ubuntu kernel from the distribution (many loaded modules).

If the /dev/parport0 (or parport1) is missing, then you would need to load the module by running:

user@machine$ sudo modprobe ppdev

Don’t forget to use the proper Linux style configuration for the parallel port (“Wiggler”) interface configuration section of your OpenOCD config file:

#interface
interface parport
parport_port 0
parport_cable wiggler
jtag_speed 0

I found that if you use parport_port 0x378 on a Linux system, you get an error. Instead, you must just specify the parallel port number (0 for parport0 and 1 for parport1).

I managed to get my Olimex ARM-JTAG working with the Olimex SAM7-P256 board with those steps.

Regards,

Jean-Samuel

thanks Jean-Samuel very much

i used chmod 777 /dev/parport0

and chang parport_port 0x378 → parport_port 0

It work !!!

Thanks a lot guys, it"s working now!