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?
<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>
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