Skip to content

Common problems and solutions*

This page contains common problems and solutions

Q: GX8008(C) serial port frequently prints Receive FIFO underflow interrupt.
A: The error comes from the MCU interface: flash_spi_irq_handler. The reason for this problem may be that the program has accessed illegal address, and software engineers need to query the memory access of the modified code Is it normal.


Q When using the UAC function, it is stuck and this message appears 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 At least one of the following two options needs to be checked



Q: DSP compilation error _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: You need to correctly specify your own DSP compilation tool path in the compilation configuration of make menuconfig d


Q: Serial programming error_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 abnormality or USB abnormality, it may be because the PC has not been restarted for a long time, it is recommended to restart the PC.


Q The following error occurs when I execute make menuconfig for the first time:

     $ 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: No such file or directory
     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 Missing library, please execute: sudo apt install libncurses5-dev