Hi list. My name is Rodrigo and I sent this mail a few days ago to the 
user list, but I had no responses and I think that here is a better 
place for this questions.

I was trying to use openocd 0.5.0, 0.6.0 and recently 0.6.1 with a 
Beagleboard-xM rev C, and I can't read/write to the sdram. Moreover, I 
can't read/write to several others address, such as GPIO registers.

Background info
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
I'm using a cable called opendous. It is not the already supported with 
openocd, is another one, based in a FT2232 chip. Is similar to JtagKey, 
but it use channel 2. Here the web page: 
http://code.google.com/p/opendous/wiki/JTAG
A partner, made a patch to support in openocd. It allow to select 
channel 2. I was using this cable with a AT91sam3U-ek without problem (I 
wrote the flashes and the internal and external sram), so, I think that 
the cable is not the problem.

I'm currently using openocd 0.6.1, with libftdi, under Debian Squeeze.

I had a lot of problem with Beagleboard. Nowadays, after read several 
wikis, I know that I need to run the commands "init" and "reset init" to 
avoid them.

I was searching for updated information about openocd and Beagleboard-xM 
support, but I didn't find.

The problem
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
I'm running openocd with this script:

 >>>openocd.cfg
add_script_search_dir ../../openocd/scripts/
source [find interface/opendous.cfg]
source [find board/ti_beagleboard_xm.cfg]
init
reset init
<<<

$ openocd
Open On-Chip Debugger 0.6.1 (2012-10-29-14:57)
Licensed under GNU GPL v2
For bug reports, read
      http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 10 kHz
Warn : dm37x.dsp: huge IR length 38
trst_only separate trst_push_pull
Info : max TCK change to: 30000 kHz
Info : clock speed 10 kHz
Info : JTAG tap: dm37x.jrc tap/device found: 0x2b89102f (mfg: 0x017,
part: 0xb891, ver: 0x2)
Info : JTAG tap: dm37x.dap enabled
Info : dm37x.cpu: hardware has 6 breakpoints, 2 watchpoints
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x80000042, MEM_AP_TAR 0x54011140
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x80000042, MEM_AP_TAR 0x54011140
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x80000042, MEM_AP_TAR 0x54011140
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x80000042, MEM_AP_TAR 0x54011140
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x80000042, MEM_AP_TAR 0x54011150
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x80000042, MEM_AP_TAR 0x54011150
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x80000042, MEM_AP_TAR 0x540111c0
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x80000042, MEM_AP_TAR 0x540111c0
adapter speed: 10 kHz
Info : JTAG tap: dm37x.jrc tap/device found: 0x2b89102f (mfg: 0x017,
part: 0xb891, ver: 0x2)
Info : JTAG tap: dm37x.dap enabled
adapter speed: 1000 kHz
Warn : dm37x.cpu: ran after reset and before halt ...
Info : number of cache level 2
Error: cache l2 present :not supported
Error: mpdir not in multiprocessor format
target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0x40000173 pc: 0x00017032
MMU: disabled, D-Cache: disabled, I-Cache: enabled

When I try to wirte to sdram (0x80000000):
 > load_image u-boot/u-boot.bin 0x80100000 bin
JTAG-DP STICKY ERROR
MEM_AP_CSW 0x2800052, MEM_AP_TAR 0x80100000
JTAG-DP STICKY ERROR
MEM_AP_CSW 0x2800052, MEM_AP_TAR 0x80100000
Block write error address 0x80100000, wcount 0x14f5a
in procedure 'load_image'

If I try a simple read:
 > mdw 0x80000000
JTAG-DP STICKY ERROR
MEM_AP_CSW 0x2800052, MEM_AP_TAR 0x80000000
JTAG-DP STICKY ERROR
MEM_AP_CSW 0x2800052, MEM_AP_TAR 0x80000000
Block read error address 0x80000000
in procedure 'mdw'

The questions
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* There are some tips as "reset init" which I need to know to work with 
Beagleboard?
* Do you know how good is nowadays support for the BeagleBoard xM in 
openocd?
* When this kind of messages appears (JTAG-DP and sticky errors) what is 
the supposed problem?

Thanks in advance.

RAM

-- 
Ing. Rodrigo Alejandro Melo<[email protected]>
INTI- Electrónica e Informática
Av. Gral. Paz 5445, CC157, (CP B1650WAB)
San Martín, Bs. As., Argentina  Te:+54 011 4724-6315
0800 444 4004 | www.inti.gob.ar


------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to