NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
tlwoerner_ has joined #openocd
tlwoerner has quit [Ping timeout: 252 seconds]
ormaaj has quit [Ping timeout: 250 seconds]
thinkfat_ has quit [Ping timeout: 246 seconds]
thinkfat has joined #openocd
ormaaj has joined #openocd
matsievskiysv has joined #openocd
matsievskiysv has quit [Ping timeout: 268 seconds]
matsievskiysv has joined #openocd
matsievskiysv has quit [Read error: Connection reset by peer]
matsievskiysv has joined #openocd
nerozero has joined #openocd
crabbedhaloablut has joined #openocd
matsievskiysv has quit [Ping timeout: 268 seconds]
matsievskiysv has joined #openocd
matsievskiysv has quit [Read error: Connection reset by peer]
matsievskiysv has joined #openocd
Haohmaru has joined #openocd
kraiskil has joined #openocd
matsievskiysv has quit [Read error: Connection reset by peer]
wingsorc__ has quit [Ping timeout: 246 seconds]
merethan has joined #openocd
matsievskiysv has joined #openocd
<PaulFertser> matsievskiysv: hey. Have you figured it out?
<matsievskiysv> Nope
<PaulFertser> borneoa_: if needed I can tag rc2 in the coming days.
<PaulFertser> matsievskiysv: do you have time to discuss your setup in more details, can you do more tests?
<matsievskiysv> For now I've switched to RiscV based stm32 clone
<PaulFertser> stm32f1 in JTAG mode should certainly work, that was tested many tmes.
<matsievskiysv> It doesn't need dap and works fine
<PaulFertser> And if rc1 doesn't work in that mode it's a problem.
<matsievskiysv> Yes, I can share my setup details
<PaulFertser> What debug adapter are you using and what target board? How are they connected?
LinuxHackerman has quit [Quit: Bridge terminating on SIGTERM]
shoragan[m] has quit [Quit: Bridge terminating on SIGTERM]
ormaaj has quit [Quit: Bridge terminating on SIGTERM]
losfair[m] has quit [Quit: Bridge terminating on SIGTERM]
barath has quit [Quit: Bridge terminating on SIGTERM]
Jybz[m] has quit [Quit: Bridge terminating on SIGTERM]
matsievskiysv has quit [Read error: Connection reset by peer]
matsievskiysv has joined #openocd
<matsievskiysv> My board is something like this
<matsievskiysv> stm32f103
<matsievskiysv> And the debugger is this ft2232 board
Jybz[m] has joined #openocd
matsievskiysv has quit [Ping timeout: 268 seconds]
matsievskiysv has joined #openocd
<matsievskiysv> Sorry, my IRC client keeps kicking me out
shoragan[m] has joined #openocd
ormaaj has joined #openocd
LinuxHackerman has joined #openocd
losfair[m] has joined #openocd
barath has joined #openocd
<PaulFertser> matsievskiysv: ok, so a regular bluepill plus ft2232h breakout. Are you aware that when you connect CMOS output to a high-Z CMOS input you often need some line impedance matching? JTAG adapters usually use series termination (47--100 Ohm) on all data lines for that.
<PaulFertser> It might or might not matter, depends mostly on the target.
<PaulFertser> If you have an oscilloscope you can check signal edges to make sure there's no "ringing" on transitions.
<matsievskiysv> No, I didn't include any impedance
<matsievskiysv> but openocd finds TAPs just fine
<PaulFertser> matsievskiysv: do you probably have a regular JTAG adapter for comparison?
<matsievskiysv> I have ft2232 and stlinkv2 clone
<matsievskiysv> I'll try to include impedance and lower jtag clock speed
<matsievskiysv> I'll be back in an hour with that
<PaulFertser> Can stlinkv2 access this same bluepill board with SWD (and without reset) with default upstream OpenOCD configs?
<matsievskiysv> Yes, swd works fine
<PaulFertser> matsievskiysv: can you "mass_erase" it with stlink prior to trying jtag just in case?
matsievskiysv has quit [Quit: Client closed]
kraiskil has quit [Ping timeout: 246 seconds]
zkrx has quit []
zkrx has joined #openocd
kraiskil has joined #openocd
matsievskiysv has joined #openocd
matsievskiysv_ has joined #openocd
matsievskiysv_ has quit [Client Quit]
merethan has quit [Remote host closed the connection]
merethan has joined #openocd
<matsievskiysv> Adding serial termination and lowering clock to 10k did not help
<matsievskiysv> I'll try substituting ft2232 with stlink2
<PaulFertser> matsievskiysv: lowering the clock can't help with ringing, if it happens, it happens on each transition (edge).
<PaulFertser> stlink2 in swd mode, there's no reason to try jtag with stlink.
<matsievskiysv> I will look at signal edges tomorrow at work
<PaulFertser> I suggest you try mass_erase over swd to make sure it's not firmware disabling pins.
<matsievskiysv> I previously programmed it baremetal without HAL, so I'm pretty sure that it does not mess with the pin assignment.
<matsievskiysv> But I'll do this anyway
<PaulFertser> matsievskiysv: have you already tried using e.g. 0.9.0 release in JTAG mode with this target?
<matsievskiysv> Just Debian stock which is 0.11
<PaulFertser> It's old enough, a bug like that would have been noticed.
<matsievskiysv> I don't really trust my `ftdi layout_init` settings
<matsievskiysv> We need to set TDI as input and others as output, right?
<matsievskiysv> And the reset values to HIGH
<matsievskiysv> BTW, if I set nTRST and nSRST in `layout_init` to LOW, the board does not answer
<matsievskiysv> Even though these signals are defined with `layout_signal`
<PaulFertser> matsievskiysv: I suggest you do not connect nTRST and nSRST at all. And use upstream config for ftdi breakout board.
<PaulFertser> interface/ftdi/minimodule.cfg
<matsievskiysv> Well, it's a progress
<matsievskiysv> Now I have Invalid ACK (7) instead of (4)
<matsievskiysv> source [find interface/ftdi/minimodule.cfg]
<matsievskiysv> source [find board/stm32f103c8_blue_pill.cfg]
<PaulFertser> Not sure it's really a progress. What does "reset halt" over telnet produce?
<matsievskiysv> openocd does not reach server stage, so no telnet
<matsievskiysv> well, that's a real progress
<matsievskiysv> another board works
<PaulFertser> Ah, so one board works now?
<matsievskiysv> yep
<matsievskiysv> i'll look for soldering problem
<matsievskiysv> thanks!
<PaulFertser> Probably TDI problem if you get tap IDs.
<PaulFertser> Or TMS
<matsievskiysv> lesson learned: don't trust those cheap Chinese boards:)
<PaulFertser> matsievskiysv: found the missing signal?
<matsievskiysv> no, board pin to chip lines are fine
<matsievskiysv> at least at low frequency
<PaulFertser> Probably the other board has some firmware
<PaulFertser> And that makes it different.
<matsievskiysv> It has the same ACK (7) error until I upplug it and put it back
<matsievskiysv> I think, if I return reset wires, the first one would work too
<PaulFertser> By default OpenOCD doesn't use reset signals unless enabled in "reset_config".
<matsievskiysv> I've erased firmware from the second board and it works
<matsievskiysv> the first one does not
<matsievskiysv> Ok, whatever this is, it's certainly not an openocd issue
<matsievskiysv> Thanks for the help!
<PaulFertser> matsievskiysv: welcome
kraiskil has quit [Ping timeout: 265 seconds]
merethan has quit [Remote host closed the connection]
merethan has joined #openocd
crabbedhaloablut has quit [Quit: No Ping reply in 180 seconds.]
crabbedhaloablut has joined #openocd
merethan has quit [Remote host closed the connection]
merethan has joined #openocd
kraiskil has joined #openocd
Haohmaru has quit []
Hawk777 has joined #openocd
kraiskil has quit [Ping timeout: 252 seconds]
merethan has quit [Remote host closed the connection]
nerozero has quit [Ping timeout: 244 seconds]
matsievskiysv has quit [Remote host closed the connection]
zkrx has quit []
zkrx has joined #openocd
zkrx has quit []
crabbedhaloablut has quit [Quit: No Ping reply in 180 seconds.]
zkrx has joined #openocd
crabbedhaloablut has joined #openocd
zkrx has quit []
zkrx has joined #openocd
crabbedhaloablut has quit [Ping timeout: 258 seconds]
crabbedhaloablut has joined #openocd
zjason has quit [Read error: Connection reset by peer]
zjason has joined #openocd
kraiskil has joined #openocd
wingsorc has quit [Quit: Leaving]
kraiskil has quit [Ping timeout: 250 seconds]
wingsorc__ has joined #openocd
zmatt has quit [Ping timeout: 268 seconds]