CH32V307编译不过

请问:我把CH32V307EVT包里的UdpServer工程和HOST_Udisk工程合并成Udisk_Udp工程,出现下面的错误是什么问题呀?


c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: Udisk_Udp.elf 


section `.bss' will not fit in region `RAM'

c:/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 [00000000200000b0,000000002000a27b]

c:/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 bytes

collect2.exe: error: ld returned 1 exit status

make: *** [makefile:56: Udisk_Udp.elf] Error 1


您好,你这报错应该是内存越界,应该和定义的变量和数组有关,可以检查一下是不是程序中定义的数组过大。若无上述问题,也可按照下图配置勾选上试试看。后续若有问题,可通过邮箱和我沟通(lzs@wch.cn)。

image.png


按您回复的选项打勾就正常通过了,多谢!


只有登录才能回复,可以选择微信账号登录