**** BEGIN LOGGING AT Tue Apr 01 02:59:56 2008 Apr 01 12:27:23 "TAP_SD & TAP_SI are illegal end states," Apr 01 12:27:28 Hmm. Apr 01 15:12:30 ali_as: how did you trigger that message? Apr 01 15:14:55 I didn't, I've been reading the source. Apr 01 15:15:23 It seems a slightly shortsighted requirement. Apr 01 15:17:16 I'm not so sure about reading TDO when TCK is high, either. For some reason this has given me errors in my own dabblings. Apr 01 15:19:13 * ali_as lifts his hat. Apr 01 15:19:18 I'm Alex btw. Apr 01 15:33:16 i'm about to get home from the office, i'll be back in ~15 minutes Apr 01 15:54:20 ali_as: Well, declaring SD and SI as illegal is fine with the current code, I suppose, but I didn't like the change either Apr 01 15:55:07 ali_as: Especially since there's nothing wrong with allowing them as endstates Apr 01 15:57:54 ST20 debug protocol involves moving a value into IR, then moving into DR and staying there, uses it like a clocked full duplex debug interface. Apr 01 16:01:57 ali_as: ah, nice Apr 01 16:02:04 ali_as: do you have any pointer to some docs? Apr 01 16:03:42 ali_as: hmm, i suppose ST20 is somewhat deprecated? Apr 01 16:05:38 (sorry phone) Apr 01 16:09:57 ST20 became the STi55xx series which is used in a huge number of products, mainly set top boxes, DVD players. Apr 01 16:10:57 I don't know of a document with all the info in but I've written debug programs for it for a few years. Apr 01 16:12:07 I'm currently working on EJTAG, and specifically the idea of designing a hardware interface to speed it up. I was looking for 'GEEP-B' but I'm told that project died. Apr 01 16:13:27 mhh, I looked at EJTAG very briefly a long time ago, but it seemed overly complicated, and difficult to implement for reasonable performance Apr 01 16:13:42 something like the EJTAG telling the emulator which address to serve Apr 01 16:14:30 It's nasty. If you want to read so much as one byte, you have to stall the CPU and feed it the opcodes for the instructions that tell it to read the byte and hand it over. Apr 01 16:15:31 well, you have to do the same with ARM JTAG, but at least you can scan in a large number of instructions in one go Apr 01 16:15:48 using a load multiple it's possible to read 14 registers (56 byte) in one go Apr 01 16:15:59 ARM JTAG is completely new to me. Apr 01 16:17:35 I'll be sticking around but if you want a simple st20 source to read I can find one of the original "Tomas Vlad" programs. Apr 01 16:20:41 DCC OK? Apr 01 16:21:33 yeah, sure Apr 01 16:22:56 I might not have my ports setup correctly for dcc. Apr 01 16:26:40 http://pastebin.com/pastebin.php?dl=m70fede06 Apr 01 16:29:47 thx, i'll have a look later today, lunch is calling Apr 01 16:29:50 And english explanation here http://pastebin.com/m5d6c16c6 Apr 01 16:29:54 mhh, dinner Apr 01 16:30:03 Ok, I have to afk anyway. Apr 01 19:51:04 anyone know any magic or where i can start to find magic to make openOCD work with an IXP4xx device? Apr 01 20:04:28 gandhijee: it should work as it is Apr 01 20:04:49 gandhijee: which board do you use, and which jtag interface? Apr 01 20:07:29 i use a wiggler interface Apr 01 20:07:41 and the design is based of the azusa design, Apr 01 20:07:55 but its using a different flash part Apr 01 20:10:05 gandhijee: i had a look at what you pasted on pastebin yesterday - looks like the JTAG interface isn't working at all Apr 01 20:10:24 gandhijee: you'll have to verify the pinout Apr 01 20:10:46 gandhijee: you need TMS, TCK, TDI, TDO, TRST and SRST (system reset) Apr 01 20:10:50 i know the iface is working cause i can program it via windows Apr 01 20:11:09 its a wiggler device, but i think i got it to see the device on the chain now Apr 01 20:11:27 gandhijee: what tool did you use on windows? Apr 01 20:11:53 OCDemon Flash Memorty Programmer Apr 01 20:12:26 i got it to see the device now, but it said the number of dis devices in JTAG chain doesn't match config Apr 01 20:12:46 can you paste the output? Apr 01 20:13:08 sure, just one sec Apr 01 20:13:34 http://pastebin.ca/966531 Apr 01 20:14:03 thats strange Apr 01 20:14:18 gandhijee: what does your .cfg look like? Apr 01 20:14:32 http://pastebin.ca/966532 Apr 01 20:14:36 look at that one Apr 01 20:14:49 the first time i ran it, it didn't find the part, the 2nd time it did Apr 01 20:15:16 http://pastebin.ca/966534 Apr 01 20:16:21 ok, that .cfg can't work - you lack a jtag_device line, and the target line needs to know which device in the chain (you have only one, so it's 0) it should talk to Apr 01 20:16:52 o Apr 01 20:17:09 i kinda pieced that cfg together from random sources Apr 01 20:17:13 you could have a look at doc/configs/xscale_ixp42x.cfg Apr 01 20:17:34 i'll go do just that now Apr 01 20:17:36 thanks man Apr 01 20:17:49 regarding the detection problem: could be all kinds of problems - parallel ports are often flaky Apr 01 20:17:56 fair enough Apr 01 20:18:12 you're running linux? Apr 01 20:18:17 you know how i would use openOCD to program the flash on the board? are there some type of commands i can issue Apr 01 20:18:18 ya Apr 01 20:18:33 did you use direct access, or do you use ppdev? Apr 01 20:18:41 direct Apr 01 20:18:54 you could try ppdev, and see if it's more stable Apr 01 20:19:15 ok Apr 01 20:19:25 it's an additional configure option, and you have to change the parport_port to 0 Apr 01 20:19:27 for whatever reason udev doesn't create the parport0 device Apr 01 20:19:42 and if i try to do it by hand with mknod it doesn't seem to werk either Apr 01 20:19:51 did you load ppdev? Apr 01 20:20:10 brb Apr 01 20:41:36 ppdev should be a module, right? Apr 01 20:48:50 yeah Apr 01 20:51:49 and is there a place i can read more about the .cfg file? i don't understand all the parts in it Apr 01 21:03:58 gandhijee, have you been able to get a scan chain list? Apr 01 21:04:51 Have you tried debugging the chain manually? Apr 01 21:05:47 i am heading out Apr 01 21:05:58 i will get back on when i am at my house Apr 01 21:06:23 I'll be off to sleep in an hour or so. Apr 01 21:06:31 o Apr 01 21:06:46 how would i start to debug the chain manually? Apr 01 21:07:24 Hang on. Apr 01 21:08:23 http://www.macraigor.com/ I thought had a brain dead one for free. Apr 01 21:08:54 i have a wiggler Apr 01 21:08:57 already Apr 01 21:09:06 I've done this with a Xilinx one using 'Impact' and I've done it with a Vlad type one using 'Jkeys'. Apr 01 21:09:16 Yes, software I'm thinking of. Apr 01 21:09:25 o Apr 01 21:09:39 Just something that will let you toggle TDI/TCK/TMS manually. Apr 01 21:09:46 And let you watch TDO. Apr 01 21:10:11 An oscilloscope is helpful but not required. Apr 01 21:13:41 All I can find are pay ones on macraigor. Thats not helpful. Apr 01 21:16:31 What OS are you in? Apr 01 21:39:26 OCDCommander installs with 'JTAG Scan Chain analyser" but it might not help much. Apr 01 23:05:12 linux **** ENDING LOGGING AT Wed Apr 02 02:59:57 2008