跳转至

常见问题及解决方案*

本页收录常见问题及解决方案

Q: GX8008(C) 串口频繁打印 Receive FIFO underflow interrupt.
A: 该报错出自 mcu 的接口:flash_spi_irq_handler,出此问题的原因是可能是程序访问了非法地址,需要软件工程师查询所修改代码对内存的访问是否正常。


Q 使用UAC功能时卡死并出现此条打印 ERR : f_audio_set_alt invalid intf : 0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Voice Signal Preprocess
Copyright (C) 2001-2019 NationalChip Co., Ltd
ALL RIGHTS RESERVED!
Hello MCU!
This is debug 7243-4mic audio mcu develop version:1.0.1.08
MCU <-> DSP Message Version: [20180517]
Board Model:[leo_gx8008_poros_1v]
MCU Version:[3d0d701-dirty]
Build Date: [2022-04-12, 15:40:21]
CHIP NAME:  [8008-NNNCA]
PUBLIC ID:  [6def05000010007e]
[IMAGEINFO]image version    0x10001
[IMAGEINFO]image crc32      0x80da05a2
[IMAGEINFO]imageinfo crc32  0x2a91709f
[UAC]Init UAC mode
[VPA] dsp_header.magic = 50534456
[VPA] dsp_header.message_version = 20180517
[VPA] dsp_header.xip_size = 0
[VPA] dsp_header.ptcm_size = 65536
[VPA] dsp_header.dtcm_size = 65536
[VPA] dsp_header.sram_size = 10368
[VPA] dsp_header.sram_base = 44000
downstream : max packet size : 64, packet size : 0
upstream : max packet size : 384, packet size : 192
Suspend
[UAC/CORE] UAC CORE CONFIG : 
[UAC/CORE]     [Clock Sync Policy] : playback
[UAC/CORE]     [capture]  : enabled
[UAC/CORE]         sample_rate : 16000, channel : 6, bit width : 16
[UAC/CORE]     [playback] : enabled
[UAC/CORE]         sample_rate : 16000, channel : 2, bit width : 16
[UAC]Init UAC mode done with 370 ms
[UAC/CORE] Status Change : IDLE, Timestamps : 1367452
Reset
Suspend
Reset
<UAC 1.0> ERR : f_audio_set_alt invalid intf : 0
[UAC/CORE] playback : off, record : off
[UAC/CORE] Status Change : IDLE, Timestamps : 1740102
[UAC/CORE] playback : off, record : off
A 如下两个选项至少需要勾选一个



Q: DSP编译报错_1

    You need to either specify the name of a registered Xtensa core (with
    the --xtensa-core option or the XTENSA_CORE environment variable) or
    specify a different registry of Xtensa cores (with the --xtensa-system
    option or the XTENSA_SYSTEM environment variable).
    [Preparing vsp/dsp ...]
    Error: the "GXHifi4_170719A_G1708" core is not in the current Xtensa core registry.
A: 需在 make menuconfig 的编译配置中正确指定您自己的 DSP 编译工具路径
d


Q: 串口烧录出错_1

$ sudo /home/sdisk/jialp/OTP/bootx_v1.5.37/bootx -m leo_mini -t s -d /dev/ttyUSB2  -c "download 0 output/mcu_nor.bin;reboot"
Version : v1.5.37 (20220222)
NationalChip AIoT Download Tools
Copyright (C) 2001-2022 NationalChip Co., Ltd
ALL RIGHTS RESERVED!

wait ROM request... please power on or restart the board...
Found serial: /dev/ttyUSB2
downloading [1/2] : 
[==========][100%]
[ERROR] : BootROM error: wait for "GET",please check UART receive !

A: USB-HUB 异常或 USB 异常,可能是由于 PC 长时间未重启,建议重启 PC。


Q 第一次执行 make menuconfig 出现如下报错:

    $ make menuconfig
    make[1]: Entering directory '/home/xpf/vsp_sdk/scripts/kconfig'
    cp zconf.hash.c_shipped zconf.hash.c
    cp zconf.lex.c_shipped zconf.lex.c
    cp zconf.tab.c_shipped zconf.tab.c
    make[1]: Leaving directory '/home/xpf/vsp_sdk/scripts/kconfig'
    make[1]: Entering directory '/home/xpf/vsp_sdk/scripts/kconfig'
    cp zconf.hash.c_shipped zconf.hash.c
    cp zconf.lex.c_shipped zconf.lex.c
    cp zconf.tab.c_shipped zconf.tab.c
    gcc -c -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -DLOCALE -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -lncurses lxdialog/menubox.c -o lxdialog/menubox.o
    In file included from lxdialog/menubox.c:59:0:
    lxdialog/dialog.h:38:20: fatal error: ncurses.h: 没有那个文件或目录
    compilation terminated.
    Makefile:9: recipe for target 'lxdialog/menubox.o' failed
    make[1]: *** [lxdialog/menubox.o] Error 1
    make[1]: Leaving directory '/home/xpf/vsp_sdk/scripts/kconfig'
    Makefile:45: recipe for target '/home/xpf/vsp_sdk/scripts/kconfig/mconf' failed
    make: *** [/home/xpf/vsp_sdk/scripts/kconfig/mconf] Error 2
d

A 缺少库,请执行: sudo apt install libncurses5-dev