Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
linker链接报错
overflow
linker链接报错
Link error: `m_data' overflowed by 1480440 bytes
发布于 2023-01-19 13:18:10 浏览:469
订阅该版
Hello , 使用RTT-Studio编译工程,最后LINK的时候失败,主要出错信息如下颜色标识的语句。寻求指导帮助,以及如何Fix,谢谢! ``` e:/rt-threadstudio/repo/extract/toolchain_support_packages/arm/gnu_tools_for_arm_embedded_processors/10.2.1/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: rtthread.elf section `.ncache' will not fit in region `m_data' e:/rt-threadstudio/repo/extract/toolchain_support_packages/arm/gnu_tools_for_arm_embedded_processors/10.2.1/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: region `m_data' overflowed by 1480440 bytes collect2.exe: error: ld returned 1 exit status ``` 整个LINK的详细信息如下: ``` linking... arm-none-eabi-gcc -mcpu=cortex-m7 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -ffunction-sections -fdata-sections -Wall -g -gdwarf-2 -T "E:\RT-ThreadStudio\workspace\test2\board\linker_scripts\link.lds" -nostartfiles -Xlinker --gc-sections -Wl,-Map,"rtthread.map" -Xlinker --cref -o "rtthread.elf" ./xip/fire_imxrt1052_sdram_ini_dcd.o ./xip/fire_imxrt1052_spiflash_config.o ./xip/fsl_flexspi_nor_boot.o ./rt-thread/src/clock.o ./rt-thread/src/components.o ./rt-thread/src/device.o ./rt-thread/src/idle.o ./rt-thread/src/ipc.o ./rt-thread/src/irq.o ./rt-thread/src/kservice.o ./rt-thread/src/memheap.o ./rt-thread/src/mempool.o ./rt-thread/src/object.o ./rt-thread/src/scheduler.o ./rt-thread/src/thread.o ./rt-thread/src/timer.o ./rt-thread/libcpu/arm/cortex-m7/context_gcc.o ./rt-thread/libcpu/arm/cortex-m7/cpu_cache.o ./rt-thread/libcpu/arm/cortex-m7/cpuport.o ./rt-thread/libcpu/arm/common/backtrace.o ./rt-thread/libcpu/arm/common/div0.o ./rt-thread/libcpu/arm/common/showmem.o ./rt-thread/components/net/sal/src/sal_socket.o ./rt-thread/components/net/sal/socket/net_netdb.o ./rt-thread/components/net/sal/impl/af_inet_lwip.o ./rt-thread/components/net/netdev/src/netdev.o ./rt-thread/components/net/netdev/src/netdev_ipaddr.o ./rt-thread/components/net/lwip/port/ethernetif.o ./rt-thread/components/net/lwip/port/sys_arch.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/netif/ethernet.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/netif/lowpan6.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/autoip.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/dhcp.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/etharp.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/icmp.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/igmp.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/ip4.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/ip4_addr.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/ipv4/ip4_frag.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/def.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/dns.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/inet_chksum.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/init.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/ip.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/memp.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/netif.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/pbuf.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/raw.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/stats.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/sys.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/tcp.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/tcp_in.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/tcp_out.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/timeouts.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/core/udp.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/apps/ping/ping.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/api/api_lib.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/api/api_msg.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/api/err.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/api/netbuf.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/api/netdb.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/api/netifapi.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/api/sockets.o ./rt-thread/components/net/lwip/lwip-2.0.3/src/api/tcpip.o ./rt-thread/components/libc/compilers/newlib/syscalls.o ./rt-thread/components/libc/compilers/common/stdlib.o ./rt-thread/components/libc/compilers/common/time.o ./rt-thread/components/finsh/cmd.o ./rt-thread/components/finsh/msh.o ./rt-thread/components/finsh/shell.o ./rt-thread/components/drivers/serial/serial.o ./rt-thread/components/drivers/misc/pin.o ./rt-thread/components/drivers/ipc/completion.o ./rt-thread/components/drivers/ipc/dataqueue.o ./rt-thread/components/drivers/ipc/pipe.o ./rt-thread/components/drivers/ipc/ringblk_buf.o ./rt-thread/components/drivers/ipc/ringbuffer.o ./rt-thread/components/drivers/ipc/waitqueue.o ./rt-thread/components/drivers/ipc/workqueue.o ./rt-thread/components/drivers/cputime/cputime.o ./libraries/fatfs/diskio.o ./libraries/fatfs/ff.o ./libraries/fatfs/ffsystem.o ./libraries/fatfs/ffunicode.o ./libraries/fatfs/fsl_sd_disk.o ./libraries/drivers/drv_gpio.o ./libraries/drivers/drv_uart.o ./libraries/Sdmmc/fsl_sd.o ./libraries/Sdmmc/fsl_sdmmc_common.o ./libraries/Sdmmc/fsl_sdmmc_event.o ./libraries/Sdmmc/fsl_sdmmc_host.o ./libraries/MIMXRT1050/MIMXRT1052/utilities/str/fsl_str.o ./libraries/MIMXRT1050/MIMXRT1052/utilities/log/fsl_log.o ./libraries/MIMXRT1050/MIMXRT1052/utilities/io/fsl_io.o ./libraries/MIMXRT1050/MIMXRT1052/utilities/debug_console/fsl_debug_console.o ./libraries/MIMXRT1050/MIMXRT1052/utilities/fsl_assert.o ./libraries/MIMXRT1050/MIMXRT1052/utilities/fsl_notifier.o ./libraries/MIMXRT1050/MIMXRT1052/utilities/fsl_sbrk.o ./libraries/MIMXRT1050/MIMXRT1052/gcc/startup_MIMXRT1052.o ./libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_cache.o ./libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_clock.o ./libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_common.o ./libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_elcdif.o ./libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_gpio.o ./libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_lpuart.o ./libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_usdhc.o ./libraries/MIMXRT1050/MIMXRT1052/system_MIMXRT1052.o ./board/MCUX_Config/clock_config.o ./board/MCUX_Config/pin_mux.o ./board/board.o ./applications/picture/bmp.o ./applications/picture/gif.o ./applications/picture/piclib.o ./applications/picture/tjpgd.o ./applications/bsp/sd_fatfs_test/bsp_sd_fatfs_test.o ./applications/bsp/sd/bsp_sd.o ./applications/bsp/led/bsp_led.o ./applications/bsp/lcd/bsp_lcd.o ./applications/bsp/lcd/lcd_test.o ./applications/bsp/font/fonts.o ./applications/bsp/beep/bsp_beep.o ./applications/main.o ./applications/mnt.o -lm -lc e:/rt-threadstudio/repo/extract/toolchain_support_packages/arm/gnu_tools_for_arm_embedded_processors/10.2.1/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: `rtthread.elf section `.ncache' will not fit in region `m_data'` e:/rt-threadstudio/repo/extract/toolchain_support_packages/arm/gnu_tools_for_arm_embedded_processors/10.2.1/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: region `m_data' overflowed by 1480440 bytes collect2.exe: error: ld returned 1 exit status make: *** [makefile:86: rtthread.elf] Error 1 "make -j8 all" terminated with exit code 2. Build might be incomplete. ```
查看更多
1
个回答
默认排序
按发布时间排序
rcp
认证专家
2023-01-28
这家伙很懒,什么也没写!
链接后的程序部分超过了 链接脚本里定义的段的大小 ``` region `m_data' overflowed by 1480440 bytes ``` `m_data` 估计是在链接脚本里定义的一块区域,但是编译出来的程序 `m_data` 容纳不下 超出了 `1480440 bytes`
撰写答案
登录
注册新账号
关注者
0
被浏览
469
关于作者
Rongcai
这家伙很懒,什么也没写!
提问
10
回答
1
被采纳
0
关注TA
发私信
相关问题
1
添加mbedtls编译报错
2
板子上电提示堆栈溢出
3
scheduler is not available是啥情况
4
RT_thread nano编译报错error: ld returned 1 exit status
5
用的st的f103的库来开发的GDF303,遇到两个问题
6
rt-thread studio linking第三方库出现问题
7
gcc编译不能链接超过 2MB
8
请问如何修改IAR的工程的linker的路径?
9
编译失败ld returned 1 exit status
10
代码链接错误,找不到函数
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
简单两步配置RTT源码阅读环境 vsc+clangd
2
恩智浦[FRDM-MCXN947]初探 之 ADC与DAC
3
LVGL使用字库IC芯片显示中文
4
基于STM32H750和Rt-Thread的CANFD通信实现的记录(一)
5
freemodbus主机在freertos的适配,参考rtthread例程
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
UART
WIZnet_W5500
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
编译报错
Debug
SFUD
msh
rt_mq_消息队列_msg_queue
keil_MDK
ulog
MicroPython
C++_cpp
本月问答贡献
出出啊
1517
个答案
342
次被采纳
小小李sunny
1443
个答案
289
次被采纳
张世争
805
个答案
174
次被采纳
crystal266
547
个答案
161
次被采纳
whj467467222
1222
个答案
148
次被采纳
本月文章贡献
出出啊
1
篇文章
4
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
1
次点赞
crystal266
2
篇文章
2
次点赞
whj467467222
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部