今天想用下 I2S,看泽哥的教程配置
(十四)零基础开发小安派-Eyes-S1【外设篇】——I2S - 小安派&M61零基础开发教程(官方) - 物联网开发者社区-安信可论坛 - Powered by Discuz! (ai-thinker.com)
我按教程步骤复制了8388的库
修改了代码
CMakeLists.txt 和 flash_prog_cfg.ini 也修改了
复制好了 main.c 文件
结果无法编译
发现,CMakeLists.txt 不添加这一行,可以编译,但是喇叭没音,
sdk_set_linker_script($ENV{BL_SDK_BASE}/bsp/board/bl616dk/bl616_flash_old.ld)
添加了这一行,报老多错误了
这是报错日志
[ 99%] Linking C executable build_out/audio_bl616.elf
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000010100
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: build_out/lib/libstd.a(start_load.c.o): in function `start_load':
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:48: undefined reference to `__tcm_code_start__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:48: undefined reference to `__tcm_code_end__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:48: undefined reference to `__tcm_code_start__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:48: undefined reference to `__tcm_code_end__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:48: undefined reference to `__itcm_load_addr'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:48: undefined reference to `__itcm_load_addr'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:48: undefined reference to `__tcm_data_start__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:56: undefined reference to `__tcm_data_end__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:56: undefined reference to `__tcm_data_start__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:56: undefined reference to `__tcm_data_end__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:56: undefined reference to `__dtcm_load_addr'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:56: undefined reference to `__dtcm_load_addr'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:56: undefined reference to `__ram_data_start__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:64: undefined reference to `__ram_data_end__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:64: undefined reference to `__ram_data_start__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:64: undefined reference to `__ram_data_end__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:64: undefined reference to `__ram_load_addr'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:64: undefined reference to `__ram_load_addr'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:64: undefined reference to `__nocache_ram_data_start__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:64: undefined reference to `__nocache_ram_data_end__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:72: undefined reference to `__nocache_ram_data_start__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:72: undefined reference to `__nocache_ram_data_end__'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:72: undefined reference to `__nocache_ram_load_addr'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:72: undefined reference to `__nocache_ram_load_addr'
/home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/toolchain/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/timo/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std/startup/start_load.c:73: undefined reference to `__bss_start__'
|