【求救】D1-哪吒开发板启动异常
-
D1-nezha开发板启动异常,上电的时候log卡住不动了,电源灯亮,但是系统固件里写好的绿灯闪烁没有亮。
复现概率:非必现,多重复几次拔插电回出现
串口log:[188]HELLO! BOOT0 is starting! [191]BOOT0 commit : 2337244-dirty OpenSBI v0.6 ____ _____ ____ _____ / __ \ / ____| _ \_ _| | | | |_ __ ___ _ __ | (___ | |_) || | | | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |__| | |_) | __/ | | |____) | |_) || |_ \____/| .__/ \___|_| |_|_____/|____/_____| | | |_| Platform Name : T-HEAD Xuantie Platform Platform HART Features : RV64ACDFIMSUVX Platform Max HARTs : 1 Current Hart : 0 Firmware Base : 0x40000400 Firmware Size : 75 KB Runtime SBI Version : 0.2 MIDELEG : 0x0000000000000222 MEDELEG : 0x000000000000b1ff PMP0 : 0x0000000040000000-0x000000004001ffff (A) PMP1 : 0x0000000040000000-0x000000007fffffff (A,R,W,X) PMP2 : 0x0000000080000000-0x00000000bfffffff (A,R, U-Boot 2018.05-00107-gc22c3d075c (Apr 24 2021 - 07:52:58 +0000) Allwinner Technology [00.429]DRAM: 1 GiB [00.431]Relocation Offset is: 3deeb000 [00.435]secure enable bit: 0 [00.438]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz initr_ledc unable to find ledc node in device tree. [00.449]flash init start [00.451]workmode = 0,storage type = 0 [00.457]sunxi-spinand-phy: not detect any munufacture from id table [00.464]sunxi-spinand-phy: get spi-nand Model from fdt fail [00.469]sunxi-spinand-phy: get phy info from fdt fail device nand0 <nand>, # parts = 4 #: name size offset mask_flags 0: boot0 0x00100000 0x00000000 1 1: uboot 0x00300000 0x00100000 1 2: secure_storage 0x00100000 0x00400000 1 3: sys 0x0fb00000 0x00500000 0 active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000 defaults: mtdids : nand0=nand mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys) [00.807]ubi0: attaching mtd4 [01.204]ubi0: scanning is finished [01.213]ubi0: attached mtd4 (name "sys", size 251 MiB) [01.218]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes [01.224]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048 [01.230]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [01.237]ubi0: good PEBs: 1004, bad PEBs: 0, corrupted PEBs: 0 [01.242]ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128 [01.249]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0 [01.256]ubi0: available PEBs: 0, total reserved PEBs: 1004, PEBs reserved for bad PEB handling: 40 [01.265]sunxi flash init ok [01.268]line:714 init_clocks __clk_init: clk pll_periph0x2 already initialized register fix_factor clk error [01.278]drv_disp_init partno erro : can't find partition bootloader ** Unable to read file lcd_compatible_index.txt ** [01.515]do_fat_fsload for lcd config failed request pwm success, pwm2:pwm2:0x2000c00. [01.529]drv_disp_init finish [01.532]boot_gui_init:start [01.535]set disp.dev2_output_type fail. using defval=0 [01.726]boot_gui_init:finish [02.139]LCD open finish partno erro : can't find partition bootloader 54 bytes read in 0 ms [02.300]bmp_name=bootlogo.bmp size 38454 38454 bytes read in 4 ms (9.2 MiB/s)
-
对比了一下log,发展这个log和正常的启动log是一样的,这里主要是显示/屏幕部分的打印,没有异常,只是突然断掉,怀疑是供电不稳定,建议使用稳定的供电电源。板子上有两个type-c USB口,一个是5V -2A供电的,一个是数据传输的,数据传输那个也能从PC那边供电,但是如果插的外设比较多的话,就要插上5V2A供电USB
-
这个问题我们在调试的时候也发现了,可能出现在两个位置,第一个是boot完以后,要打开LCD;别一个位置就是帖子里面所描述的位置。出现也不是必然,有一定的概率。最终确定是由于上电时序问题导致的,看一下手册上的上电时序要求,按照手册的需要改,大概率可以解决这个问题。
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号