NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
jancoow has quit [Quit: The Lounge - https://thelounge.chat]
Hawk777 has joined #openocd
jancoow has joined #openocd
tsal has quit [Ping timeout: 244 seconds]
tsal has joined #openocd
alkane has quit [Ping timeout: 248 seconds]
alkane has joined #openocd
Hawk777 has quit [Quit: Leaving.]
nerozero has joined #openocd
Hawk777 has joined #openocd
PlasmaHH has joined #openocd
Pokey has quit [Read error: Connection reset by peer]
Pokey has joined #openocd
Haohmaru has joined #openocd
Hawk777 has quit [Quit: Leaving.]
bvernoux has joined #openocd
balrog has quit [Ping timeout: 252 seconds]
balrog_ has joined #openocd
Foxyloxy has quit [Read error: Connection reset by peer]
Foxyloxy has joined #openocd
<NishanthMenon> marex: it looked the same to me at least
PlasmaHH has quit [Ping timeout: 268 seconds]
Haohmaru has quit [Quit: saionara]
jfsimon has joined #openocd
<jfsimon> Good day,
<jfsimon> I'm using a swd probe, it has issues as can't connect to mcu. When monitoring the Reset signal, i see it always low, is that normal or sign of hw failure in the debugger ?
<jfsimon> There are pull op on target board, only when wired to the debugger does it remain low.
zkrx has quit [Ping timeout: 244 seconds]
zkrx has joined #openocd
<PaulFertser> jfsimon: hi! did you enable srst in your reset_config?
<PaulFertser> jfsimon: also, low reset is not normal, it should idle high. What probe are you using?
<jfsimon> It's a Renesas E2-Lite
<jfsimon> I think the hardware failed inside.
<jfsimon> Thanks for info.
<PaulFertser> Hm, does OpenOCD has a config for that adapter at all or how are you using it?
<jfsimon> I was using th Renesas Flasher, ordered al Olimex for use with openocd, deliver's next week or so.
<jfsimon> From Renesas flasher, it can be config as high impedence and still grounds the reset. I was wondering how the SWD init sequence looks like for a Low active reset and hence looking a bit at openecd sources.
<PaulFertser> If SRST isn't enabled in config OpenOCD sets it to Open Drain if at all possible, and high otherwise.
<jfsimon> So i'll try with openocd/olimex ARM-USB-OCD-H about next week.
<jfsimon> Ok
<PaulFertser> Hardware reset line shouldn't be needed for regular SWD communication at all.
<jfsimon> So there's no reason to hold Reset line low (low active) right ? Sor sure the Flasher must be burnt out.
<PaulFertser> ARM-USB-OCD-H doesn't officially support SWD without additional adapter (it does unofficially with the "resistor hack").
<PaulFertser> Some proper good targets support SWD communication with SRST asserted, that allows connecting to the target no matter what it has on its flash.
<PaulFertser> E.g. with STM32 you can use that "connect under reset" feature to talk to targets which disable SWD or go to deep sleep or whatever.
<PaulFertser> So the debugger can establish "vector catch" or set breakpoints, then releases reset and let the target run till that reset vector or breakpoint.
<jfsimon> Odd i didn't know about that
<jfsimon> anyways i'll have to hack it then.
<jfsimon> Sorry it's not the USB variant.
<jfsimon> Woops
<jfsimon> Ok that's it then ARM-JTAG-SWD
<jfsimon> an adapter.
Hawk777 has joined #openocd
zkrx has quit [Ping timeout: 244 seconds]
zkrx has joined #openocd
<jfsimon> Thanks for the infos.
tlwoerner has quit [Quit: Leaving]
nerozero has quit [Ping timeout: 252 seconds]
<PaulFertser> jfsimon: ARM-JTAG-SWD is not a full adapter though, it's an add-on for USB adapter.
<jfsimon> Indeed, from the wiring and your post i understand it can be hacked,
<jfsimon> in any ways i'll give try with ocd, never used before.
<PaulFertser> jfsimon: what do you mean by hacked here?
<PaulFertser> What trick/mod do you have in mind?
<jfsimon> The resistor hack for swd
<jfsimon> because the boad i work with only supports it
<jfsimon> it's a RA4 M1 from Renesas
<jfsimon> I forgot get the swd adapter, if it's not too complicated i'll check for hacking
<PaulFertser> jfsimon: the resistor hack is only applicable to adapters with FTDI USB chip (ft[24]?232[DH]) inside
<PaulFertser> The hack is trivial, yes, fakes bidirectionality by limiting TDO drive strength by attaching a big enough resistor in series.
<PaulFertser> So that the target can easily overdrive it.
<jfsimon> Ok
<jfsimon> Because i want more flexibility than using the Renesas flasher only,
<PaulFertser> Is your target MCU supported by OpenOCD for flashing?
<jfsimon> i think i supplied the board with 5V and it's a 3.3V, hence muste have burned something.
<PaulFertser> Might be...
<jfsimon> It's i think this usb adapter indeed, will work try this when it's been delivered
<PaulFertser> Olimex adapters (the full version, not mini) worked wonders for me, yes, they're decent.
<jfsimon> Ok, that's the same i got i think
<jfsimon> never worked with ARM too much earlier, but i'll try get more into it.
<jfsimon> I'm making a board imilar to Arduino, but with industrial I/Os
<jfsimon> for someone, though programming the mcu didn't get as easy as expected. The board needs quite some modifications, xtal, programming signals.
<jfsimon> And i managed to supply 5V to the programmer, although it's responding, but the scope traces show odd things.
<jfsimon> Night
<PaulFertser> See yoou
bvernoux has quit [Quit: Leaving]
PaulFertser has quit [Ping timeout: 276 seconds]
Hawk777 has quit [Quit: Leaving.]
HumanG331 has quit [Ping timeout: 276 seconds]
HumanG331 has joined #openocd