Can't halt AT91RM9200

Hi,

I am trying to use OpenOcd (Rev. 65) with a board with an AT91RM9200.

I am using an original Wiggler connected to the board, but I have also

tested with some clones.

Openocd is running in Ubuntu 6.06 and the command “poll”

reports that the target is running.

The command “wait_halt” ends with timeout.

If I use the same board and wiggler connected to a Windows box,

OCD Commander (from Macraigor) manages to halt the target at start-up

(after some time), but if I reset the target,

OCD commander could not also put the target in debug mode.

I have to exit from OCD commander and start it again.

I have tried lower speeds and the results are the same.

Follows my configuration file for OpenOcd:

#daemon configuration
telnet_port 4444
gdb_port 8888

#interface
interface parport
parport_port 0x378
parport_cable wiggler
jtag_speed 3
#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> <startup mode>
target arm9tdmi little reset_halt 0 arm920t
run_and_halt_time 0 30

Any ideas what could be wrong ?

The board seems to be working OK

Regards,

Claudio

“wait_halt” isn’t supposed to halt the target (though that could be added) - it’s supposed to wait until a previously requested halt completed.

The halt command is “halt”.

If you want to halt out of reset, use “reset halt”.

Regards,

Dominic

Sorry,

I just didn’t mentioned it, but I sent the “halt” command several

times and checked the state with “poll”.

The target just didn’t stop.

I also checked the JTAGSEL signal of this chip and it is low

as it should be for the ICE to be enabled.

Well, I will keep trying.

Thanks.

Hi, Claudio

Have you solved the problem? What’s the reason? I encountered the same problem. My MCU is LPC2210. I cann’t halt it either.

Regards,

Kevin Zhu[/quote]