WCH沁恒单片机
直播中

李英

7年用户 1403经验值
私信 关注
[问答]

CH32V307 TCP一直编译一直错如何解决?

e:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: test.elf section `.bss' will not fit in region `RAM'e:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: section .stack VMA [0000000020007800,0000000020007fff] overlaps section .bss VMA [0000000020000088,000000002000c16b]e:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: region `RAM' overflowed by 0 bytese:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./User/main.o: in function `main':D:MRSworkspace        estobj/../User/main.c:171: undefined reference to `WCH_GetMac'collect2.exe: error: ld returned 1 exit statusmake: *** [makefile:55: test.elf] Error 1刚接触单片机,太模糊了,之前是写java的,现在有个问题,我把官方的TCP历程拉出来之后,不能编译了,一直报一个错误,求助求助


  
  

回帖(2)

蔡妮芩

2022-6-17 15:58:09
摸索出来了,是没有把路径设置进去;
项目属性中,
进入 C/C++ General的路径和符号,
包含 GNU C 添加工作空间/${ProjName}/NetLib
库文件添加?wchnet,
库路径添加工作空间?/${ProjName}/NetLib,
源位置添加路径 NetLib。
有没有大佬来解释一下,这个是什么意思?为啥要添加这些东西
举报

刘嘉佳

2022-6-17 15:58:13
您好,当你把EVT例程单独从EVT文件夹拎出来的时候,需要将SRC文件夹和库文件夹一起拎出来,否则路径改变,编译时找不到链接路径就会报错,就需要重新修改路径。
举报

更多回帖

发帖
×
20
完善资料,
赚取积分