NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
c4017_ has joined #openocd
c4017 has quit [Ping timeout: 240 seconds]
boru` has joined #openocd
boru has quit [Killed (NickServ (GHOST command used by boru`))]
boru` is now known as boru
tsal_ has quit [Ping timeout: 248 seconds]
tsal has joined #openocd
cp- has quit [Ping timeout: 248 seconds]
Hawk777 has joined #openocd
renrelkha has quit [Quit: bye]
renrelkha has joined #openocd
nerozero has joined #openocd
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
LinuxHackerman has joined #openocd
Hawk777 has quit [Quit: Leaving.]
thinkfat has joined #openocd
Steffann has joined #openocd
Steffanx has quit [Read error: Connection reset by peer]
thinkfat has quit [Remote host closed the connection]
thinkfat has joined #openocd
tarekb has joined #openocd
Guest57 has joined #openocd
Guest57 has quit [Client Quit]
w00tSpeaks_ has joined #openocd
w00tSpeaks has quit [Quit: Konversation terminated!]
zjason has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
cp- has joined #openocd
<tarekb> thanks olerem: for reviewing the L5 series !!!
nerozero has quit [Remote host closed the connection]
tarekb has quit [Read error: Connection reset by peer]
dliviu has quit [Ping timeout: 256 seconds]
dliviu has joined #openocd
dliviu has quit [Ping timeout: 245 seconds]
dliviu has joined #openocd
emeb has joined #openocd
jybz has left #openocd [Konversation terminated!]
nerozero has joined #openocd
gnom has joined #openocd
gnom has quit [Quit: leaving]
gnom has joined #openocd
gnom has quit [Quit: leaving]
gnom has joined #openocd
cluelessperson has joined #openocd
nerozero has quit [Ping timeout: 252 seconds]
rapha has left #openocd [WeeChat 2.3]
<cluelessperson> Hi there, I've just discovered this project and I'm figuring myself out
<cluelessperson> I'm doing
<cluelessperson> openocd -f /usr/local/share/openocd/scripts/interface/jlink.cfg -c 'transport select swd' -f /usr/local/share/openocd/scripts/target/stm32wlx.cfg
<cluelessperson> but I get this error
<cluelessperson> Error connecting DP, cannot read IDR
<cluelessperson> full output: https://bpa.st/K5JA
<cluelessperson> I'm guessing that probably using stm32wlx.cf for the STM32WLE5JC is probably incorrect.
<PaulFertser> cluelessperson: hi
<PaulFertser> cluelessperson: you should omit /usr/local/share/openocd/scripts , openocd knows where its scripts are stored
<PaulFertser> cluelessperson: is the target already running any firmware?
<PaulFertser> cluelessperson: do you have a reset button on your board, can you try starting openocd with it pressed, does the output change?
<cluelessperson> PaulFertser, it is. it's this thingy: https://www.seeedstudio.com/LoRa-E5-mini-STM32WLE5JC-p-4869.html which says: "developers need to remove RDP first with STM32Cube Programmer"
<PaulFertser> cluelessperson: I've told you about OpenOCD 5 days ago: 00:41 < PaulFertser> That chip is supported since c999fcef3e96fbdb5226b0913bddf29365566ce8
<PaulFertser> cluelessperson: do you have physical reset line connected between your stlink and the target board?
<cluelessperson> I built and installed OpenOCD from master, so I haven't checked that commit is in the master branch yet.
<cluelessperson> and yes, I connected the reset line, but I had to solder my own small wires for the 1.27mm cable to convert to 2.54mm
<PaulFertser> cluelessperson: it is
<PaulFertser> cluelessperson: since you have reset connected I suggest you try adding -c "reset_config srst_only connect_assert_srst" to your invocation command line.
<cluelessperson> attempting
<cluelessperson> `openocd -f interface/jlink.cfg -c 'transport select swd' -f target/stm32wlx.cfg -c "reset_config srst_only connect_assert_srst"`
<cluelessperson> similar output
<cluelessperson> output/result
<PaulFertser> cluelessperson: same error? What about holding reset button pressed?
<cluelessperson> same error: Error: Error connecting DP: cannot read IDR
<cluelessperson> still with holding the reset button
* cluelessperson look at the commit you mentioned
<PaulFertser> cluelessperson: then I suggest your recheck SWDIO and SWCLK
<PaulFertser> cluelessperson: the commit is just for the flash driver
<PaulFertser> cluelessperson: it fails much earlier for you
* cluelessperson peels the electrical tape back to verify the color wires to the cable pinout
<PaulFertser> You can also check continuity right from jlink to the MCU pins.
<PaulFertser> To be 100 % sure.
<PaulFertser> cluelessperson: also, with errors like that please run with -d3 and pastebin the log.
<cluelessperson> checking continuity
<cluelessperson> damn it, clk and reset were reversed
<cluelessperson> I see how I made that mistake, but how do I make these sorts of mistakes?
<cluelessperson> earlier I had yellow as reset, but switched it, and apparently still wired yellow to reset
<cluelessperson> repeating
<cluelessperson> Info : starting gdb server for stm32wlx.cpu on 3333
<cluelessperson> Info : Listening on port 3333 for gdb connections
<cluelessperson> I guess that's successful
<PaulFertser> cluelessperson: connection is successful, yes.
<PaulFertser> cluelessperson: if you have issues actually flashing it you'll have to do something like "stm32l4x mass_erase 0" or the like, see the User Manual.
<cluelessperson> PaulFertser, thank you for this tool, this is pretty neat, even if I lack the skill and understanding about it.
<cluelessperson> I'm completely new to this, I don't even know what to program it with. xD
<PaulFertser> cluelessperson: hope you'll figure it out eventually :)
thinkfat has quit [Quit: Konversation terminated!]
thinkfat has joined #openocd
thinkfat has quit [Read error: Connection reset by peer]
thinkfat has joined #openocd
emeb has left #openocd [#openocd]
thinkfat has quit [Ping timeout: 245 seconds]
tarekb has joined #openocd
cp- has quit [Read error: Connection reset by peer]