I just got an Altera Max II development board and tried to
use it with OpenOCD. It does not seem to work.

Take note I do not know much about CPLD now.

cuee@ubuntu64:~/Desktop/build/openocd/max2$ cat max2.cfg
#simple device - just configure a tap
jtag newtap xcr tap -irlen 5 -ircapture 0x01 -irmask 0x1f -expected-id
 0x020A30DD

mcuee@ubuntu64:~/Desktop/build/openocd/max2$
openocd -f altera-usb-blaster.cfg -f max2.cfg
Open On-Chip Debugger 0.5.0-dev-00847-g08303f1 (2011-04-13-18:25)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
Warn : Adapter driver 'usb_blaster' did not declare which transports
it allows; assuming legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
3000 kHz
Error: Translation from khz to jtag_speed not implemented
Error: Translation from khz to jtag_speed not implemented
Error: Translation from khz to jtag_speed not implemented
Error: Translation from jtag_speed to khz not implemented
Info : adapter-specific clock speed value 29095856
Info : JTAG tap: xcr.tap tap/device found: 0x020a30dd (mfg: 0x06e,
part: 0x20a3, ver: 0x0)
Error: xcr.tap: IR capture error; saw 0x15 not 0x01
Warn : Bypassing JTAG setup events due to errors
Warn : gdb services need one or more targets defined
^C

With UrJtag, it seems to be better.

mcuee@ubuntu64:~/Desktop/build/openocd/max2$ jtag

UrJTAG 0.10 #1902
Copyright (C) 2002, 2003 ETC s.r.o.
Copyright (C) 2007, 2008, 2009 Kolja Waschk and the respective authors

UrJTAG is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
There is absolutely no warranty for UrJTAG.

jtag.c:536 main() Warning: UrJTAG may damage your hardware!
Type "quit" to exit, "help" for help.

jtag> cable usbblaster
Connected to libftdi driver.
jtag> detect
IR length: 10
Chain length: 1
Device Id: 00000010000010100011000011011101 (0x020A30DD)
  Manufacturer: Altera (0x0DD)
  Unknown part! (0010000010100011) (/usr/local/share/urjtag/altera/PARTS)
jtag> bsdl path /usr/local/share/urjtag/altera/epm1270f256
jtag> detect
IR length: 10
Chain length: 1
Device Id: 00000010000010100011000011011101 (0x020A30DD)
  Filename:     /usr/local/share/urjtag/altera/epm1270f256/EPM1270F256.BSD


-- 
Xiaofan
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to