打印

GD32VF103C-START开发板,编译后下载的时候报这个错误,什么原因?

[复制链接]
2918|7
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主

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

使用特权

评论回复
沙发
zoomdy| | 2019-9-25 17:27 | 只看该作者
set arch riscv:rv32

使用特权

评论回复
板凳
zoomdy| | 2019-9-25 17:28 | 只看该作者


使用特权

评论回复
地板
kaiw| | 2020-8-12 09:06 | 只看该作者

(gdb) set arch riscv:rv32
warning: A handler for the OS ABI "GNU/Linux" is not built into this configuration
of GDB.  Attempting to continue with the default riscv:rv32 settings.

The target architecture is assumed to be riscv:rv32
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
bfd requires xlen 8, but target has xlen 4
(gdb)

您好!gdb调试出现这样的问题怎么解决呢?
“set arch riscv:rv32”命令执行完以后,还是显示“bfd requires xlen 8, but target has xlen 4”。
谢谢老师!!!

使用特权

评论回复
5
kaiw| | 2020-8-12 09:06 | 只看该作者

(gdb) set arch riscv:rv32
warning: A handler for the OS ABI "GNU/Linux" is not built into this configuration
of GDB.  Attempting to continue with the default riscv:rv32 settings.
The target architecture is assumed to be riscv:rv32
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
bfd requires xlen 8, but target has xlen 4
(gdb)
您好!gdb调试出现这样的问题怎么解决呢?
“set arch riscv:rv32”命令执行完以后,还是显示“bfd requires xlen 8, but target has xlen 4”。
谢谢老师!!!

使用特权

评论回复
6
xdqfc| | 2020-8-12 10:08 | 只看该作者
假如是编译没有问题,而仿真下载有问题,两个文件需要注意一下,一个是芯片型号选择,好像是ELF,我记不清楚了,还有就是编译后产出的仿真文件,什么结尾的的我记不得了,请看一下官方的说明书,两个文件的定位千万不要玩错了。

使用特权

评论回复
7
wdliming| | 2020-8-19 09:04 | 只看该作者

使用特权

评论回复
8
mxzwish| | 2021-1-8 20:40 | 只看该作者
kaiw 发表于 2020-8-12 09:06
(gdb) set arch riscv:rv32
warning: A handler for the OS ABI "GNU/Linux" is not built into this con ...

你这个gdb版本可能有问题没能支持riscv:rv32
你应该用芯来科技下载频道里的toolchain里面的gdb

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

1

帖子

0

粉丝