RTL8720DN和cs 运行hardfault

Wi-Fi 设备、Wi-Fi 低功耗设备、Wi-Fi BLE 双模设备、Ethernet设备、Ethernet+Wi-Fi设备等
Post Reply
leslieli
Posts: 134

Hard Fault Patch (Non-secure)
Enter CM BackTrace, SP 0x10039310

Firmware name: ./asdk/image/target_img2, hardware version: HW v1.0, software version: SW v1.0
Fault on thread wq_highpr

stact addr 0x10038640, size 0xfe4, top 0x10039388
dump_stack sp point 0x10039378, task sp 0x10039388

===== Thread stack information =====
addr: 10039378 data: fffffffd
addr: 1003937c data: e121ce0
addr: 10039380 data: 73
addr: 10039384 data: 0
addr: 10039388 data: 100395ac
addr: 1003938c data: e1213ba
addr: 10039390 data: 0
addr: 10039394 data: 0
addr: 10039398 data: 1
addr: 1003939c data: 0
addr: 100393a0 data: 0
addr: 100393a4 data: 3
addr: 100393a8 data: fffffffd
addr: 100393ac data: e121ce0
addr: 100393b0 data: 0
addr: 100393b4 data: 0
addr: 100393b8 data: 0
addr: 100393bc data: 0
addr: 100393c0 data: 0
addr: 100393c4 data: 0
addr: 100393c8 data: 0
addr: 100393cc data: 0
addr: 100393d0 data: 0
addr: 100393d4 data: 0
addr: 100393d8 data: 0
addr: 100393dc data: 0
addr: 100393e0 data: 0
addr: 100393e4 data: 0
addr: 100393e8 data: 0
addr: 100393ec data: 0
addr: 100393f0 data: 6f
addr: 100393f4 data: 10039428
addr: 100393f8 data: 0
addr: 100393fc data: 0
addr: 10039400 data: 1010a445
addr: 10039404 data: 1010a2bf
addr: 10039408 data: 1010cb0c
addr: 1003940c data: 1000000
addr: 10039410 data: 0
addr: 10039414 data: 0
addr: 10039418 data: 0
addr: 1003941c data: 0
addr: 10039420 data: 0
addr: 10039424 data: 39333400
addr: 10039428 data: e10ae3a
addr: 1003942c data: 2
addr: 10039430 data: 10039425
addr: 10039434 data: 3
addr: 10039438 data: 10039427
addr: 1003943c data: 1
addr: 10039440 data: 0
addr: 10039444 data: 0
addr: 10039448 data: 0
addr: 1003944c data: 0
addr: 10039450 data: 0
addr: 10039454 data: 164
addr: 10039458 data: 4
addr: 1003945c data: e0cc665
addr: 10039460 data: 1002ddb6
addr: 10039464 data: 100394e4
addr: 10039468 data: 3cd
addr: 1003946c data: 3d9
addr: 10039470 data: 10008ed0
addr: 10039474 data: 7
addr: 10039478 data: 0
addr: 1003947c data: 1002dd60
addr: 10039480 data: 4
addr: 10039484 data: 1b7
addr: 10039488 data: 0
addr: 1003948c data: e0cc665
addr: 10039490 data: 1002ddab
addr: 10039494 data: 10039514
addr: 10039498 data: 3d8
addr: 1003949c data: ffff0208
addr: 100394a0 data: 1002ddab
addr: 100394a4 data: 3d8
addr: 100394a8 data: 1002dd84
addr: 100394ac data: 3ff
addr: 100394b0 data: e0c1e91
addr: 100394b4 data: 0
addr: 100394b8 data: 1002eb20
addr: 100394bc data: ffffffff
addr: 100394c0 data: 0
addr: 100394c4 data: 1002e340
addr: 100394c8 data: 1002eb20
addr: 100394cc data: 10039544
addr: 100394d0 data: e1212c8
addr: 100394d4 data: 1002dd60
addr: 100394d8 data: 4
addr: 100394dc data: e0d8a75
addr: 100394e0 data: e0c1e91
addr: 100394e4 data: 7
addr: 100394e8 data: 1000bc90
addr: 100394ec data: e0c1e99
addr: 100394f0 data: e0c1e91
addr: 100394f4 data: 10039544
addr: 100394f8 data: e1172d0
addr: 100394fc data: 1000bc60
addr: 10039500 data: 27
addr: 10039504 data: e0cc68b
addr: 10039508 data: 100395a8
addr: 1003950c data: 3d9
addr: 10039510 data: e1213b8
addr: 10039514 data: e06fab9
addr: 10039518 data: 1
addr: 1003951c data: 8
addr: 10039520 data: 0
addr: 10039524 data: 7
addr: 10039528 data: e1172d0
addr: 1003952c data: e0f432c
addr: 10039530 data: 2eb
addr: 10039534 data: e1212c8
addr: 10039538 data: 1b7
addr: 1003953c data: 8080808
addr: 10039540 data: 1002eb20
addr: 10039544 data: 7
addr: 10039548 data: 0
addr: 1003954c data: 8
addr: 10039550 data: 1
addr: 10039554 data: 0
addr: 10039558 data: 46
addr: 1003955c data: 4
addr: 10039560 data: 1000f46c
addr: 10039564 data: 100395a8
addr: 10039568 data: e1213b8
addr: 1003956c data: 10008630
addr: 10039570 data: 7
addr: 10039574 data: 8080808
addr: 10039578 data: 9090909
addr: 1003957c data: 10101010
addr: 10039580 data: 11111111
addr: 10039584 data: e06fbf3
addr: 10039588 data: e1213b8
addr: 1003958c data: 100395a8
addr: 10039590 data: e10dbac
addr: 10039594 data: 100395a8
addr: 10039598 data: 5
addr: 1003959c data: 1000d02c
addr: 100395a0 data: e0c3405
addr: 100395a4 data: e1213b8
addr: 100395a8 data: 5
addr: 100395ac data: e07f56d
addr: 100395b0 data: 0
addr: 100395b4 data: e07f575
addr: 100395b8 data: 5
addr: 100395bc data: 0
addr: 100395c0 data: ffff96fb
addr: 100395c4 data: 50537
addr: 100395c8 data: a
addr: 100395cc data: 1002e940
addr: 100395d0 data: 0
addr: 100395d4 data: 0
addr: 100395d8 data: 1002eadc
addr: 100395dc data: e08345f
addr: 100395e0 data: e07e835
addr: 100395e4 data: 0
addr: 100395e8 data: 4040404
addr: 100395ec data: 5050505
addr: 100395f0 data: 1002eac0
addr: 100395f4 data: e082ddf
addr: 100395f8 data: 1002eadc
addr: 100395fc data: 1002eb20
addr: 10039600 data: 1002eac0
addr: 10039604 data: 1002eb20
addr: 10039608 data: 2020202
addr: 1003960c data: 4040404
addr: 10039610 data: 5050505
addr: 10039614 data: 6060606
addr: 10039618 data: 7070707
addr: 1003961c data: e0d839d

addr: 10039620 data: a5a5a5a5

=================== Registers information ====================
R0 : ffffffff
R1 : 8
R2 : 0
R3 : deadbeef

R12: 1010101
LR : e0c957b
PC : e0c84dc
PSR: 21000000

==============================================================

stact addr 0x10038640, size 0xfe4, top 0x10039388
Show more call stack info by run: addr2line -e ./asdk/image/target_img2.axf -f 0e0c84dc 0e0c9577 0e121cdc 0e1213b6 0e121cdc 0e10ae36 0e0cc661 0e0cc661 0e0c1e8d 0e1212c4 0e0d8a71 0e0c1e8d 0e0c1e95 0e0c1e8d 0e1172cc 0e0cc687 0e1213b4 0e06fab5 0e1172cc 0e0f4328 0e1212c4 0e1213b4 0e06fbef 0e1213b4 0e10dba8 0e0c3401 0e1213b4 0e07f569 0e07f571 0e08345b 0e07e831 0e082ddb 0e0d8399
Exit CM BackTrace

这个是hardfault的原因 出错在wq_wq_highpr

愚者千虑必有一得
Posts: 499

Re: RTL8720DN和cs 运行hardfault

你用的是哪个版本?cs/dn最近又一个新版本发布。

leslieli
Posts: 134

Re: RTL8720DN和cs 运行hardfault

3.8.22

leslieli
Posts: 134

Re: RTL8720DN和cs 运行hardfault

愚者千虑必有一得 2024年 Aug 7日 20:35

你用的是哪个版本?cs/dn最近又一个新版本发布。

就是最新的3.8.22 问题是出在 我注册一个 tuya_iot_reg_get_wf_nw_stat_cb(nw_stat_cb); 然后在里面处理了 闪灯 这个我调用了 tdl_led 的库 这个程序在bk7231运行 正常 在这里运行会到wq那个hardfault

fangweng
Posts: 5

Re: RTL8720DN和cs 运行hardfault

addr2line -e ./asdk/image/target_img2.axf -f 0e0c84dc 0e0c9577 0e121cdc 0e1213b6 0e121cdc 0e10ae36 0e0cc661 0e0cc661 0e0c1e8d 0e1212c4 0e0d8a71 0e0c1e8d 0e0c1e95 0e0c1e8d 0e1172cc 0e0cc687 0e1213b4 0e06fab5 0e1172cc 0e0f4328 0e1212c4 0e1213b4 0e06fbef 0e1213b4 0e10dba8 0e0c3401 0e1213b4 0e07f569 0e07f571 0e08345b 0e07e831 0e082ddb 0e0d8399
请把这个堆栈输出看下,以便我们进一步定位,谢谢

leslieli
Posts: 134

Re: RTL8720DN和cs 运行hardfault

fangweng 2024年 Aug 8日 09:39

addr2line -e ./asdk/image/target_img2.axf -f 0e0c84dc 0e0c9577 0e121cdc 0e1213b6 0e121cdc 0e10ae36 0e0cc661 0e0cc661 0e0c1e8d 0e1212c4 0e0d8a71 0e0c1e8d 0e0c1e95 0e0c1e8d 0e1172cc 0e0cc687 0e1213b4 0e06fab5 0e1172cc 0e0f4328 0e1212c4 0e1213b4 0e06fbef 0e1213b4 0e10dba8 0e0c3401 0e1213b4 0e07f569 0e07f571 0e08345b 0e07e831 0e082ddb 0e0d8399
请把这个堆栈输出看下,以便我们进一步定位,谢谢

已解决 是log这里的问题

fangweng
Posts: 5

Re: RTL8720DN和cs 运行hardfault

leslieli 2024年 Aug 8日 15:08
fangweng 2024年 Aug 8日 09:39

addr2line -e ./asdk/image/target_img2.axf -f 0e0c84dc 0e0c9577 0e121cdc 0e1213b6 0e121cdc 0e10ae36 0e0cc661 0e0cc661 0e0c1e8d 0e1212c4 0e0d8a71 0e0c1e8d 0e0c1e95 0e0c1e8d 0e1172cc 0e0cc687 0e1213b4 0e06fab5 0e1172cc 0e0f4328 0e1212c4 0e1213b4 0e06fbef 0e1213b4 0e10dba8 0e0c3401 0e1213b4 0e07f569 0e07f571 0e08345b 0e07e831 0e082ddb 0e0d8399
请把这个堆栈输出看下,以便我们进一步定位,谢谢

已解决 是log这里的问题

好的

Post Reply