cnlohr / ch32v003fun

Open source minimal stack for the ch32 line of WCH processors, including the ch32v003, a 10¢ 48 MHz RISC-V Microcontroller - as well as many other chips within the ch32v/x line.
MIT License
951 stars 146 forks source link

minichlink doesn't support gdb "load" #159

Closed maxgerhardt closed 1 year ago

maxgerhardt commented 1 year ago
$ riscv-none-embed-gdb -ex "target remote :2000" blink.elf
..
(gdb) set debug remote 1
(gdb) load
Sending packet: $vFlashErase:00000000,00000200#bc...Ack
Packet received: 
Remote target does not support flash erase

That should be easy to implement especially since the tool can flash already..

cnlohr commented 1 year ago

And also need to add PC set function - somehow that one got left out.

cnlohr commented 1 year ago

What does set debug remote 1 do?

maxgerhardt commented 1 year ago

That makes gdb show debug output for the remote data it sends to the gdbserver. Just for reference so you know what the request packet looks like that minichlink should handle.

cnlohr commented 1 year ago

aaah gotcha

cnlohr commented 1 year ago

What version of GDB are you testing on?

maxgerhardt commented 1 year ago

Still 8.3. same as in #158.

cnlohr commented 1 year ago

Sorry this took so long to resolve, but it should all work now.