问题描述
可能原因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)
不插卡时,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[31m[E/cst128] drv_touch_probe_cst128->140
[0m
[31m[E/drv_touch] touch probe failed.[0m
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 />[31m[E/USB] standard request error
[0m
提示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
然后重新插拔上电后就反复枚举失败,启动不来
硬件板卡
庐山派