Krazubu has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
tsal has quit [Ping timeout: 256 seconds]
tsal has joined #openocd
Bertl_oO is now known as Bertl_zZ
nerozero has joined #openocd
nerozero_ has joined #openocd
nerozero has quit [Remote host closed the connection]
nerozero_ has quit [Remote host closed the connection]
nerozero has joined #openocd
josuah has quit [Remote host closed the connection]
michalkotyla_ has joined #openocd
Hawk777 has quit [Quit: Leaving.]
Haohmaru has joined #openocd
Bugies has joined #openocd
Krazubu has joined #openocd
Bugies has quit [Ping timeout: 240 seconds]
Bertl_zZ is now known as Bertl
thinkfat_ has joined #openocd
thinkfat_ has quit [Ping timeout: 250 seconds]
thinkfat_ has joined #openocd
jimn has joined #openocd
emeb has joined #openocd
thinkfat_ has quit [Ping timeout: 240 seconds]
Bertl is now known as Bertl_oO
Bugies has joined #openocd
jimn has quit [Ping timeout: 240 seconds]
jimn has joined #openocd
Haohmaru has quit []
nerozero has quit [Ping timeout: 256 seconds]
jimn has quit [Ping timeout: 268 seconds]
Bugies has quit [Remote host closed the connection]
Hawk777 has joined #openocd
orzel has joined #openocd
<orzel>
Hello. I have a circuit with a HC32F030 (a chinese ARM kinda like STM32f030, i guess). The circuit has a five-hole debug port, and i could identify them as +vcc/gnd/swdio/swdclk and "resetB", according to the chinese datasheet. My only 'debugging' card is a ft232h breakout board. I tried connecting that and using opencd, but i keep getting this https://dpaste.org/vyyr no matter how i connect things. Any idea what i'm missing ? I'm
<orzel>
afraid something needs to be done with reset that the scripts i'm using don't do.
<Krazubu>
hi orzel I'm in the same boat, trying to communicate with a cortex M33
<PaulFertser>
orzel: hi
<Krazubu>
once in a while I get the correct addr
<orzel>
Krazubu: you're luckier than me so far :)
<PaulFertser>
orzel: how exactly are you connecting ft232h breakout for SWD?
<PaulFertser>
orzel: also please show -d3 log
<orzel>
vcc/gnd : obvious, swdclk to d0, swdio to d2, a resistor between d1 and d2 (i tried 220 and 470 ohms). I tried not using the reset, or connecting to d4 or d5
<orzel>
PaulFertser: because ft232h-module-swd.cfg mentions RESET on those pins.
<Krazubu>
orzel that took me 3 days to get something though :) and it started to appear yesterday… sometimes, and it's gone since then
<orzel>
PaulFertser: i tried inverting d1/d2 for swdio and the resistor
<PaulFertser>
orzel: TDI should be connected via a resistor to SWDIO, TDO should be connected to SWDIO directly.
<PaulFertser>
orzel: then if it gives the same result try starting OpenOCD while connecting resetB to GND manually.
<orzel>
ok. tdi is d2, do that's the the second option.
<orzel>
The mcu is powered by the ftdi breakout. I 'assume' it's ok, and enough.
<PaulFertser>
orzel: if it's a bare MCU, probably. You can check the Vcc with voltmeter to see if it's not sunk.
<orzel>
It's not bare, there's a board, with buttons, screen and all. The mcu is soldered, smd, can't 'easily' take it out.
<PaulFertser>
orzel: I mean powering probably is ok, not sure how much ft232h can provide, it's about 50 mA probably.
<orzel>
i tried while the board was powered. Slighlty dangerous, but everything survived, and i didn't work any better.
<orzel>
"it didn't"
<PaulFertser>
orzel: it's not dangerous if it's powered by 3.3 V supply.
<orzel>
with the ftdi only, vcc is still stable at 3.3v
<PaulFertser>
orzel: so retry with resetB pulled down. And show -d3 please.
<orzel>
yes, both are 3.3V, but you never now if there's a slight difference.
<PaulFertser>
btw, since 1003bc7be7c471d28794280be69632c5f074789f on a real ftdi breakout board you can just short TDO and TDI together without resistor if you're only using it in SWD mode, see 1003bc7be7c471d28794280be69632c5f074789f
<orzel>
i had already tried just connecting them together