OpenOCD - PCMCIA LPT converter

OP #1186699
Hi

I have just bought PCMCIA 2xCOM + 1xLPT Delock, but I can't program 
flash of AT91SAM7S256 - an error occurs:

'C:\Program Files\openocd-2006re82\bin\'openocd-pp.exe -f 'C:\Program 
Files\openocd-2006re82\bin\'at91sam7s256-wiggler-flash-program.cfg 
# program the onchip FLASH here
Info:    openocd.c:82 main(): Open On-Chip Debugger (2006-08-01 12:00 
CEST)
Error:   jtag.c:1122 jtag_validate_chain(): Error validating JTAG scan 
chain, IR mismatch

I used normal PC LPT and everything works fine.

My OpenOCD .cfg file is:

#define our ports
telnet_port 4444
gdb_port 3333

#commands specific to the Amontec JTAGKey
interface parport
parport_port 0x378
parport_cable wiggler
jtag_speed 0
jtag_nsrst_delay 200
jtag_ntrst_delay 200

#reset_config <signals> [combination] [trst_type] [srst_type]
reset_config srst_only srst_pulls_trst

#jtag_device <IR length> <IR capture> <IR mask> <IDCODE instruction>
jtag_device 4 0x1 0xf 0xe

#daemon_startup <'attach'|'reset'>
daemon_startup reset

#target <type> <endianess> <reset_mode> <jtag#> [variant]
target arm7tdmi little run_and_init 0 arm7tdmi_r4

#run_and_halt_time <target#> <time_in_ms>
run_and_halt_time 0 30

# commands below are specific to AT91sam7 Flash Programming
# ---------------------------------------------------------

#target_script specifies the flash programming script file
target_script 0 reset script.ocd

#working_area <target#> <address> <size> <'backup'|'nobackup'>
working_area 0 0x40000000 0x4000 nobackup

#flash bank at91sam7 0 0 0 0 <target#>
flash bank at91sam7 0 0 0 0 0

Please for help. Thanks in Advance.
Admin
Try increasing jtag_speed (higher values mean a slower rate), set it to 
10 as a start. Also make sure you choose the correct parport_port (check 
in device manager which I/O address your LPT card has).

That said, Cardbus/PCMCIA cards for parallel ports can be tricky. I once 
bought one for another parallel port debugger and never managed to get 
it to work. The safe bet would be to buy a USB JTAG.
The only pcmcia parallel device i ever got to work was one from quatech 
(SPP-100) - however they are not cheap.
It all depends if they emulate  a true parallel port - most do not.

As Andreas said go and but a usb jtag.

Cheers
Spen
OP
Hi

After restarting computer again everything goes good :).
Now it's working. The only change I did, was changing a line
parport_port 0xFFD8. I tried that before but not work.

I have one more question: Do you know how to remap I/O port OxFFD8 to 
Ox378,
becouse in some other programs I can't change addresses manually? I'm 
using WinXp.

Thanks for help.

Reply

A question of your own? This thread is over 17 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.