搜索

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

[复制链接]
1487|7
 楼主 | 2019-9-21 21:27 | 显示全部楼层 |阅读模式

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

使用特权

评论回复
| 2019-9-25 17:27 | 显示全部楼层
set arch riscv:rv32

使用特权

评论回复
| 2019-9-25 17:28 | 显示全部楼层
set-arch-riscv-rv32.png

使用特权

评论回复
| 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”。
谢谢老师!!!

使用特权

评论回复
| 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”。
谢谢老师!!!

使用特权

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

使用特权

评论回复
| 2020-8-19 09:04 | 显示全部楼层

使用特权

评论回复
| 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

使用特权

评论回复
扫描二维码,随时随地手机跟帖
您需要登录后才可以回帖 登录 | 注册

本版积分规则

我要发帖 我要提问 投诉建议 申请版主

快速回复

您需要登录后才可以回帖
登录 | 注册
高级模式

论坛热帖

在线客服 快速回复 返回顶部 返回列表