RISC-V MCU中文社区

编译后下载的时候报这个错误,什么原因?

oomdy 发表于  2019-11-06 14:23:07

Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
bfd requires xlen 8, but target has xlen 4
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
bfd requires xlen 8, but target has xlen 4
bfd requires xlen 8, but target has xlen 4

1个回答
按投票排序 | 按时间排序

admin

2019-11-06 14:23:34

0支持  /  0反对

加这两行代码

  1. set arch riscv:rv32
  2. set remotetimeout 250
复制代码


具体可以参考https://gnu-mcu-eclipse.github.io/debug/openocd/riscv/