庐山派反复枚举失败重启

Viewed 29

问题描述


可能原因1:电脑蓝屏过一次,我尝试了重新安装zadig那个驱动
可能原因2:
调用了一段函数:

from machine import Pin
# 尝试遍历引脚默认电平
for index in range(0,64):
    pin = Pin(index, Pin.OUT, pull=Pin.PULL_NONE, drive=7)
    print(f"{index}={pin.value()}")

发现部分引脚提示如:

pin(2) is not a GPIO pin, func=101, Please notice it.
2=0

然后重新插拔上电后就反复枚举失败,启动不来,尝试了重新烧录固件,换TF卡无效果
(原理图里0-63引脚没有什么重要的东西啊,除了基础串口外设、boot、TF、摄像头和普通IO)

image.png

不插卡时,USB枚举成功显示K230 USB Boot Device,调试串口0打印

boot failed with exit code 19

插卡时不断重新枚举,调试串口0打印:

\0
U-Boot SPL 2022.10-00009-g61db2e60 (Mar 10 2025 - 16:09:24 +0800)
lpddr4 2660
00000000: PMU Major Msg: End of CA training                                            
00000000: PMU Major Msg: End of initialization                                         
00000000: PMU Major Msg: End of read enable training                                   
00000000: PMU Major Msg: End of fine write leveling                                    
00000000: PMU Major Msg: End of read dq deskew training                                
00000000: PMU Major Msg: End of MPR read delay center optimization                     
00000000: PMU Major Msg: End of Write leveling coarse delay                            
00000000: PMU Major Msg: End of write delay center optimization                        
00000000: PMU Major Msg: End of read delay center optimization                         
00000000: PMU Major Msg: End of max read latency training                              
00000000: PMU Major Msg: Firmware run has completed                                    
image: uboot load to 1000000 compress =1 src 2aaaacff len=49cd8 


U-Boot 2022.10-00009-g61db2e60 (Mar 10 2025 - 16:09:24 +0800)

CPU:   rv64imafdcvsu
Model: kendryte k230 canmv lckfb
DRAM:  1 GiB
Core:  26 devices, 13 uclasses, devicetree: embed
MMC:   mmc0@91580000: 0, mmc1@91581000: 1
Loading Environment from MMC... OK
In:    serial@91400000
Out:   serial@91400000
Err:   serial@91400000
Net:   No ethernet found.
Hit any key to stop autoboot:  0 
image: rtt load to 0 compress =1 src 2aaaad07 len=1930cf 
Jump to big hart

OpenSBI v1.2.2
heap: [0x004f4600 - 0x044f4600], size 65536 KB
page: [0x044f4608 - 0x1fffec00], size 453673 KB
lwIP-2.1.2 initialized!
[I/SDIO] SD card capacity 7801856 KB.
found part[0], be[E/cst128] drv_touch_probe_cst128->140

[E/drv_touch] touch probe failed.
g.\028->140
\00, size: 10.0MB
found part[1], begin: 62914560, size: 500.0MB
found part[2], begin: 1073741824, size: 6.450GB
[I/sal.skt] Socket Abstraction Layer initialize success.
Can't find sensor on csi0
Can't find sensor on csi1
Can't find sensor on csi2
vicap_mcm_initno vg_lite_init library!

#############SDK VERSION######################################
SDK   : v1.2.2-20250310-160948-ubuntu-ubuntu-virtual-machine-955c461
CanMV : v1.2.2-20250310-160948-ubuntu-ubuntu-virtual-machine-1dcb94c
nncase: 2.9.0
##############################################################
msh />[E/USB] standard request error


提示USB有问题,但是通过USB又可以烧录固件,但是正常启动就不可以

复现步骤


可能原因1:电脑蓝屏过一次,我尝试了重新安装zadig那个驱动
可能原因2:
调用了一段函数:

from machine import Pin
# 尝试遍历引脚默认电平
for index in range(0,64):
    pin = Pin(index, Pin.OUT, pull=Pin.PULL_NONE, drive=7)
    print(f"{index}={pin.value()}")

发现部分引脚提示如:

pin(2) is not a GPIO pin, func=101, Please notice it.
2=0

然后重新插拔上电后就反复枚举失败,启动不来

硬件板卡


庐山派

1 Answers

你好,这个问题看着更像是供电不足导致反复重启。请尝试换个线或者换个usb口。

之前一直用这根线做的调试,换了不同的USB口,不好使后尝试过换线、换别的电脑尝试都起不来,测了供电得0.8、1.1、1.8、3.3得电压正常,OUT0输出1.8正常,就是起不来,会是因为调用了那段程序损坏了IO吗。 MPy 的 REPL运行的不会保存的吧

下载daily build固件测试。

下载了CanMV_K230_LCKFB_micropython_v1.4-2-g873d625_nncase_v2.9.0.img,还是一样反复重启