问题原因

Include包含路径错误,在输入包含路径时,最左边少了一个",写成了

${ProjDirPath}/../../nuclei_sdk/SoC/rn831x_rn861x_dualcore_mcu/Common/Include"

解决方法

正确包含路径写法:

"${ProjDirPath}/../../nuclei_sdk/SoC/rn831x_rn861x_dualcore_mcu/Common/Include"

问题分析

1、实际错误提示中,已指示是调用GNU RISC-V Cross Assembler编译intexc_xxxx_xxxx.S发生错误,

2、在编译该文件时,加载包含文件,查看加载文件序列,可以看到除了问题文件是-ID:/.....",其他是-I"D:/.....";

3、结合错误提示syntax error: unterminated quoted string

从以上分析,很容易找到出问题的点就是intexc_xxxx_xxxx.S文件所需的GNU RISC-V Cross Assembler包含文件路径错误

错误图示:

错误提示文字

Building file: D:/Common/Source/GCC/intexc_xxxx_xxxx.S

Invoking: GNU RISC-V Cross Assembler

riscv64-unknown-elf-gcc -march=rv32im_zba_zbb_zbc_zbs_zca_zcb_zcmp_zcmt -mabi=ilp32 -mtune=nuclei-200-series -mcmodel=medlow -msmall-data-limit=8 -mno-save-restore -DCORE0 -Oz -ffunction-sections -fdata-sections -fno-common -g -x assembler-with-cpp -D__IDE_RV_CORE=N200 -I"D:/NMSIS/Core/Include" -ID:/Common/Include"  -c -o "Common/Source/GCC/intexc_xxxx_xxxx.o" "D:/Common/Source/GCC/intexc_xxxx_xxxx.S"

d:/program files/nucleistudio/toolchain/build-tools/bin/sh: syntax error: unterminated quoted string

make: *** [Common/Source/GCC/subdir.mk:27: Common/Source/GCC/intexc_xxxx_xxxx.o] Error 2

"make all" terminated with exit code 2. Build might be incomplete.

Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐