**** BEGIN LOGGING AT Thu Sep 22 02:59:56 2005 Sep 22 06:33:11 anyone here have experience loading apps into ram via jtag to an arm device? Sep 22 06:48:54 yes Sep 22 06:49:38 beewoolie does Sep 22 06:50:15 <[g2]> ep1220 has into the mini I cache Sep 22 06:50:56 any tips/tricks i need to know about? Sep 22 06:50:57 <[g2]> we were talking about loading a small program and setting up the memory controller and serial as bootstrap Sep 22 06:51:14 prpplague: what arm? Sep 22 06:51:15 mini cache is XScale specific Sep 22 06:51:26 vmaster: arm7tdmi core Sep 22 06:51:40 vmaster: s3c44b0x to be exact Sep 22 06:51:42 openocd.berlios.de - read my thesis, i hope it explains everything necessary Sep 22 06:51:54 vmaster: oh lovely, thanks Sep 22 06:51:58 vmaster: Sep 22 06:52:10 vmaster: docs are always helpful :) Sep 22 06:52:21 the code from july works for arm7 and arm9, but i only tested it on at91rm9200 and hynix hms307202 Sep 22 06:52:58 i gotta go - cya Sep 22 06:53:03 vmaster: ok thanks Sep 22 06:54:09 [g2]: yea thats what we are talking about Sep 22 06:55:01 [g2]: i want to setup something similiar Haret Sep 22 06:57:55 [g2]: just not wince specific Sep 22 07:01:33 <[g2]> it's a common thing to want to do Sep 22 07:01:44 <[g2]> manufacturing turn up Sep 22 07:06:27 [g2]: well this is a little different from what i would normally do Sep 22 07:06:37 [g2]: normally i would just load the flash with a bootloader Sep 22 07:06:57 [g2]: in this case i want to load directly to ram and execute from there Sep 22 07:06:59 <[g2]> bootloader or test sw, same deal really Sep 22 07:07:17 [g2]: yea, without the interupt vectors though Sep 22 07:07:50 [g2]: yea i figured it was pretty common deal, just hadn't done it before Sep 22 07:07:51 <[g2]> there's nothing wrong with polled sw, it's been run for years Sep 22 07:08:09 <[g2]> :) Sep 22 07:09:10 [g2]: i'm looking ot write something with small serial cli that i can peek/poke adresses and do some mem location dumps Sep 22 07:09:27 [g2]: i probably could use most of the code from some small bootloader Sep 22 07:11:11 <[g2]> prpplague, we should consider a protocol (serial first) that dumps information out Sep 22 07:11:34 <[g2]> VxWorks VisionICE iirc had a hw descriptor file thingy Sep 22 07:11:53 <[g2]> I've been wanting to setup something similar for IXP4XX Sep 22 07:12:22 <[g2]> connect, get state, have a GUI display _everything_ Sep 22 07:12:37 <[g2]> and then have it update able Sep 22 07:18:15 [g2]: hmm, i was just thinking more like small cli terminal that could be accessed via minicom or hyperterminal Sep 22 07:18:35 [g2]: but a good serial protocol would work as well, just would need some sort of client to handle the data Sep 22 07:19:17 <[g2]> prpplague exactly Sep 22 07:19:27 <[g2]> and some tools to generate it Sep 22 07:19:47 hmm Sep 22 07:19:56 <[g2]> possibly a DB where ppl could copy part info Sep 22 07:23:06 <[g2]> bbl Sep 22 07:24:24 [g2]: yea, later Sep 22 09:11:01 <[g2]> ep1220 ping Sep 22 09:11:08 <[g2]> bullet welcome Sep 22 09:11:14 hi :) Sep 22 09:11:33 <[g2]> ep1220 is the guy that did the JTAG to the mini I cache and is building the hw Sep 22 09:11:43 k Sep 22 09:12:17 <[g2]> ep1220 How long do you think it'd take to JTAG the entire I cache ? Sep 22 09:12:49 <[g2]> bullet I think a small version of APEX will fit into the I cache, we Sep 22 09:13:02 <[g2]> would just need to init memory and the serial Sep 22 09:13:08 <[g2]> and could run from RAM Sep 22 09:15:35 ui, I cache is only 32kb. nice Sep 22 09:37:02 uhm, you can't use the icache like normal ram, afaik Sep 22 09:37:25 it's used only for instruction fetches Sep 22 09:52:59 [g2]: I think You can get 2 or 3MByte/sec to the i-chache Sep 22 09:53:25 but as it is only 32K even 32KB/sec woudl fill it within a second :-) Sep 22 09:54:16 sorry meant 2 or 3MBit/sec Sep 22 09:58:23 ep1220: your ftdi-jtag project looks very nice Sep 22 09:59:27 what about the software for using it? Sep 22 10:13:00 bullet: ibb in 2 hours Sep 22 10:32:22 <[g2]> ep1220, thx. Sep 22 10:33:19 <[g2]> Right so downloading a mini bootloader and then possiblly dl'ing an image could be pretty quick Sep 22 12:10:04 back now Sep 22 12:13:43 so, how's the status on your project? Sep 22 12:14:48 I have a prototype and core-SW to talk to the FTDI on Win and Linux Sep 22 12:15:22 plus Sw to use this core to acess the XScale JTAG debug registers Sep 22 12:15:24 and the software is quite hardware specific, right? Sep 22 12:16:00 it is for the FTDI2232C Sep 22 12:16:14 or you mean target hardware ? Sep 22 12:16:18 i mean, target hardware, yes Sep 22 12:16:47 the core is entirely target independent Sep 22 12:17:10 the XSCALE part only works on a XSCALE CPU of course. Sep 22 12:17:36 So far I did not write bootloaders,FLASH programmers, .. Sep 22 12:19:31 i'm actually new to this stuff, so i don't really know, what jtag can do. for me at the moment, writing the flash of nslu2 would be the primary target, so... Sep 22 12:20:52 JTAG can do this. Sep 22 12:21:05 that at least i knew already :) Sep 22 12:21:07 there are 2 ways: Sep 22 12:21:37 1) You use the scan-chain. This is the way jtagtools work. Sep 22 12:21:53 Need explanation of "scan-chain" ? Sep 22 12:22:02 i'll look it up Sep 22 12:22:27 good. Disadvantage: you have to move a lot of bits, so it is slow Sep 22 12:22:45 Advantage: it is "realtive" independent of the used CPU. Sep 22 12:23:08 You just need to tell the soft the position of the address,data and some control lines. Sep 22 12:23:25 2) You use the CPU to prog the Flash Sep 22 12:23:52 here you have to write Flash programming software for (in your case) the Xscale. Sep 22 12:24:08 and this software would run "on" the xscale itself? Sep 22 12:24:11 You have no bootloader or operating system at this point. Sep 22 12:24:28 Yes, it would be copied into the Xscale I-cache. Sep 22 12:25:01 it then can read data from JTAG or any other interface for which you include a driver Sep 22 12:25:26 JTAG is the least work (just poll a ready bit and do a read) Sep 22 12:26:36 hmm, and the scan-chain method, does it work with your software already? Sep 22 12:26:44 no Sep 22 12:27:11 so, you actually don't use it at all for flash-programming yet? Sep 22 12:27:15 yes Sep 22 12:28:04 my primary interest is debugging. Sep 22 12:28:32 Do you want to flash just once ? Sep 22 12:28:47 ep1220: your jtag core software - do you queue the scan commands? or do you send them whenever they're needed? Sep 22 12:28:54 no, well. it would be for development. so, i don't know yet :) Sep 22 12:29:32 i might assemble one of those primitive parallel port thingies, would suffice for me, i think. Sep 22 12:29:53 at least, for now Sep 22 12:29:55 unless You plan to develop a bootloader, this is likely the case. Sep 22 12:30:16 <[g2]> ep1220, boards ready yet ? Sep 22 12:30:20 i heard it takes 40 minutes to flash redboot with such a device Sep 22 12:30:35 yeah, heard something like that too :( Sep 22 12:30:48 [g2]: no, still discussing features with ka6sox Sep 22 12:30:59 vmaster: the commands are queued Sep 22 12:31:16 is that software available somewhere? Sep 22 12:31:24 <[g2]> ep1220 how do I get a 14 and 20 pin proto for Xscale ? Sep 22 12:31:25 <[g2]> :) Sep 22 12:31:50 [g2]: we plan to make adapters for several JTAG IFs. Sep 22 12:31:53 ep1220: are you planing on selling assembled boards? Sep 22 12:33:10 [g2]: one of these will be ARM 20pin to ARM14pin. Sep 22 12:34:15 bullet: At first we plan to make a few boards, they use thru-hole technology except for 2 smd (SO-16) Sep 22 12:35:07 bullet: i might solder a few for people planing to help write software ;-) Sep 22 12:35:28 hehe Sep 22 12:35:47 only after there is usefull software it makes sense to think of a production run Sep 22 12:36:02 yeah Sep 22 12:37:49 if you're interested have a look at this: http://www.fh-augsburg.de/~hhoegl/proj/volksmikro/usb-jtag/050910/ - the new version of the board my professor designed - he's using galvanically isolated level shifters to fulfill some obscure requirement he has for another project Sep 22 12:37:55 at least you seem to be just a few kilometers away ;) Sep 22 12:39:05 I see, You live in our western neighbour Sep 22 12:39:33 :) Sep 22 12:40:58 vmaster: but other than that, it's quite the same, eh? Sep 22 12:41:00 vmaster: Thx. So far my SW is on no public server Sep 22 12:43:48 it doesn't use the dlp2232m anymore, as that's quite expensive, at least from the distributors he queried Sep 22 12:54:08 vmaster: Do You have SMD finepitch soldering equipment at the university ? Sep 22 12:55:29 i think so - he's having the ee department solder the stuff for us Sep 22 23:29:42 morning Sep 22 23:29:52 hello Sep 22 23:30:25 almost time for bed. Sep 22 23:30:50 but I was wondering if a switch or just jumpers would be better :) Sep 22 23:31:30 i have no real preference. Sep 22 23:31:50 jumper = cheaper, switch = less board space Sep 22 23:32:33 6 of one, 1/2 dozen of the other. Sep 22 23:33:03 i would try to use a rotary switch Sep 22 23:33:04 going to be easier to recreate (buy local parts) with just jumpers. Sep 22 23:34:12 You prefer jumper ? Sep 22 23:34:38 yes...because its changed infrequently Sep 22 23:35:05 and finding the "exact" switch locally might prove difficult. Sep 22 23:35:27 ok Sep 22 23:36:09 I think that we are zeroing in on it! Sep 22 23:36:30 thats kind of the icing on the cake (being able to use all those voltages) Sep 22 23:37:02 yeah, the low voltages are coming ... Sep 22 23:37:40 uh huh...I can't remember what the S3e is going to be...1.8v? Sep 22 23:38:06 do not know. Sep 22 23:38:27 okay...when you are ready I'll look again :) Sep 22 23:38:32 one more thing: If we do away the serial we could use a DAC to set the voltage :-) Sep 22 23:39:10 the jumper is more reliable :) Sep 22 23:39:21 and cheaper. Sep 22 23:39:38 I suppose you could cause a problem. Sep 22 23:39:56 (either way by setting it wrong) Sep 22 23:40:15 also true for jumper. Sep 22 23:40:22 yes Sep 22 23:40:32 but you have a visual indication. Sep 22 23:41:02 how about using the parallel bits to set the voltage? Sep 22 23:41:09 thru a fet switch? Sep 22 23:41:57 is also possible. Sep 22 23:42:16 "there is more than one way to do it" Sep 22 23:42:26 rrright Sep 22 23:42:52 :) Sep 22 23:43:07 okay I'm game for any of those ways.. Sep 22 23:43:17 the dac is my least fave as we lose the serial. Sep 22 23:45:08 I can ceck, maybe one can have the serial plus use the other b-ports bits independent of it. Sep 22 23:45:25 okay sounds good. Sep 22 23:46:00 anyway, i plan to finalize the design by this evening Sep 22 23:46:17 (else we might have more good ideas ;-) **** ENDING LOGGING AT Fri Sep 23 02:59:56 2005