NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
agent314 has quit [Ping timeout: 258 seconds]
agent314 has joined #openocd
jancoow has quit [Quit: The Lounge - https://thelounge.chat]
jancoow has joined #openocd
tsal_ has joined #openocd
tsal has quit [Ping timeout: 248 seconds]
Guest56 has joined #openocd
Guest56 has quit [Client Quit]
nerozero has joined #openocd
agent314 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
agent314 has joined #openocd
agent314 has quit [Ping timeout: 245 seconds]
agent314 has joined #openocd
Haohmaru has joined #openocd
agent314 has quit [Ping timeout: 256 seconds]
agent314 has joined #openocd
dliviu has quit [Quit: Going away]
agent314 has quit [Ping timeout: 248 seconds]
rkta has quit [Remote host closed the connection]
dliviu has joined #openocd
agent314 has joined #openocd
agent314 has quit [Ping timeout: 258 seconds]
rkta has joined #openocd
alkane has quit [Ping timeout: 260 seconds]
alkane has joined #openocd
agent314 has joined #openocd
lucascastro has joined #openocd
flatmush has quit [Ping timeout: 256 seconds]
flatmush has joined #openocd
agent314 has quit [Ping timeout: 258 seconds]
agent314 has joined #openocd
Haohmaru has quit [Quit: saionara]
agent314 has quit [Ping timeout: 260 seconds]
lucascastro has quit [Quit: Leaving]
ALTracer has joined #openocd
nerozero has quit [Ping timeout: 258 seconds]
ALTracer has quit [Quit: Quit]
lucascastro has joined #openocd
sbach_ has joined #openocd
sbach has quit [Ping timeout: 248 seconds]
jn has quit [Ping timeout: 248 seconds]
sbach_ is now known as sbach
jn has joined #openocd
lucas__ has joined #openocd
lucascastro has quit [Read error: Connection reset by peer]
gamiee has quit [Ping timeout: 260 seconds]
gamiee has joined #openocd
lucas__ has quit [Remote host closed the connection]
slobodan has joined #openocd
tsal_ has quit [Ping timeout: 258 seconds]
tsal has joined #openocd
slobodan_ has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
slobodan_ has quit [Read error: Connection reset by peer]
slobodan_ has joined #openocd
slobodan__ has joined #openocd
slobodan_ has quit [Ping timeout: 258 seconds]
slobodan__ has quit [Read error: Connection reset by peer]
slobodan__ has joined #openocd
slobodan__ has quit [Read error: Connection reset by peer]
slobodan__ has joined #openocd
slobodan__ has quit [Read error: Connection reset by peer]
Guest4 has joined #openocd
<Guest4> Hey, I'm getting an "Error: Error connecting DP: cannot read IDR" when trying to upload a firmware via platformio on an arduino uno r4 wifi. According to docs, debugging should be supported without external hardware, via cmsis=dap https://docs.platformio.org/en/latest/boards/renesas-ra/uno_r4_wifi.html#debugging . I looked with strace, it does not
<Guest4> seem to hit access problems to device files. I see the cmsis-dap device in lsusb. has anyone got a clue?
<Guest4> the command is `pio debug -e debug --interface gdb` and the platformio.io is this https://paste.centos.org/view/9b9619d7
<Guest4> .ini*
<antto> Guest4, this error sounds too familiar, it's one of the first things openocd tries to do, if not the very first one
<Guest4> yeah I cannot find anything related specifically to my board. a bunch of info about selecting the driver on windows, but I am on linux.
<Guest4> the device appears like this on lsusb https://paste.centos.org/view/21a043f2
<antto> oh, btw, i don't remember whether you had to adjust some things to allow your user to have access to USB stuff
<antto> have you used openocd+USB debugger on that PC+OS before?
<Guest4> I don't think so? I expect those to appear as EACCESS in strace. also I have no problem using normal upload and serial console
<Guest4> no I have never, I got just this board and no experience with others
<antto> but maybe it's not that
<antto> my nose tells me to check your connections between the MCU and the debugger
<antto> and power
Guest4 has quit [Quit: Client closed]
Guest95 has joined #openocd
<Guest95> openocd comes installed with platformio. I tried in the past with arduino ide, which packages openocd at a latter version (but with same openocd.cfg), and it didn't seem to work.
<Guest95> I also used espflash to flash the esp32 on the board
<Guest95> I guess that uses the same interface?
<antto> wait, what's the MCU?
<Guest95> it's a board with a renesas and an esp32
<Guest95> the arduino stuff runs on renesas, esp32 the "wifi bridge"
<Guest95> I'm trying to debug code in the arduino framework on the renesas
<antto> so some Cortex-M then
<Guest95> ADC is flaky when powered by usb, so cannot rule out electrical issues. but it's the same with 3 boards
<antto> well, no clue, my only ideas from that error are: "is the MCU powered?" and "are the connections to the debugger right?"
<Guest95> is upload by cmsis-dap necessary for debugging? can't I use normal upload? I'm confused about the process to start a debugging session, on command line as well
<antto> no... to debug the MCU you just need to have debug symbols available and to connect to the MCU
<antto> well, you could also do it without debug symbols but that won't be "fun"
<Guest95> so is there anything else I can try other than `pio debug -e debug --interface gdb`
<antto> no idea what that is ^
<Guest95> it has been kind of unnerving developing a whole freertos thing without a debugger
<antto> ouch, freeftos
<antto> no clue about that either
<Guest95> it is a wrapper for `openocd -d2 -s /home/Guest95/.platformio/packages/framework-arduinorenesas-uno@1.2.2/variants/UNOWIFIR4 -s /home/Guest95/.platformio/packages/tool-openocd/openocd/scripts -f openocd.cfg -c "cmsis_dap_vid_pid 0x2341 0x1002" -c "program {.pio/build/debug/firmware.bin} 0x4000 verify reset; shutdown;"`
<Guest95> the usb ID is correct
<antto> so perhaps this command is supposed to just flash a firmware?
<Guest95> yeah, honestly no clue on how to use openocd directly
<Guest95> it's way to late to get a clue now
<antto> i use it directly
<Guest95> I guess I'll look it up
<Guest95> thanks
Guest95 has quit [Quit: Client closed]
<antto> so, i run openocd from a terminal, it connects to the debugger (daplink-based), and then thru the debugger to the MCU, and then it sits and waits
<antto> meh