熬夜的
November 22, 2025, 7:35am
1
SF32LB58x 经典蓝牙不可被发现问题求助
芯片型号 : SF32LB58x
SDK版本 : 2.4.4 (build ede7729e)
SDK中 music_sink 示例程序
问题概述
使用 SF32LB58x 开发板开发蓝牙音频应用时,经典蓝牙无法被手机搜索到 。
手机完全搜不到该设备
硬件环境
开发板信息
芯片 : SF32LB58x
开发板 : sf32lb58-lcd_a128r32n1
天线 : 外置天线,已更换8+根,问题依旧
供电 : USB Type-C,红色LED正常
【图片1:开发板正面照片】
【图片2:天线连接特写】
软件环境
SDK : 2.4.4 (build ede7729e)
工具 : scons + gcc + sftool
参考 : music_sink示例
问题详细描述
之前在别的贴子看到说需要加如下程序 工程中本就存在
# Add LCPU project
AddLCPU(SIFLI_SDK,rtconfig.CHIP,"../src/lcpu_img.c")
启动日志(实际输出)
\ | /
- SiFli Corporation
/ | \ build on Nov 22 2025, 2.4.4 build ede7729e
2020 - 2022 Copyright by SiFli team
mount /dev sucess
[I/FAL] Flash Abstraction Layer (V0.5.99) initialize success.
[D/USBD] No class register on usb device
[1388] I/drv.rtc main: PSCLR=0x80000100 DivAI=128 DivAF=0 B=256
[1415] I/drv.rtc main: RTC use LXT RTC_CR=00000000
[1439] I/drv.rtc main: Init RTC, wake = 0
[1604] I/drv.sdhci main: rt_hw_sdmmc_init 2 begin
[2283] I/drv.sdhci main: host version = 2
[2303] I/drv.sdhci main: SDHCI clock 288000000
[2324] I/drv.sdhci main: Maximum Clock Supported by HOST : 288 MHz
[2353] I/drv.sdhci main: host minclock 400000 host maxclock 288000000
[2384] I/drv.sdhci main: SDHCI controller on sdmmc2 using DMA
[2411] I/drv.sdhci main: Add host success
[2431] I/drv.sdhci main: rt_hw_sdmmc_init 2 done
[2454] I/drv.audprc main: init 00 ADC_PATH_CFG0 0x924
[2478] I/drv.audprc main: HAL_AUDPRC_Init res 0
[2501] I/drv.audcodec main: HAL_AUDCODEC_Init res 0
[2525] I/TOUCH main: Regist touch screen driver, probe=0x100080bd
call par CFG1(35bb)
fc 11, xtal 2000, pll 1997
call par CFG1(35bb)
fc 9, xtal 2000, pll 1996
mount fs on flash to root fail
[2699] E/DFS main: Device (root) was not found
dfs_mkfs elm flash fail
[2737] I/sibles main: enable BLE Core. Lib ver: bt.2.0.188f5931
[2764] I/audio audiosvr: audio server run
[2783] I/audio bt_downv: audio_btdownlink run
[2804] E/nvds mbox: nvds init failed !!!
[2828] D/nvds mbox: NVDS Update Addr res 6, addr 80-06-00-52-fd-5c
D/HEX nvds_cache: 0000-0010: 01 06 80 06 00 52 FD 5C .....R.\
[2888] E/nvds mbox: nvds(0) flush failed
D/HEX nvds_cache: 0000-0010: 0D 02 7C 15 ..|.
[2939] E/nvds mbox: nvds(0) flush failed
D/HEX nvds_cache: 0000-0010: 0E 02 80 07 ....
[2990] E/nvds mbox: nvds(0) flush failed
D/HEX nvds_cache: 0000-0010: AE 10 2D CF 46 29 04 B4 78 D8 68 A7 FF 3F 2B F1 ..-.F)..x.h..?+.
0010-0020: FC D9 ..
[3077] E/nvds mbox: nvds(1) flush failed
[47078] D/sibles_utils mbox: delay
msh />clock 0Hz busmode 1 powermode 1 cs 0 Vdd 23 width 0
clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 23 width 0
[47445] I/drv.sdhci mmcsd_de: sdhci_set_clock2 400000
[47784] I/SDIO mmcsd_de: detect SDIO begin
clock 400000Hz busmode 1 powermode 2 cs 1 Vdd 23 width 0
clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 23 width 0
[47934] I/SDIO mmcsd_de: detect SD card BEGIN
clock 400000Hz busmode 1 powermode 2 cs 1 Vdd 23 width 0
clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 23 width 0
clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 15 width 0
clock 400000Hz busmode 1 powermode 2 cs 1 Vdd 15 width 0
clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 15 width 0
clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 15 width 0
[51241] I/SDIO mmcsd_de: SD card capacity 3872256 KB.
Before scr buf 0x2001a344: scr 0x01803502, 0x00000000
After scr 0x02358001, 0x00000000
[51330] I/SDIO mmcsd_de: SD card version 2, bus width 5.
hs flag 0x3, card max 50000000
clock 50000000Hz busmode 2 powermode 2 cs 0 Vdd 15 width 0
[51646] I/drv.sdhci mmcsd_de: sdhci_set_clock2 48000000
[51671] I/SDIO mmcsd_de: 4 bit mode: host 0x31, card 0x5
clock 50000000Hz busmode 2 powermode 2 cs 0 Vdd 15 width 2
[51719] I/drv.sdhci mmcsd_de: sdhci_set_clock2 48000000
[51744] I/drv.sdhci mmcsd_de: Enable DDR mode 0
[51766] I/drv.sdhci mmcsd_de: Set to 4 line mode
found part[0], begin: 16384, size: 3.709GB
[52171] I/SDIO mmcsd_de: detect SD card DONE
[79846] D/bt_common mbox: svc_set init_gainst_data 606
[79871] D/bt_common mbox: [SPP_DEBUG]spp_uuid_header = 0x2001ff9c,spp_uuid_list = 0x2001ff9c,st = 0
[79908] D/bt_common mbox: hfp state change new_sate 0x 0,old_state 0xff
[79935] D/bt_common mbox: hfp_hf_init_link_settings: 4
[79956] D/bt_common mbox: AG state change new_sate 0x 0,old_state 0x 0
[79985] D/bt_common mbox: hid_init
[80000] D/bt_common mbox: bt_gatt_update_state from 0x 0 to 0x 0
[80025] D/bt_common mbox: bt_dis_update_ctrl_state state 0x 0
[80049] D/bt_common mbox: bt_l2cap_profile_init
######################################################
## ##
## BTS2 Demo Main Menu ##
## 1. Generic Command ##
## 6. A2DP Sink ##
## 8. L2CAP bqb test ##
## p. AVRCP ##
## s. Show Menu ##
## q. Exit ##
## ##
######################################################
[80290] E/NO_TAG mbox: read bt bonded failed!
[80314] I/ble_cm mbox: read_bond_infor_from_flash: 1
le p256 nvds get 1
[264902] I/NO_TAG main: BT/BLE stack and profile init failed
##疑问
是由于LB58系列需要特殊的设置吗?我把手册之类的喂给AI也没有得到解决,希望可以得到帮助 或者是否有针对LB58x模组可用的示例程序让我判断是否硬件故障,感谢帮助 如需提供其他文件 请告诉我
编译用的板子是哪块, sf32lb58-lcd_a128r32n1_dsi吗
熬夜的
November 23, 2025, 12:53am
3
是的 A128R32我看里面只有这一个_dsi后缀的
看上去像是小核没有跑起来,看工程配置文件里确实已经编译了小核,方便的话把另外一个串口的log也贴一下,我们也跑下这块板子看看
熬夜的
November 23, 2025, 12:16pm
5
以下是编译信息 和烧录信息,比较奇怪的是当前板子应该是NAND方式烧录 但是无论是sftool_param.json 还是uart_download.bat指令都指定的是NOR
CC build_sf32lb58-lcd_a128r32n1_dsi_hcpu\sifli_sdk\rtos\kernel\components\drivers\src\ringblk_buf.o
CC build_sf32lb58-lcd_a128r32n1_dsi_hcpu\sifli_sdk\rtos\kernel\components\drivers\src\ringbuffer.o
CC build_sf32lb58-lcd_a128r32n1_dsi_hcpu\sifli_sdk\rtos\kernel\components\drivers\src\waitqueue.o
CC build_sf32lb58-lcd_a128r32n1_dsi_hcpu\sifli_sdk\rtos\kernel\components\drivers\src\workqueue.o
Generating build_sf32lb58-lcd_a128r32n1_dsi_hcpu\link_copy.lds ...
Generating build_sf32lb58-lcd_a128r32n1_dsi_hcpu\ftab\link_copy.lds ...
Building compilation database build_sf32lb58-lcd_a128r32n1_dsi_hcpu\ftab\compile_commands.json
Building compilation database build_sf32lb58-lcd_a128r32n1_dsi_hcpu\lcpu\compile_commands.json
Generating build_sf32lb58-lcd_a128r32n1_dsi_hcpu\lcpu\lcpu.asm ...
LINK build_sf32lb58-lcd_a128r32n1_dsi_hcpu\main.elf
d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: build_sf32lb58-lcd_a128r32n1_dsi_hcpu\main.elf has a LOAD segment with RWX permissions
Generating build_sf32lb58-lcd_a128r32n1_dsi_hcpu\main.bin ...
Generating build_sf32lb58-lcd_a128r32n1_dsi_hcpu\main.asm ...
Generating build_sf32lb58-lcd_a128r32n1_dsi_hcpu\main.hex ...
Generating build_sf32lb58-lcd_a128r32n1_dsi_hcpu\ftab\board\ftab.c ...
WARNING: img "acpu" not found
WARNING: img info is not defined for ftab item "acpu_region1", ignored
CC build_sf32lb58-lcd_a128r32n1_dsi_hcpu\ftab\board\ftab.o
LINK build_sf32lb58-lcd_a128r32n1_dsi_hcpu\ftab\ftab.elf
d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/../../../../arm-none-eabi/bin/ld.exe: d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/thumb/v8-m.main+fp/hard\libg_nano.a(libc_a-closer.o): in function `_close_r':
closer.c:(.text._close_r+0xc): warning: _close is not implemented and will always fail
d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/../../../../arm-none-eabi/bin/ld.exe: d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/thumb/v8-m.main+fp/hard\libg_nano.a(libc_a-closer.o): note: the message above does not take linker garbage collection into account
d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/../../../../arm-none-eabi/bin/ld.exe: d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/thumb/v8-m.main+fp/hard\libg_nano.a(libc_a-lseekr.o): in function `_lseek_r':
lseekr.c:(.text._lseek_r+0x10): warning: _lseek is not implemented and will always fail
d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/../../../../arm-none-eabi/bin/ld.exe: d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/thumb/v8-m.main+fp/hard\libg_nano.a(libc_a-lseekr.o): note: the message above does not take linker garbage collection into account
d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/../../../../arm-none-eabi/bin/ld.exe: d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/thumb/v8-m.main+fp/hard\libg_nano.a(libc_a-readr.o): in function `_read_r':
readr.c:(.text._read_r+0x10): warning: _read is not implemented and will always fail
d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/../../../../arm-none-eabi/bin/ld.exe: d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/thumb/v8-m.main+fp/hard\libg_nano.a(libc_a-readr.o): note: the message above does not take linker garbage collection into account
d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/../../../../arm-none-eabi/bin/ld.exe: d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/thumb/v8-m.main+fp/hard\libg_nano.a(libc_a-writer.o): in function `_write_r':
writer.c:(.text._write_r+0x10): warning: _write is not implemented and will always fail
d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/../../../../arm-none-eabi/bin/ld.exe: d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/thumb/v8-m.main+fp/hard\libg_nano.a(libc_a-writer.o): note: the message above does not take linker garbage collection into account
d:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/SDK_TOOLS/tools/arm-none-eabi-gcc/14.2.1/bin/../lib/gcc/arm-none-eabi/14.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol entry; defaulting to 1c000000
Generating build_sf32lb58-lcd_a128r32n1_dsi_hcpu\ftab\ftab.hex ...
Generating build_sf32lb58-lcd_a128r32n1_dsi_hcpu\ftab\ftab.bin ...
Generating build_sf32lb58-lcd_a128r32n1_dsi_hcpu\ftab\ftab.asm ...
Generating build_sf32lb58-lcd_a128r32n1_dsi_hcpu\download.bat ...
Generated sftool param: build_sf32lb58-lcd_a128r32n1_dsi_hcpu/sftool_param.json
scons: done building targets.
PS D:\Downloads\SiFli-SDK-2.4.3\example\bt\music_sink\project> cd "d:\Downloads\SiFli-SDK-2.4.3\example\bt\music_sink\project"
PS D:\Downloads\SiFli-SDK-2.4.3\example\bt\music_sink\project> sftool -p COM5 -c SF32LB58 -b 1000000 -m nand write_flash --verify "d:\Downloads\SiFli-SDK-2.4.3\example\bt\music_sink\project\build_sf32lb58-lcd_a128r32n1_dsi_hcpu\bootloader\bootloader.bin@0x1C020000" "d:\Downloads\SiFli-SDK-2.4.3\example\bt\music_sink\project\build_sf32lb58-lcd_a128r32n1_dsi_hcpu\main.bin@0x68000000" "d:\Downloads\SiFli-SDK-2.4.3\example\bt\music_sink\project\build_sf32lb58-lcd_a128r32n1_dsi_hcpu\ftab\ftab.bin@0x1C000000"; $sifli_command_exit = $LASTEXITCODE; Set-Content -Path "C:\Users\48036\AppData\Local\Temp\sifli-sifli__download-0901b4f0-646f-476c-a60c-5d9be4950fed.code" -Value $sifli_command_exit -NoNewline
[0x00] Download stub success!
[0x01] No need to re-download, skip!
[0x02] Need to re-download
[0x03] Download success! ========================================================================================================== 98.63 KiB/s 100.000%[0x04] Verify success!
[0x05] Need to re-download
[0x06] Download success! ========================================================================================================== 44.28 KiB/s 100.000%[0x07] Verify success!
PS D:\Downloads\SiFli-SDK-2.4.3\example\bt\music_sink\project>
板子目录下的rtconfig.py配错了,JLINK_DEVICE应该写成SF32LB58X_NAND,这样串口下载的设备才能选到nand,如果是用jlink通过swd下载,JLINK_DEVICE保持用SF32LB58X也是可以下载的,因为可以通过地址来区分,0x68000000表示NAND地址
熬夜的
November 24, 2025, 4:26am
7
是的,这个烧录方式的问题AI后来发现了,并且纠正了,但是NVDS失败的问题始终没有解决,看串口打印的数据,小核shell菜单已经打印了,小核应该是跑起来了,但是蓝牙始终启动失败,找不到原因
nvds失败是因为文件系统挂载失败了,文件系统的配置是有些问题,要修改下,但照理蓝牙还是应该能连上才对,不会像这样显示初始化失败的,小核shell看到的打印是什么样的?
熬夜的
November 24, 2025, 5:37am
9
######################################################
BTS2 Demo Main Menu
1. Generic Command
6. A2DP Sink
8. L2CAP bqb test
p. AVRCP
s. Show Menu
q. Exit
###########################################
这一部分就是小核打印的吧,因为Com5我试了只能下载程序,没有打印东西, Com10不能下载程序启动之后会有Log打印
不是,这是大核打印的,另外一个串口是COM5吗,启动后没有打印任何东西?如果没打印的话就说明小核没有正常启动了
熬夜的
November 24, 2025, 5:48am
11
是的,串口5只能下载程序,监视的话没有打印任何东西
本地有修改过什么吗,能把build目录打包放上来吗
熬夜的
November 24, 2025, 6:04am
13
直接上传提示文件过大 还得麻烦你在网盘下载一下
直接用的sink示例 只修改了编译的board
链接:夸克网盘分享
这个包里的程序跑不起来,会有个死机,对比了工程目录下的proj.conf和build目录下的rtconfig.h,像是改过一些配置,能下载我传的这个压缩包的程序,看能不能跑起来吗
music_sink.zip (7.4 MB)
熬夜的
November 24, 2025, 1:29pm
15
我将代码没有编译直接下载后故障与先前一致,后将代码完整编译下载故障依旧,以下分别是编译日志和运行时日志,小核串口依旧没有信息
========
Multi-Project Info
--------
full_name main.bootloader
parent main
bsp_root D:\Program_Maker_Studio\OpenSiFli\SiFli-SDK\example\boot_loader\project\sf32lb58x_v2
build_dir build_sf32lb58-lcd_a128r32n1_dsi_hcpu/bootloader
link_script D:\Program_Maker_Studio\OpenSiFli\SiFli-SDK/drivers/cmsis/sf32lb58x/Templates/gcc/hcpu/link
ptab D:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/customer/boards/sf32lb58-lcd_a128r32n1_dsi\ptab.json
embedded: False
--------
full_name main.lcpu
parent main
bsp_root D:\Program_Maker_Studio\OpenSiFli\SiFli-SDK\example\ble\lcpu_general\project\common
build_dir build_sf32lb58-lcd_a128r32n1_dsi_hcpu/lcpu
link_script D:\Program_Maker_Studio\OpenSiFli\SiFli-SDK/drivers/cmsis/sf32lb58x/Templates/gcc/lcpu/link
ptab D:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/customer/boards/sf32lb58-lcd_a128r32n1_dsi\ptab.json
embedded: True
--------
full_name main
parent
bsp_root D:\Downloads\music_sink\project
build_dir build_sf32lb58-lcd_a128r32n1_dsi_hcpu/
link_script D:\Program_Maker_Studio\OpenSiFli\SiFli-SDK/drivers/cmsis/sf32lb58x/Templates/gcc/hcpu/link
ptab D:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/customer/boards/sf32lb58-lcd_a128r32n1_dsi\ptab.json
--------
full_name main.ftab
parent main
bsp_root D:\Program_Maker_Studio\OpenSiFli\SiFli-SDK\example\flash_table\sf32lb58x_common_v2
build_dir build_sf32lb58-lcd_a128r32n1_dsi_hcpu/ftab
link_script D:\Program_Maker_Studio\OpenSiFli\SiFli-SDK/drivers/cmsis/sf32lb58x/Templates/gcc/hcpu/link
ptab D:/Program_Maker_Studio/OpenSiFli/SiFli-SDK/customer/boards/sf32lb58-lcd_a128r32n1_dsi\ptab.json
embedded: False
========
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build_sf32lb58-lcd_a128r32n1_dsi_hcpu
Generating build_sf32lb58-lcd_a128r32n1_dsi_hcpu\bootloader\link_copy.lds ...
Generating build_sf32lb58-lcd_a128r32n1_dsi_hcpu\lcpu\link_copy.lds ...
Building compilation database build_sf32lb58-lcd_a128r32n1_dsi_hcpu\compile_commands.json
Building compilation database build_sf32lb58-lcd_a128r32n1_dsi_hcpu\bootloader\compile_commands.json
Generating build_sf32lb58-lcd_a128r32n1_dsi_hcpu\link_copy.lds ...
Generating build_sf32lb58-lcd_a128r32n1_dsi_hcpu\ftab\link_copy.lds ...
Building compilation database build_sf32lb58-lcd_a128r32n1_dsi_hcpu\ftab\compile_commands.json
Building compilation database build_sf32lb58-lcd_a128r32n1_dsi_hcpu\lcpu\compile_commands.json
scons: done building targets.
PS D:\Downloads\music_sink\project> cd "d:\Downloads\music_sink\project"
PS D:\Downloads\music_sink\project> sftool -p COM5 -c SF32LB58 -b 1000000 -m nor write_flash --verify "d:\Downloads\music_sink\project\build_sf32lb58-lcd_a128r32n1_dsi_hcpu\bootloader\bootloader.bin@0x1C020000" "d:\Downloads\music_sink\project\build_sf32lb58-lcd_a128r32n1_dsi_hcpu\main.bin@0x68000000" "d:\Downloads\music_sink\project\build_sf32lb58-lcd_a128r32n1_dsi_hcpu\ftab\ftab.bin@0x1C000000"; $sifli_command_exit = $LASTEXITCODE; Set-Content -Path "C:\Users\48036\AppData\Local\Temp\sifli-sifli__download-7c5356be-f928-4cd6-bea3-89394374d212.code" -Value $sifli_command_exit -NoNewline
[0x00] Download stub success!
[0x01] Need to re-download
[0x02] Download success! ================================================================================================================ 45.71 KiB/s 100.000%[0x03] Verify success!
[0x04] Need to re-download
[0x05] Download at 0x68000000... ---------------------------------------------------------------------------------------------------------------- 0 B/s 0.000%Error: Custom { kind: InvalidData, error: "Write flash failed" }
PS D:\Downloads\music_sink\project> cd "d:\Downloads\music_sink\project"
PS D:\Downloads\music_sink\project> sftool -p COM5 -c SF32LB58 -b 1000000 -m nand write_flash --verify "d:\Downloads\music_sink\project\build_sf32lb58-lcd_a128r32n1_dsi_hcpu\bootloader\bootloader.bin@0x1C020000" "d:\Downloads\music_sink\project\build_sf32lb58-lcd_a128r32n1_dsi_hcpu\main.bin@0x68000000" "d:\Downloads\music_sink\project\build_sf32lb58-lcd_a128r32n1_dsi_hcpu\ftab\ftab.bin@0x1C000000"; $sifli_command_exit = $LASTEXITCODE; Set-Content -Path "C:\Users\48036\AppData\Local\Temp\sifli-sifli__download-9ab81ce2-d9c8-435b-a28a-a4d35fba0d8b.code" -Value $sifli_command_exit -NoNewline
[0x00] Download stub success!
[0x01] No need to re-download, skip!
[0x02] Need to re-download
[0x03] Download success! ================================================================================================================ 98.64 KiB/s 100.000%[0x04] Verify success!
[0x05] Need to re-download
[0x06] Download success! ================================================================================================================ 43.94 KiB/s 100.000%[0x07] Verify success!
�Serial:c2,Chip:2,Package:0,Rev:1 Reason:00000000
Serial PowerOnMOde:0 rtc_record:00000000
NAND ID 0xc891c8
det bbm table with 1, 1, 2
detect result 2
V1 1 in block 992, V2 0 in block 994
Latest version 1
V1 1 in block 993, V2 0 in block 995
Latest version 1
v1 1 in blk 992, v2 1 in block 993
BBM MEM: ctx 20007908, map1 200074f8, map2 20007700
sif_bbm_init done
\ | /
- SiFli Corporation
/ | \ build on Nov 24 2025, 2.4.4 build ede7729e
2020 - 2022 Copyright by SiFli team
mount /dev sucess
[I/FAL] Flash Abstraction Layer (V0.5.99) initialize success.
[D/USBD] No class register on usb device
[1388] I/drv.rtc main: PSCLR=0x80000100 DivAI=128 DivAF=0 B=256
[1415] I/drv.rtc main: RTC use LXT RTC_CR=00000000
[1438] I/drv.rtc main: Init RTC, wake = 0
[1603] I/drv.sdhci main: rt_hw_sdmmc_init 2 begin
[2282] I/drv.sdhci main: host version = 2
[2302] I/drv.sdhci main: SDHCI clock 288000000
[2323] I/drv.sdhci main: Maximum Clock Supported by HOST : 288 MHz
[2352] I/drv.sdhci main: host minclock 400000 host maxclock 288000000
[2383] I/drv.sdhci main: SDHCI controller on sdmmc2 using DMA
[2410] I/drv.sdhci main: Add host success
[2430] I/drv.sdhci main: rt_hw_sdmmc_init 2 done
[2453] I/drv.audprc main: init 00 ADC_PATH_CFG0 0x924
[2477] I/drv.audprc main: HAL_AUDPRC_Init res 0
[2500] I/drv.audcodec main: HAL_AUDCODEC_Init res 0
[2524] I/TOUCH main: Regist touch screen driver, probe=0x100080a5
call par CFG1(35bb)
fc 11, xtal 2000, pll 1997
call par CFG1(35bb)
fc 9, xtal 2000, pll 1996
mount fs on flash to root fail
[2697] E/DFS main: Device (root) was not found
dfs_mkfs elm flash fail
[2734] I/sibles main: enable BLE Core. Lib ver: bt.2.0.188f5931
[2761] I/audio audiosvr: audio server run
[2781] I/audio bt_downv: audio_btdownlink run
[2816] D/nvds mbox: NVDS Update Addr res 6, addr 80-06-00-52-fd-5c
D/HEX nvds_cache: 0000-0010: 01 06 80 06 00 52 FD 5C .....R.\
[2877] E/nvds mbox: nvds(0) flush failed
D/HEX nvds_cache: 0000-0010: 0D 02 7C 15 ..|.
[2930] E/nvds mbox: nvds(0) flush failed
D/HEX nvds_cache: 0000-0010: 0E 02 80 07 ....
[2982] E/nvds mbox: nvds(0) flush failed
D/HEX nvds_cache: 0000-0010: AE 10 2D CF 46 29 04 B4 78 D8 68 A7 FF 3F 2B F1 ..-.F)..x.h..?+.
0010-0020: FC D9 ..
[3070] E/nvds mbox: nvds(1) flush failed
[47069] D/sibles_utils mbox: delay
msh />clock 0Hz busmode 1 powermode 1 cs 0 Vdd 23 width 0
clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 23 width 0
[47445] I/drv.sdhci mmcsd_de: sdhci_set_clock2 400000
[47784] I/SDIO mmcsd_de: detect SDIO begin
clock 400000Hz busmode 1 powermode 2 cs 1 Vdd 23 width 0
clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 23 width 0
[47934] I/SDIO mmcsd_de: detect SD card BEGIN
clock 400000Hz busmode 1 powermode 2 cs 1 Vdd 23 width 0
clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 23 width 0
[48095] I/SDIO mmcsd_de: detect MMC begin
clock 400000Hz busmode 1 powermode 2 cs 1 Vdd 23 width 0
clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 23 width 0
[79846] D/bt_common mbox: svc_set init_gainst_data 606
[79872] D/bt_common mbox: [SPP_DEBUG]spp_uuid_header = 0x2001f8e8,spp_uuid_list = 0x2001f8e8,st = 0
[79908] D/bt_common mbox: hfp state change new_sate 0x 0,old_state 0xff
[79935] D/bt_common mbox: hfp_hf_init_link_settings: 4
[79956] D/bt_common mbox: AG state change new_sate 0x 0,old_state 0x 0
[79985] D/bt_common mbox: hid_init
[80001] D/bt_common mbox: bt_gatt_update_state from 0x 0 to 0x 0
[80025] D/bt_common mbox: bt_dis_update_ctrl_state state 0x 0
[80049] D/bt_common mbox: bt_l2cap_profile_init
######################################################
## ##
## BTS2 Demo Main Menu ##
## 1. Generic Command ##
## 6. A2DP Sink ##
## 8. L2CAP bqb test ##
## p. AVRCP ##
## s. Show Menu ##
## q. Exit ##
## ##
######################################################
[80291] E/NO_TAG mbox: read bt bonded failed!
[80316] I/ble_cm mbox: read_bond_infor_from_flash: 1
le p256 nvds get 1
[264902] I/NO_TAG main: BT/BLE stack and profile init failed
有烧写这个压缩包里的bin跑过吗,或者直接拿build目录下的main.bin和ftab.bin替换你编译出来的bin也可以
https://bbs.sifli.com/uploads/short-url/dqftrm74fGqbrlXo2nvnAxIIWoL.zip
另外还是请再上传下对应的build_sf32lb58-lcd_a128r32n1_dsi_hcpu/rtconfig.h和build_sf32lb58-lcd_a128r32n1_dsi_hcpu/lcpu/rtconfig.h
确认了下,是因为发布版本里小核配置不对,导致小核没跑起来,稍后我发下修改后的配置
麻烦用压缩包中的板子目录替换原来的,重新编译下看小核串口是否能打印log了
sf32lb58-lcd_a128r32n1_dsi.zip (3.6 MB)
熬夜的
November 25, 2025, 10:31am
19
是的 问题解决了 当前两个串口都打 印了数据 蓝牙也可以搜索到了 非常感谢
小核串口数据
\ | /
- SiFli Corporation
/ | \ build on Mar 20 2022, 1.2.0 build dbebac
2020 - 2022 Copyright by SiFli team
Patch(0x14) hook install..
HCPU数据
Serial:c2,Chip:2,Package:0,Rev:1 Reason:00000000
Serial PowerOnMOde:0 rtc_record:00000000
NAND ID 0xc891c8
det bbm table with 1, 1, 2
detect result 2
V1 1 in block 992, V2 0 in block 994
Latest version 1
V1 1 in block 993, V2 0 in block 995
Latest version 1
v1 1 in blk 992, v2 1 in block 993
BBM MEM: ctx 20007908, map1 200074f8, map2 20007700
sif_bbm_init done
\ | /
- SiFli Corporation
/ | \ build on Nov 25 2025, 2.4.4 build e7c397ad
2020 - 2022 Copyright by SiFli team
mount /dev sucess
[I/FAL] Flash Abstraction Layer (V0.5.99) initialize success.
[D/USBD] No class register on usb device
[1381] I/drv.rtc main: PSCLR=0x80000100 DivAI=128 DivAF=0 B=256
[1409] I/drv.rtc main: RTC use LXT RTC_CR=00000000
[1432] I/drv.rtc main: Init RTC, wake = 0
[1597] I/drv.sdhci main: rt_hw_sdmmc_init 2 begin
[2276] I/drv.sdhci main: host version = 2
[2295] I/drv.sdhci main: SDHCI clock 288000000
[2317] I/drv.sdhci main: Maximum Clock Supported by HOST : 288 MHz
[2346] I/drv.sdhci main: host minclock 400000 host maxclock 288000000
[2377] I/drv.sdhci main: SDHCI controller on sdmmc2 using DMA
[2404] I/drv.sdhci main: Add host success
[2424] I/drv.sdhci main: rt_hw_sdmmc_init 2 done
[2447] I/drv.audprc main: init 00 ADC_PATH_CFG0 0x924
[2472] I/drv.audprc main: HAL_AUDPRC_Init res 0
[2494] I/drv.audcodec main: HAL_AUDCODEC_Init res 0
[2518] I/TOUCH main: Regist touch screen driver, probe=0x100080a5
call par CFG1(35bb)
fc 11, xtal 2000, pll 1997
call par CFG1(35bb)
fc 9, xtal 2000, pll 1996
mount fs on flash to root fail
[2691] E/DFS main: Device (root) was not found
dfs_mkfs elm flash fail
[2728] I/sibles main: enable BLE Core. Lib ver: bt.2.0.188f5931
[2755] I/audio audiosvr: audio server run
[2775] I/audio bt_downv: audio_btdownlink run
[2796] E/nvds mbox: nvds init failed !!!
[2820] D/nvds mbox: NVDS Update Addr res 6, addr 80-06-00-52-fd-5c
D/HEX nvds_cache: 0000-0010: 01 06 80 06 00 52 FD 5C .....R.\
[2879] E/nvds mbox: nvds(0) flush failed
D/HEX nvds_cache: 0000-0010: 0D 02 7C 15 ..|.
[2931] E/nvds mbox: nvds(0) flush failed
D/HEX nvds_cache: 0000-0010: 0E 02 80 07 ....
[2982] E/nvds mbox: nvds(0) flush failed
D/HEX nvds_cache: 0000-0010: AE 10 2D CF 46 29 04 B4 78 D8 68 A7 FF 3F 2B F1 ..-.F)..x.h..?+.
0010-0020: FC D9 ..
[3069] E/nvds mbox: nvds(1) flush failed
[47089] D/sibles_utils mbox: delay
msh />clock 0Hz busmode 1 powermode 1 cs 0 Vdd 23 width 0
clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 23 width 0
[47471] I/drv.sdhci mmcsd_de: sdhci_set_clock2 400000
[47810] I/SDIO mmcsd_de: detect SDIO begin
clock 400000Hz busmode 1 powermode 2 cs 1 Vdd 23 width 0
clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 23 width 0
[47961] I/SDIO mmcsd_de: detect SD card BEGIN
clock 400000Hz busmode 1 powermode 2 cs 1 Vdd 23 width 0
clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 23 width 0
[48122] I/SDIO mmcsd_de: detect MMC begin
clock 400000Hz busmode 1 powermode 2 cs 1 Vdd 23 width 0
clock 400000Hz busmode 1 powermode 2 cs 0 Vdd 23 width 0
[79872] D/bt_common mbox: svc_set init_gainst_data 606
[79897] D/bt_common mbox: [SPP_DEBUG]spp_uuid_header = 0x2001f8a8,spp_uuid_list = 0x2001f8a8,st = 0
[79934] D/bt_common mbox: hfp state change new_sate 0x 0,old_state 0xff
[79961] D/bt_common mbox: hfp_hf_init_link_settings: 4
[79982] D/bt_common mbox: AG state change new_sate 0x 0,old_state 0x 0
[80011] D/bt_common mbox: hid_init
[80027] D/bt_common mbox: bt_gatt_update_state from 0x 0 to 0x 0
[80051] D/bt_common mbox: bt_dis_update_ctrl_state state 0x 0
[80075] D/bt_common mbox: bt_l2cap_profile_init
######################################################
## ##
## BTS2 Demo Main Menu ##
## 1. Generic Command ##
## 6. A2DP Sink ##
## 8. L2CAP bqb test ##
## p. AVRCP ##
## s. Show Menu ##
## q. Exit ##
## ##
######################################################
[80316] E/NO_TAG mbox: read bt bonded failed!
[80340] I/ble_cm mbox: read_bond_infor_from_flash: 1
le p256 nvds get 1
le p256 nvds get 1
app addr nvds get 1
[99954] D/bt_common bts: svc_release gap_dm_sync_reg_cfm_hdl 886
[99981] D/bt_common bts: svc_set gap_rfc_reg_req_msg_send 2622
[100012] D/bt_common bts: svc_release gap_rfc_reg_cfm_hdl 2726
[100037] D/bt_common bts: [spp_debug]inited_channel_num = 0,srv_chnl = 1
[100064] D/bt_common bts: svc_set gap_rfc_reg_req_msg_send 2622
[100092] D/bt_common bts: svc_release gap_rfc_reg_cfm_hdl 2726
[100116] D/bt_common bts: [spp_debug]inited_channel_num = 1,srv_chnl = 2
[100144] D/bt_common bts: svc_set gap_rfc_reg_req_msg_send 2622
[100171] D/bt_common bts: svc_release gap_rfc_reg_cfm_hdl 2726
[100195] D/bt_common bts: [spp_debug]inited_channel_num = 2,srv_chnl = 3
[100223] D/bt_common bts: svc_set gap_rfc_reg_req_msg_send 2622
[100252] D/bt_common bts: svc_release gap_rfc_reg_cfm_hdl 2726
[100276] D/bt_common bts: [spp_debug]inited_channel_num = 3,srv_chnl = 4
[100304] D/bt_common bts: svc_set gap_rfc_reg_req_msg_send 2622
[100331] D/bt_common bts: svc_release gap_rfc_reg_cfm_hdl 2726
[100357] D/bt_common bts: [spp_debug]inited_channel_num = 4,srv_chnl = 5
[100386] D/bt_common bts: svc_set gap_rfc_reg_req_msg_send 2622
[100414] I/btapp_ge bts: << Local device addreess: 5CFD:52:000680
[100447] D/bt_common bts: svc_release gap_rfc_reg_cfm_hdl 2726
[100472] D/bt_common bts: hfp state change new_sate 0x 1,old_state 0xff
[100501] D/bt_common bts: svc_set gap_rfc_reg_req_msg_send 2622
[100537] D/bt_common bts: svc_release gap_rfc_reg_cfm_hdl 2726
[100561] D/bt_common bts: AG state change new_sate 0x 1,old_state 0x 0
[100591] D/bt_common bts: svc_set gap_l2c_reg_req_msg_send 774
[100617] D/bt_common bts: svc_release gap_l2c_reg_cfm_hdl 852
[100641] D/bt_common bts: svc_set gap_l2c_reg_req_msg_send 774
[100667] D/bt_common bts: svc_release gap_l2c_reg_cfm_hdl 852
[100692] D/bt_common bts: svc_set gap_l2c_reg_req_msg_send 774
[100718] D/bt_common bts: svc_release gap_l2c_reg_cfm_hdl 852
[100744] D/bt_common bts: hid_gap_l2ca_reg_cfm_standbyst
[100767] D/bt_common bts: svc_set gap_l2c_reg_req_msg_send 774
[100794] D/bt_common bts: svc_release gap_l2c_reg_cfm_hdl 852
[100818] D/bt_common bts: svc_set gap_rfc_reg_req_msg_send 2622
[100846] D/bt_common bts: svc_release gap_rfc_reg_cfm_hdl 2726
[100871] D/bt_common bts: svc_release gap_app_init_req_hdl 76
[100895] D/NO_TAG bts: >> AV sink enabled
[100922] D/bt_common bts: svc_set gap_sds_reg_req_hdl 2003
[100947] D/bt_common bts: svc_release gap_sds_reg_cfm_hdl 2078
[100972] I/btapp.av bts: enable(1) ret 0
[100991] D/btapp.av bts: >> AUDIO SINK ENB
[101008] D/btapp.av bts: << av had been enabled
[101027] D/bt_common bts: svc_set gap_sds_reg_req_hdl 2003
[101052] D/bt_common bts: svc_release gap_sds_reg_cfm_hdl 2078
[101078] I/audio_avrcp bts: >> AVCTP enabled
[101099] D/audio_avrcp bts: >> URC AVRCP open
[101117] D/bt_common bts: svc_set gap_l2c_conn_acpt_req_hdl 2294
[101141] D/bt_common bts: svc_release gap_l2c_profile_st_change_setting_ext 12429
[101174] D/bt_common bts: svc_set gap_sds_reg_req_hdl 2003
[101200] D/bt_common bts: svc_release gap_sds_reg_cfm_hdl 2078
[101226] D/bt_common bts: avrcp error_type = 32811,st = 2
[101249] D/bt_common bts: svc_set gap_l2c_conn_acpt_req_hdl 2294
[101274] D/bt_common bts: svc_release gap_l2c_profile_st_change_setting_ext 12429
[101307] I/btapp_ge bts: << Local LMP version: 12
[101330] I/btapp_ge bts: << Local LMP subversion: 532
[101354] I/btapp_ge bts: << Local controller manufacturer name id: 2636
[101431] I/btapp_ge bts: << Write eir data success!
[101659] I/btapp_ge bts: << Local device name changed!
[101851] I/btapp_ge bts: << Class of device has been changed!
[101953] I/NO_TAG bts: BTS2MU_GAP_RD_LOCAL_NAME_CFM
[101976] I/btcomm bts: Clear mask 2
[101993] I/NO_TAG bts: bt_cm_app_init_ready_hdl ,idx 0 link_type 0
[102023] I/btapp_ge bts: << Local device name: SifliDemo
[102048] I/btapp_ge bts: service state 1
[102067] I/NO_TAG main: BT/BLE stack and profile ready
[102091] I/btapp_intf main: set name sifli_music_sink
[102117] I/btapp_ge bts: bt stack ready
[102145] I/btapp_ge bts: << Class of device: 0x240704
[102348] I/btapp_ge bts: << Write eir data success!
[102549] I/btapp_ge bts: << Write scan enable success
[102739] I/btapp_ge bts: << Local device name changed!
[102931] I/btapp_ge bts: << Scan mode: 3
[102950] I/btapp_ge bts: << Inquiry scan enbd.
<< Page scan enbd.
[103132] I/NO_TAG bts: BTS2MU_GAP_RD_LOCAL_NAME_CFM
[103155] I/btcomm bts: Clear mask 2
[103172] I/NO_TAG bts: bt_cm_app_init_ready_hdl ,idx 0 link_type 0
[103201] I/btapp_ge bts: << Local device name: sifli_music_sink
[103228] I/btapp_ge bts: service state 2
[103325] I/btapp_ge bts: << Write scan enable success
[103519] I/btapp_ge bts: << Scan mode: 3
[103539] I/btapp_ge bts: << Inquiry scan enbd.
<< Page scan enbd.
app nvds write failed
[104217] I/sibles KE_EVT2:
BLE ready!
[104236] I/btcomm KE_EVT2: Clear mask 1
act num:0
set cmd 0x91, stop_status:0, msg_status:1
[104354] D/BLE_GAP KE_EVT2: evt 145, ret 0