Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
risc-v_RISCV
rt-smart
rt_smart userapp 应用程序报错的问题 qemu-virt64-riscv
发布于 2025-02-17 14:27:16 浏览:154
订阅该版
内核与userapp 编译都很顺利 内核运行也正常 ,但是执行 userapp 中的 hello.elf 报错: ``` msh />hello.elf elf_user_dump : user va : 0x0000000200000000, len : 0x40(64) elf_user_dump : k_va : 0xffffffc000353180 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 02 00 f3 00 01 00 00 00 00 00 00 00 02 00 00 00 40 00 00 00 00 00 00 00 a0 24 09 00 00 00 00 00 01 00 00 00 40 00 38 00 02 00 40 00 16 00 15 00 elf_user_dump : user va : 0x0000000200000000, len : 0x40(64) elf_user_dump : k_va : 0xffffffc0003531c0 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 02 00 f3 00 01 00 00 00 00 00 00 00 02 00 00 00 40 00 00 00 00 00 00 00 a0 24 09 00 00 00 00 00 01 00 00 00 40 00 38 00 02 00 40 00 16 00 15 00 msh />[E/libcpu.trap] [FATAL ERROR] Exception 2:Illegal Instruction [E/libcpu.trap] scause:0x0000000000000002,stval:0x00000000464c457f,sepc:0x0000000200000000 --------------Dump Registers----------------- Function Registers: ra(x1) = 0xffffffc00021f8fa user_sp = 0x0000000300000000 gp(x3) = 0xffffffc0002b39e8 tp(x4) = (nil) Temporary Registers: t0(x5) = 0x0000000000000020 t1(x6) = 0x0000000500006d02 t2(x7) = (nil) t3(x28) = 0xffffffc00030a5f8 t4(x29) = 0x0000000000000040 t5(x30) = 0x000000000000002d t6(x31) = 0x0000000000000054 Saved Registers: s0/fp(x8) = 0xffffffc000340ff0 s1(x9) = 0xffffffc00029247e s2(x18) = (nil) s3(x19) = (nil) s4(x20) = (nil) s5(x21) = (nil) s6(x22) = (nil) s7(x23) = (nil) s8(x24) = (nil) s9(x25) = (nil) s10(x26) = (nil) s11(x27) = (nil) Function Arguments Registers: a0(x10) = 0x0000000300000000 a1(x11) = 0x0000000200000000 a2(x12) = 0x0000000300000000 a3(x13) = 0xffffffc000341000 a4(x14) = 0xffffffc00033d000 a5(x15) = 0x0000000000000003 a6(x16) = 0x8080808080808080 a7(x17) = 0x00000000000000c8 sstatus = 0x8000000000046020 Supervisor Interrupt Disabled Last Time Supervisor Interrupt Enabled Last Privilege is User Mode Permit to Access User Page Not Permit to Read Executable-only Page satp = 0x80000000000845e9 Current Page Table(Physical) = 0x00000000845e9000 Current ASID = (nil) Mode = Page-based 39-bit Virtual Addressing Mode -----------------Dump OK--------------------- fp = 0xffffffc000340ff0 please use: addr2line -e hello.elf -a -f 0x200000000 0xffffffff00000000 [E/libcpu.trap] User Fault, killing thread: hello.elf ```
查看更多
1
个回答
默认排序
按发布时间排序
jw__liu
2025-02-17
这家伙很懒,什么也没写!

撰写答案
登录
注册新账号
关注者
1
被浏览
154
关于作者
jw__liu
这家伙很懒,什么也没写!
提问
13
回答
33
被采纳
0
关注TA
发私信
相关问题
1
studio能否支持risc-v的工程,包括调试。
2
移植rt-nano至risc-v时,无法在main函数创建用户线程
3
risc-v移植rtthread,程序莫名跳转到异常Exception
4
GD32VF103出现to free a bad data block:错误
5
rtt os riscv Store address misaligned异常
6
仅实现机器模式的芯片是否可以移植RT-THREAD系统
7
nano版本移植finsh(基于risc-v)
8
C++在多核下cout打印引起崩溃
9
RT-SMART求助
10
RT-Thread在RISC-V架构的芯片上有成熟的市场项目吗?
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
可以使用MQTT连接AI大模型吗?好像星火一号的MQTT例程就能直接连
2
RT-Thread离线包制作
3
RT-Thread 屏蔽在线软件包的方法
4
RT-Thread OS应用开发实战线上师资培训通知
5
【ci】【github】【bsp】RT-Thread仓库的CI自动编译测试
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
rt-smart
FAL
I2C_IIC
cubemx
ESP8266
WIZnet_W5500
UART
ota在线升级
PWM
BSP
flash
freemodbus
packages_软件包
潘多拉开发板_Pandora
GD32
定时器
ADC
flashDB
编译报错
socket
中断
rt_mq_消息队列_msg_queue
keil_MDK
Debug
SFUD
msh
ulog
C++_cpp
at_device
本月问答贡献
聚散无由
5
个答案
4
次被采纳
RTT_逍遥
5
个答案
2
次被采纳
踩姑娘的小蘑菇
6
个答案
1
次被采纳
a1012112796
4
个答案
1
次被采纳
YZRD
3
个答案
1
次被采纳
本月文章贡献
wake_mirco
2
篇文章
7
次点赞
mushroom
1
篇文章
8
次点赞
张世争
1
篇文章
7
次点赞
alight
1
篇文章
3
次点赞
rv666
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部