编辑报错如何解决?

下面这种情况怎么解决?


08:43:19 **** Incremental Build of configuration obj for project test ****

make -j4 all 

d:/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'

d:/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 [000000002000f800,000000002000ffff] overlaps section .bss VMA [000000002000030c,0000000020011a3b]

d:/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:59: test.elf] Error 1


08:43:33 Build Failed. 4 errors, 0 warnings. (took 13s.418ms)


是不是这个内存占用太大了?能减小点吗?

COMMON         0x00000000200079fc     0x9ffc ./NetLib/eth_driver.o

                0x00000000200079fc                MACRxBuf

                0x00000000200091bc                pDMARxSet

                0x00000000200091c0                Mem_Heap_Memory

                0x000000002000c790                gPHYAddress

                0x000000002000c794                Memp_Memory

                0x00000000200107d4                DMATxDscrTab

                0x00000000200107f4                LocalTime

                0x00000000200107f8                DMARxDscrTab

                0x0000000020010838                MACTxBuf

                0x0000000020011418                pDMATxSet

                0x000000002001141c                Mem_ArpTable

                0x00000000200118cc                SocketInf



您好,可以将WCHNET_TCP_MSS配置小一点,例如536,ram会空一部分出来。


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