Hi Kristof,

On Thu, Apr 30, 2020 at 12:19:48PM +0200, kristof.mul...@telenet.be wrote:
>     (gdb) target remote localhost:3333

I recommend extended-remote always, there's no reason at all to not
use it. I type "tar ext :3333" usually.

>     Remote debugging using localhost:3333
>     bfd requires xlen 8, but target has xlen 4

This is the real reason behind the issue.

Some random searches tell me it might help to do "set arch riscv:rv32"
before executing "target" command.

>     (gdb) monitor flash erase_address 0x08000000 0x00010000

Usually one should just run "load" GDB command instead of manual
"flash xxx" commands. When programming without GDB using "program"
script (part of OpenOCD) is recommended.

Please tell your GD contact to contribute to upstream OpenOCD.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com


_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to