NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
wingsorc__ has quit [Quit: Leaving]
wingsorc has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
thinkfat has joined #openocd
thinkfat_ has quit [Ping timeout: 276 seconds]
nerozero has joined #openocd
Hawk777 has joined #openocd
defiant has joined #openocd
Hawk777 has quit [Quit: Leaving.]
Haohmaru has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
Bugies has joined #openocd
wingsorc has quit [Ping timeout: 276 seconds]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
omjavaid has joined #openocd
wingsorc has joined #openocd
bobsy has quit [Ping timeout: 268 seconds]
netweaver has joined #openocd
<netweaver> HI all, is this the right spot to ask about slightly 'strange' behaviour of OpenOCD 11 in PlatformIO, for TI Tiva C debugging? Maybe it's my fault, as I'm a beginner in the PlatformIO & OpenOCD world...
<PaulFertser> netweaver: sure
<netweaver> I'm getting v frequent "Error: SRST error" and less frequent "Error: memory read failed: 0x7"
<PaulFertser> netweaver: I suggest you use some pastebin and show full output for starters.
<netweaver> This is a known 'issue', this is also mentioned on the PlatformIO Github: https://github.com/platformio/platform-titiva/issues/12 and https://github.com/platformio/platform-titiva/issues/11
<PaulFertser> netweaver: it's odd. Not many are using ICDI (integrated on Tiva boards)
<PaulFertser> netweaver: I'd take a look at -d3 output.
<PaulFertser> netweaver: probably you need to update ICDI version.
<netweaver> ok, let me see how/where to add the extra debug level parameter.
<netweaver> you mean upgrade the ICDI firmware of the onboard debug MCU ?
<PaulFertser> Yes, that might make a difference.
<PaulFertser> I think that last error is probably not related to SRST errors.
Guest27 has joined #openocd
Guest27 has quit [Client Quit]
bobsy has joined #openocd
<netweaver> PaulFertser I've downloaded the latest lmflash, when trying to upgrade the ICDI FW, it says my ICDI FW version is the same as the one packaged in the lmflash. So no need to upgrade
<PaulFertser> netweaver: ok. Odd it reports that SRST error then. I played with Tiva C boards many years ago, never saw reset failing like that.
<netweaver> seems more people have the issue. For now it's not bothering me, as debug seems to work after all, I can read memory, put breakpoints, read registers etc ... I was just wondering if I could somehow fix it and at the same moment better understand how it all hangs together.
<netweaver> I've added the -d3 param to the openocd line in the platformio.ini file but it seems I've done it wrong. Probably I need to fabricate a kind of 'start debug' command line, instead of adding it to the 'load' command lin... https://pastebin.com/ADEdYH0m
<PaulFertser> netweaver: no idea, I'm always running openocd manually.
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
<netweaver> the joys of having a GUI, one doesn't need to learn the intricacies of the command line usage any more … Googling my way around but I haven't found the definitive answer yet. Last famous words ... "I'l be back"
Hawk777 has joined #openocd
<PaulFertser> netweaver: if it flashes and debugs for you, why bother?
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
Haohmaru has quit [Remote host closed the connection]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
nerozero has quit [Ping timeout: 276 seconds]
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]
Jybz[m] has quit [Quit: Bridge terminating on SIGTERM]
barath has quit [Quit: Bridge terminating on SIGTERM]
noperator[m] has quit [Quit: Bridge terminating on SIGTERM]
wingsorc has quit [Quit: Leaving]
Jybz[m] has joined #openocd
shoragan[m] has joined #openocd
LinuxHackerman has joined #openocd
barath has joined #openocd
ormaaj has joined #openocd
noperator[m] has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
_franck_ has quit [Quit: Ping timeout (120 seconds)]
_franck_ has joined #openocd
netweaver has quit [Quit: Client closed]
zjason` has joined #openocd
zjason has quit [Ping timeout: 260 seconds]
kraiskil has joined #openocd
Inoperable has quit [*.net *.split]
Fleck has quit [*.net *.split]
zmatt has quit [*.net *.split]
karlp has quit [*.net *.split]
bryanb has quit [*.net *.split]
milkylainen has quit [*.net *.split]
PaulFertser has quit [*.net *.split]
PaulFertser has joined #openocd
bryanb has joined #openocd
zmatt has joined #openocd
milkylainen has joined #openocd
karlp has joined #openocd
Fleck has joined #openocd
kraiskil has quit [Ping timeout: 260 seconds]
Inoperable has joined #openocd
wingsorc has joined #openocd
stefano86 has joined #openocd
<stefano86> I get a `Command 'dap init' failed with error code -4` when I try to connect to my stm32f0
<stefano86> Before that i get the `Info : SWD DPIDR 0x0bb11477` which gives me confidence the electrical connection is right
<stefano86> Any idea of why that happens?
<PaulFertser> stefano86: is the target probably running some firmware that sleeps? Or probably its reset is pulled down?
<stefano86> the target is running a blink led example flashed with `stm32flash` made with stm32cubeIDE
<stefano86> do I need to flash a fw with debug info in it?
<stefano86> That is the thing Im about to try
<PaulFertser> stefano86: no
<PaulFertser> stefano86: it doesn't matter
<PaulFertser> stefano86: please capture a -d3 log and pastebin full output from that.
<PaulFertser> stefano86: can you please retry after connecting the jumper or button you have there that allows stm32flash to work?
<stefano86> stm32flash is used in a way that it uses the cts and rts usart signals to toggle boot0 and the reset pin
<stefano86> thanks to pcb design
<stefano86> all I have to do is run `stm32flash -b 115200 -i -rts,dtr:-dtr,rts -w ./led_test_debug.bin /dev/ttyUSB0` and it flashes/resets the board by itself
<PaulFertser> stefano86: hm, ok. Do you also route the reset line somewhere so you could try pulling it down and running OpenOCD while it's low?
<stefano86> sorry, meant to say rts and dtr signals
<stefano86> yes I have a push button on reset and another on boot0
<stefano86> you want me to try openocd with rst pressed?
<PaulFertser> Steffanx-: yes
<PaulFertser> Oh sorry, I meant stefano86
<Steffanx-> Lol
<stefano86> only thing that changes is third column of data in the debug file
<stefano86> for example in the paste bin I sent the first row has 17 and 1
<stefano86> if I hold reset low and run openocd I get 17 and 0
<stefano86> and some other number in that column change
<stefano86> Actually this may be a problem with my boot0
<stefano86> if I put the switch on either 0 or 1 stm32flash works anyway
<stefano86> not sure it should
<stefano86> please refresh my mind, if I reset the chip with boot0 low (bootloader mode), should the blink program stop or not?
<PaulFertser> In bootloader mode the flashed app doesn't boot.
<PaulFertser> And in bootloader mode nothing should prevent SWD connection.
<stefano86> ok
<PaulFertser> I also notice you're not using upstream config files but that seems to be not the issue.
<PaulFertser> Sorry, too sleepy now, can't remember of anything particular that could make errors like that.
<stefano86> Dont worry, Im sleepy too
<stefano86> thanks for your time, will double check everything
<stefano86> upstream meaning not up to date?
<stefano86> i copied the stm32f0x from the ocd dir to my local project dir to make the command shorte, if thats what u meant
stefano86 has quit [Quit: Client closed]
erhankur has quit [Remote host closed the connection]
erhankur has joined #openocd
bobsy has quit [Ping timeout: 276 seconds]
bobsy has joined #openocd
Bugies has quit [Ping timeout: 250 seconds]