I installed openocd , eclipse and codesourcery on my ubunthu 9 host PC.
I did the install of openocd with update script. I modified it to include the rlink support. The latest trunk version (1932) build but gives still errors on the doc make.
After installation I had todo a manual ldconfig to let ubunthu know of the shared libraries. ( better to add in the update script )
I did a connection test on the command line but without being root the interface is giving erros:
Error: usb_claim_interface: could not claim interface 0: Operation not
permitted
Error: detach kernel driver: could not detach kernel driver from
interface 0: Operation not permitted
Error: usb_claim_interface: could not claim interface 0: Operation not
permitted
Error: detach kernel driver: could not detach kernel driver from
interface 0: Operation not permitted
Error: usb_claim_interface: could not claim interface 0: Operation not
permitted
Error: detach kernel driver: could not detach kernel driver from
interface 0: Operation not permitted
Error: Initialisation failed.
If I go by root:
500 kHz
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (Manufacturer:
0x23b, Part: 0xba00, Version: 0x3)
Info : JTAG Tap/device matched
Info : JTAG tap: stm32.bs tap/device found: 0x16410041 (Manufacturer:
0x020, Part: 0x6410, Version: 0x1)
Info : JTAG Tap/device matched
Than I added the manufact and part id into the udev rules:
SUBSYSTEM=="usb" , SYSFS(idvendor)=="023b" ,
SYSFS(idProduct)=="ba00" ,ACTION=="add", MODE=="0666"
SUBSYSTEM=="usb" , SYSFS(idvendor)=="020" ,
SYSFS(idProduct)=="6410" ,ACTION=="add", MODE=="0666"
Still the same errors if I try with no root account. Maybe I do something wrong here declaring the rules. Any ideas ?
Nevertheless I tried it with eclipse of course started as root. And apparently it seems that the rlink (not the SWD version but real JTAG USB from ST) has problems with the speed.
Open On-Chip Debugger 0.2.0-in-development (2009-05-27-20:40) svn:1932M
BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
500 kHz
Error: usb_claim_interface: could not claim interface 0: Device or resource busy
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x3)
Info : JTAG Tap/device matched
Info : JTAG tap: stm32.bs tap/device found: 0x16410041 (Manufacturer: 0x020, Part: 0x6410, Version: 0x1)
Info : JTAG Tap/device matched
Warn : Timeout (1000ms) waiting for ACK = OK/FAULT in SWJDP transaction
Warn : Timeout (1000ms) waiting for ACK = OK/FAULT in SWJDP transaction
Warn : Block read error address 0xe000ed00, count 0x1
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (2586). Workaround: increase "set remotetimeout" in GDB
Warn : Timeout (1000ms) waiting for ACK = OK/FAULT in SWJDP transaction
Warn : The lowest supported JTAG speed is 375 KHz
375 kHz
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1049). Workaround: increase "set remotetimeout" in GDB
Warn : Timeout (1000ms) waiting for ACK = OK/FAULT in SWJDP transaction
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1025). Workaround: increase "set remotetimeout" in GDB
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x3)
Info : JTAG Tap/device matched
Info : JTAG tap: stm32.bs tap/device found: 0x16410041 (Manufacturer: 0x020, Part: 0x6410, Version: 0x1)
Info : JTAG Tap/device matched
Warn : Timeout (1000ms) waiting for ACK = OK/FAULT in SWJDP transaction
Warn : Timeout (1000ms) waiting for ACK = OK/FAULT in SWJDP transaction
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (2541). Workaround: increase "set remotetimeout" in GDB
Error: AHBAP Cached values: dp_select 0x10, ap_csw 0xa2000002, ap_tar 0xe000edf0
Error: SWJ-DP OVERRUN - check clock or reduce jtag speed
Error: Read MEM_AP_CSW 0x23000042, MEM_AP_TAR 0xe000edf0
Runtime error, file "embedded:startup.tcl", line 212:
expected return code but got 'TARGET: stm32.cpu - Not halted'
Runtime error, file "stm32_program_eclipse.cfg", line 7:
This sounds like big problems to me. My minimum speed is 375k so I can go any lower. I’m stuck here.
Anybody some better experience on the rlink JTAG dongle ?
Thx
-G