问题描述
运行face_detection例程异常
复现步骤
官网下载SDK,手上两款开发板,庐山派/k230_canmv_v1.1,
运行hellowordl 正常
face_detection 下执行face_detect_image.sh 正常
但执行face_detect_isp.sh
异常
经过多次认证,自行编译镜像,只要图像输出和摄像头采集均运行异常,
但官网下载RtSmart-K230_LCKFB_rtsmart_v0.7-0-g0946d74_nncase_v2.9.0.img运行正常
硬件板卡
庐山派,k230_canmv_v1.1
软件版本
RT-Smart SDK0.7
其他信息
命令交互信息
list_connector
Connector Type List:
68711360 -> HX8399_1080_1920_DSI_V1
135512464 -> ILI9806_480_800_DSI_V1
202785408 -> ILI9881_800_1280_DSI_V1
605274512 -> ST7701_480_800_DSI_V1
605274539 -> ST7701_480_854_DSI_V1
605274432 -> ST7701_480_640_DSI_V1
605217040 -> ST7701_368_544_DSI_V1
538165428 -> AML020T_480_360_DSI_V1
754974720 -> LT9611_0_0_HDMI_ADAPT
757006876 -> LT9611_1920_1080_HDMI_V1
758055452 -> LT9611_1920_1080_HDMI_V2
759104028 -> LT9611_1920_1080_HDMI_V3
760152604 -> LT9611_1920_1080_HDMI_V4
761201180 -> LT9611_1920_1080_HDMI_V5
756679016 -> LT9611_1280_720_HDMI_V1
757727592 -> LT9611_1280_720_HDMI_V2
758776168 -> LT9611_1280_720_HDMI_V3
756351216 -> LT9611_640_480_HDMI_V1
672260256 -> JD9852_240_320_DSI_V1
0 -> VIRTUAL_DISPLAY_DEVICE
-1 -> UNKNOWN
msh />
msh />cd /sdcard/app/examples/ai/face_detection
msh /sdcard/app/examples/ai/face_detection>
msh /sdcard/app/examples/ai/face_detection>
msh /sdcard/app/examples/ai/face_detection>face_detect_isp.sh
[W/LWP] not use fast load, out of memory 33554432 < 36205032
case ./face_detection.elf built at Apr 28 2026 14:57:42
connector_dev_ioctl: no panel selected (call INIT first)
kd_mpi_connector_power_set, error(-1)
ERROR: kd_mpi_connector_power_set failed, ret=-1609859064
dump dev(0)chn(1) failed.
kd_mpi_vicap_dump_frame failed.
<3>[2] [Func]:hil_map_mmz_check_phys [Line]:1235 [Info]:ERROR: MMAP ADDR: 0x0-0xa9000
============ CRASH REPORT ===================
Exception 13: Load Page Fault
scause = 0x000000000000000d
stval = 0x0000000000000009 (fault address)
sepc = 0x00000002007b5816 (program counter)
ra = 0x00000002007b5814 (return address)
sp = 0x0000000100022210
frame = 0x000000000045e958 (trap frame on stack)
fp/s0 = 0x00000001000222f0
mode = USER (SPP=0)
sepc : in user space
stval : INVALID address (unmapped?)
=============================================
--------------Dump Registers-----------------
Function Registers:
ra(x1) = 0x00000002007b5814()
user_sp(x2) = 0x0000000100022210()
gp(x3) = 0x0000000000000000()
tp(x4) = 0x0000000100022bd8()
Temporary Registers:
t0(x5) = 0x0000000000000035()
t1(x6) = 0x0000000000000004()
t2(x7) = 0x0000000000000000()
t3(x28) = 0x000000000000018f()
t4(x29) = 0x0000000000000001()
t5(x30) = 0x0000000000000001()
t6(x31) = 0x0000000000000001()
Saved Registers:
s0/fp(x8) = 0x00000001000222f0()
s1(x9) = 0x0000000200ab97b8()
s2(x18) = 0x0000000400000001()
s3(x19) = 0x0000000000000001()
s4(x20) = 0x0000000200ade2e8()
s5(x21) = 0x7ffffffffffffff8()
s6(x22) = 0x00000001000222a8()
s7(x23) = 0x0000000300015ac0()
s8(x24) = 0x0000000100022af8()
s9(x25) = 0x0000000200ade200()
s10(x26) = 0x0000000000000000()
s11(x27) = 0x0000000100000000()
Function Arguments Registers:
a0(x10) = 0x0000000000000001()
a1(x11) = 0x0000000000000000()
a2(x12) = 0x00000001000223a8()
a3(x13) = 0xfffffffffffff800()
a4(x14) = 0x0000000000000008()
a5(x15) = 0x0000000000000000()
a6(x16) = 0x0000000100022410()
a7(x17) = 0x0000000000000000()
sstatus = 0x8000000200046620
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 = 0x800000000000fffc
Current Page Table(Physical) = 0x000000000fffc000
Current ASID = 0x0000000000000000
Mode = Page-based 39-bit Virtual Addressing Mode
-----------------Dump OK---------------------
------------- Thread Info -------------------
name : face_detection.elf
status : 0x03
stack_addr : 0x0000000000680640
stack_size : 0x20000 (131072)
stack_top : 0x00000000006a0640
stack_used : 0xf40 (3904) = 2% of 131072 (fill=0x23)
------------- Code Around sepc --------------
0x2007b5806: <inaccessible>
0x2007b5808: <inaccessible>
0x2007b580a: <inaccessible>
0x2007b580c: <inaccessible>
0x2007b580e: <inaccessible>
0x2007b5810: <inaccessible>
0x2007b5812: <inaccessible>
0x2007b5814: <inaccessible>
0x2007b5816: <inaccessible>
0x2007b5818: <inaccessible>
0x2007b581a: <inaccessible>
0x2007b581c: <inaccessible>
0x2007b581e: <inaccessible>
0x2007b5820: <inaccessible>
0x2007b5822: <inaccessible>
0x2007b5824: <inaccessible>
0x2007b5826: <inaccessible>
------------- Frame Pointer Backtrace -------
#0 pc = 0x00000002007b5816
-- user-space backtrace not supported
------------- addr2line command --------------
riscv64-unknown-linux-musl-addr2line -e rtthread.elf -a -f 0x2007b5816
------------- Stack Memory Dump -------------
sp = 0x0000000100022210
0x00000001000221d0: <inaccessible>
0x00000001000221d8: <inaccessible>
0x00000001000221e0: <inaccessible>
0x00000001000221e8: <inaccessible>
0x00000001000221f0: <inaccessible>
0x00000001000221f8: <inaccessible>
0x0000000100022200: <inaccessible>
0x0000000100022208: <inaccessible>
0x0000000100022210: <inaccessible>
0x0000000100022218: <inaccessible>
0x0000000100022220: <inaccessible>
0x0000000100022228: <inaccessible>
0x0000000100022230: <inaccessible>
0x0000000100022238: <inaccessible>
0x0000000100022240: <inaccessible>
0x0000000100022248: <inaccessible>
0x0000000100022250: <inaccessible>
0x0000000100022258: <inaccessible>
0x0000000100022260: <inaccessible>
0x0000000100022268: <inaccessible>
0x0000000100022270: <inaccessible>
0x0000000100022278: <inaccessible>
0x0000000100022280: <inaccessible>
0x0000000100022288: <inaccessible>
0x0000000100022290: <inaccessible>
0x0000000100022298: <inaccessible>
0x00000001000222a0: <inaccessible>
0x00000001000222a8: <inaccessible>
0x00000001000222b0: <inaccessible>
0x00000001000222b8: <inaccessible>
0x00000001000222c0: <inaccessible>
0x00000001000222c8: <inaccessible>
------------- All Thread Stacks -------------
THREAD STACK_ADDR SIZE USED% STATUS
face_detection.elf 0x00680640 131072 2%
face_detection.elf 0x0065ca40 131072 2%
usbh_rtl8152_rx 0x00657940 4096 36%
cyw43 0x00653b00 4096 51%
mtp 0x0064b780 20480 6%
mtp_inty 0x00609980 20480 9%
usbh_hub0 0x006053c0 4096 49%
tshell 0x005ed940 81920 5%
thermal_detect_threa 0x005e61c0 10240 13%
auto_load_thread 0x005e0f40 10240 12%
mcm_task 0x005d6400 8192 15%
sdio_irq 0x005d0440 10240 17%
usage_thread 0x005af580 8192 16%
gpio_irq_to_user 0x0059eb40 20480 6%
gpio_debounce 0x00596fc0 20480 6%
sys workq 0x0058f240 20480 6%
wlan 0x0058b6c0 4096 31%
mmcsd_detect 0x0056e558 32768 57%
tcpip 0x00586240 10240 13%
etx 0x005651a0 10240 13%
erx 0x0055ff18 10240 13%
tsystem 0x00523080 16384 8%
tidle0 0x00529a80 16384 6%
timer 0x00530840 16384 7%
Total: 24 threads
riscv64-unknown-linux-musl-addr2line -e face_detection.elf -a -f 00000002007b5812
[E/DBG] User Fault, killing thread: face_detection.elf
,测试其他demo,比如yolo,只要图像输出和摄像头采集均运行异常都这样异常,而且很奇怪list_connector命令回应的类型很特别,