sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
<HelloShitty>
Evening peeps
<HelloShitty>
A quick help to get started
<HelloShitty>
I'm trying to use openocd to connect to my stm32 with gdb. I launched gdb with my bin file and now I was trying to connect to openocd server (already running)
<HelloShitty>
but I can't remember the command inside gdb. I tried: `tar ext :3333`, `tar ext :3334', but connection is being refused
<HelloShitty>
What is the command to connect to openocd server?
<Hawk777>
Is OpenOCD running? “connection refused” suggests not.
<Hawk777>
I suspect the “Cannot identify target as a STM32 family” and “auto_probe failed” are at fault.
<Hawk777>
What chip are you trying to talk to?
<HelloShitty>
let me check
<HelloShitty>
stm31l412
<HelloShitty>
stm32l412
<HelloShitty>
I had this running a few weeks ago
<HelloShitty>
now I stopped for a while and forgot the details
<HelloShitty>
it only says that about not detecting an stm32 family chip after I try to connect to it from gdb
<HelloShitty>
because when I start openocd, it all seems fine. No errors
<Hawk777>
Why are you using stm32f4x.cfg instead of stm32l4x.cfg?
<HelloShitty>
because I made a mistake, I guess. I was using the raw command in the terminal before and as I forgot the command, I went looking for an old config file I remember to have used in the past
<HelloShitty>
and used it now
<HelloShitty>
Let me change that and see if anything changes
<Hawk777>
Ah, give l4x a try, it looks like they use different Flash drivers.
<HelloShitty>
yeah, it's working
<HelloShitty>
thank you Hawk777
<Hawk777>
No problem :)
<HelloShitty>
you have some hawk pair of eyes
<HelloShitty>
xD
<Hawk777>
haha
<HelloShitty>
:p
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
crabbedhaloablut has quit [Ping timeout: 276 seconds]