AB32VG1报错cannot find -lhal [makefile:60: rtthread.elf] Error 1处理

c:/rt-threadstudio/repo/extract/toolchain_support_packages/risc-v/risc-v-gcc/10.1.0/bin/..Pb/gcc/riscv64-unknown-elf/10.1.0/../../../../riscv64-unknown-elf/bin/ld.exe: cannot find -lhal

collect2.exe: error: ld returned 1 exit status

make: *** [makefile:60: rtthread.elf] Error 1

"make -j4 all2" terminated with exit code 2. Build might be incomplete.

13:06:37 Build Failed. 2 errors, 0 warnings. (took 9s.41ms)

每次开启串口1,编译报错[makefile:60: rtthread.elf] Error 1,

 cannot find -lhal collect2.exe: error: ld returned 1 exit status

引起错误的原因是找不到 hal 库,也就是 libhal.a 这个文件,应该在 package 那个目录下面,如果没有的话,确认下 http://packages.rt-thread.org/detail.html?package=bluetrum_sdk 这个软件包有没有下载。也可以双击打开RT-Thread Setting,查看软件是否有bluetrum_sdk,如下图所示。如果没有点击Add添加即可。

AB32VG1报错cannot find -lhal [makefile:60: rtthread.elf] Error 1处理_第1张图片

AB32VG1报错cannot find -lhal [makefile:60: rtthread.elf] Error 1处理_第2张图片

涓滴之水终可磨损大石,不是由于它力量大,而是由于昼夜不舍的滴坠,只有勤奋不懈的努力才能够获得那些技巧,扫码关注,了解更多单片机知识

你可能感兴趣的:(rtt,单片机)