NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
thinkfat_ has joined #openocd
thinkfat has quit [Ping timeout: 250 seconds]
Hawk777 has joined #openocd
GLEN has joined #openocd
GLEN has quit [Remote host closed the connection]
Hawk777 has quit [Quit: Leaving.]
dormito has quit [Ping timeout: 268 seconds]
nerozero has joined #openocd
dormito has joined #openocd
kkk4444 has joined #openocd
kkk4444 has quit [Ping timeout: 252 seconds]
Haohmaru has joined #openocd
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
emacs_pprentice_ has joined #openocd
wingsorc__ has quit [Ping timeout: 250 seconds]
emacs_pprentice_ has quit [Read error: Connection reset by peer]
emacs_pprentice_ has joined #openocd
Quickie has joined #openocd
<Quickie> Hi. I've been trying several builds of OpenOCD but when I try to JTAG an Altera EPM1270T144 I get the following error:
<Quickie> Info : JTAG tap: auto0.tap tap/device found: 0x020a30dd (mfg: 0x06e (Altera), part: 0x20a3, ver: 0x0)
<Quickie> Warn : AUTO auto0.tap - use "jtag newtap auto0 tap -irlen 4 -expected-id 0x020a30dd"
<Quickie> Error: IR capture error at bit 4, saw 0x3ffffffffffffd51 not 0x...3
<Quickie> and I am not able to send JTAG commands
<PaulFertser> Quickie: do you know what irlen is expected?
<Quickie> Using USBBlaster and driver ftdi1.dll version from 07/12/2021, sorry I forgot to mention
<Quickie> No PaulFertser, I am unaware
<PaulFertser> Quickie: what do you plan to do with this altera part when you're able to connect? Do you have an SVF file for it?
<Quickie> Yes, I plan to program it using a .SVF I generated from a .POF on Quartus II
<PaulFertser> Quickie: please show first 50 lines of that .svf file via some pastebin.
<PaulFertser> (50 or whatever, some IR commands need to be visible)
<Quickie> Ok, sure, thanks a lot, one sec ;)
<PaulFertser> Quickie: ok, try -irlen 10 and show the output you get with that.
<Quickie> I am not able to write anything on the jtag prompt. I understand irlen has to be defined in the jtag> prompt, right?
<Quickie> xPack OpenOCD i386 Open On-Chip Debugger 0.11.0+dev (2021-12-07-17:35)
<Quickie> Licensed under GNU GPL v2
<Quickie> For bug reports, read
<PaulFertser> Quickie: there's no jtag prompt in OpenOCD. You just start openocd -f interface/... -c "jtag newtap auto0 tap -irlen 10 -expected-id 0x020a30dd"
<Quickie> Info : only one transport option; autoselect 'jtag'
<Quickie> adapter speed: 3000 kHz
<Quickie> Info : Listening on port 6666 for tcl connections
<Quickie> Info : Listening on port 4444 for telnet connections
<Quickie> Info : usb blaster interface using libftdi
<Quickie> Info : This adapter doesn't support configurable speed
<Quickie> Warn : There are no enabled taps. AUTO PROBING MIGHT NOT WORK!!
<Quickie> Info : JTAG tap: auto0.tap tap/device found: 0x020a30dd (mfg: 0x06e (Altera), part: 0x20a3, ver: 0x0)
<Quickie> Warn : AUTO auto0.tap - use "jtag newtap auto0 tap -irlen 4 -expected-id 0x020a30dd"
<Quickie> Error: IR capture error at bit 4, saw 0x3ffffffffffffd51 not 0x...3
<Quickie> Warn : Bypassing JTAG setup events due to errors
<Quickie> Warn : gdb services need one or more targets defined
<PaulFertser> Quickie: please never paste more than 3 lines to a channel.
<Quickie> Ok. Apologies I won't paste anything beyond 3 lines from now onwards
<PaulFertser> Quickie: please rerun with appropriate jtag newtap command used.
<PaulFertser> Or if you use openocd.cfg then add it in there
<PaulFertser> Quickie: there's no prompt in OpenOCD at all.
<Quickie> Executed from the commandline: .\openocd.exe -f altera-usb-blaster.cfg -c "jtag newtap auto0 tap -irlen 10 -expected-id 0x020a30dd"
<Quickie> Info : JTAG tap: auto0.tap tap/device found: 0x020a30dd (mfg: 0x06e (Altera), part: 0x20a3, ver: 0x0)
<Quickie> Warn : gdb services need one or more targets defined
<PaulFertser> Quickie: ok, so it's all fine. You can run your commands via Telnet or if you prefer append to the command line something like -c "init; svf your.svf; shutdown"
<Quickie> I am going to give it a try using the command with the .svf :)  Let me try
<Quickie> Ok, the programming started and executed quite a few commands, however it arrived to this point:
<Quickie> SDR 16 TDI (FFF7);
<Quickie> Error: tdo check error at line 53
<PaulFertser> Does it happen every time on same line?
<Quickie> Error: READ = 0xdd16 Error: WANT = 0x8232 Error: MASK = 0xffff Error: fail to run command at line 1066 Error: tdo check error at line 53 Error: READ = 0xdd16 Error: WANT = 0x8232 Error: MASK = 0xffff Time used: 0m14s928ms svf file programmed failed
<Quickie> I am going to retry, let's see
<Quickie> yes, it stopped in the same line
<PaulFertser> Probably the part isn't exactly compatible?
<PaulFertser> Or probably you need to use some other options when generating this SVF.
<Quickie> I have some doubts about the part. Strangely it is detected by Quartus II as 5M1270Z/EPM1270, whereas another EPM1270T144 from another batch was identified directly on Quartus II
<Quickie> I can try to change the SVF generation options, but honestly I think the problem might be it's a remarked CPLD
<PaulFertser> Is Quartus able to configure it?
<Quickie> Quartus identifies it, but when it tries to program the .pof it gives the error "A device's silicon ID is different from its JTAG ID. Verify that al cables are securely connected"
<Quickie> JTAG ID Code detected was 0x020A30DD
<PaulFertser> So no wonder it's not possible to configure it with OpenOCD either.
<Quickie> I tried it, thanks a lot in any case. I really appreciate your help
<PaulFertser> Welcome
<Quickie> I was wondering that perhaps a prior deletion could do something, but I am unsure which command should be used for this cpld
<PaulFertser> Quickie: you should be able to generate an SVF doing erase with Quartus.
<PaulFertser> But that flashing SVF likely includes the erase already.
<Quickie> Yeah, you're right, but I will give it a try. I remember about 1 year ago I had a similar problem with an ATF1502ASL. I was able to generate a .svf with the erase instruction (in that occasion was with Atmisp), it did the trick, but the target .svf with code also failed with OpenOcd (and I forgot about it thinking that was a remarked part). Pretty
<Quickie> much the same
nvmd has quit [Quit: WeeChat 3.6]
kkk4444 has joined #openocd
Haohmaru has quit []
Quickie has quit [Quit: Client closed]
kkk4444 has quit [Ping timeout: 252 seconds]
nerozero has quit [Ping timeout: 260 seconds]
shibboleth has joined #openocd
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
shibboleth has quit [Quit: shibboleth]
tlwoerner has quit [Read error: Connection reset by peer]
tlwoerner has joined #openocd