Inactive
0
I Use This!

Project Summary

Analyzed 6 days ago. based on code collected 6 days ago.

A simple USB-JTAG interface implemented using LUFA library running AT90USB162 based on Open Hardware board opendous. Primary reason is to create a cheap replacement for the parallel port JTAG adapter "Wiggler" and alike.

Connecting pins to JTAG interfacePORTB is used for JTAG communications, with following pins configuration:

PinFunction 0TDI 1TMS 2TRST 3SRST 4TCK 5TDO

Various JTAG cable pin outs are available here: http://www.jtagtest.com/pinouts/

Configuring openocdget the patched rev 1454 of openocd:

wget http://opendous-jtag.googlecode.com/files/openocd-r1454-opendous.tar.gz
tar zxf openocd-r1454-opendous.tar.gzRun the ./bootstrap script to refresh autoconf/automake rules, and then run ./configure

cd openocd
./bootstrap
./configure --prefix=/opt/arm --enable-opendous
make
make installmake sure that PATH includes /opt/arm/bin directory, run openocd:

openocd -f interface/opendous -f target/Testing speedTest of loading a FreeRTOS demo project on a Stellaris LM3S2965 demo kit, opendous-jtag was running on AT90USB647 board, but using only 360bytes memory buffer (similar to AT90USB162 setting)

> openocd -f interface/opendous.cfg -f target/lm3s6965.cfg
Open On-Chip Debugger 1.0 (2010-01-16-22:33) svn:1454M

BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS

$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
500 kHz
Info : Opendous JTAG version 0.4 maximum tap length=1440
Info : OPENDOUS JTAG Interface ready
Info : JTAG tap: lm3s6965.cpu tap/device found: 0x3ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x3)
Info : JTAG Tap/device matched
Warn : no telnet port specified, using default port 4444
Warn : no gdb port specified, using default port 3333
Warn : no tcl port specified, using default port 6666
Info : accepting 'telnet' connection from 0
target state: halted
target halted due to undefined, current mode: Thread
xPSR: 0x00000000 pc: 0x00000000
Info : JTAG tap: lm3s6965.cpu tap/device found: 0x3ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x3)
Info : JTAG Tap/device matchedNow running command through telnet

telnete localhost 4444

> halt
target was in unknown state when halt was requested

> flash probe 0
flash 'stellaris' found at 0x00000000

> flash erase_sector 0 0 255
erased sectors 0 through 255 on flash bank 0 in 0.454492s

> flash write_image RTOSDemo.bin 0 bin
Algorithm flash write 2048 words to 0x0, 18758 remaining
Algorithm flash write 2048 words to 0x2000, 16710 remaining
Algorithm flash write 2048 words to 0x4000, 14662 remaining
Algorithm flash write 2048 words to 0x6000, 12614 remaining
Algorithm flash write 2048 words to 0x8000, 10566 remaining
Algorithm flash write 2048 words to 0xa000, 8518 remaining
Algorithm flash write 2048 words to 0xc000, 6470 remaining
Algorithm flash write 2048 words to 0xe000, 4422 remaining
Algorithm flash write 2048 words to 0x10000, 2374 remaining
Algorithm flash write 326 words to 0x12000, 326 remaining
wrote 75032 byte from file RTOSDemo.bin in 6.792067s (10.788091 kb/s)

Share

Activity

30 Day Summary

Jul 27 2015 — Aug 26 2015

12 Month Summary

Aug 26 2014 — Aug 26 2015

Community

Ratings

Be the first to rate this project
 
Click to add your rating
   Spinner f6ecff617ec2ba7f559e6f535cad9b70a3f91120737535dab4d4548a6c83576c
 
Review this Project!