嵌入式技术论坛
直播中

尚文清

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

使用RTT-Studio编译程序失败如何解决?

您好,
使用RTT-Studio编译程序,最后LINK的时候失败,主要出现错误信息如下颜色标签识字的句子。寻求指导帮助,以及如何解决,谢谢!

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)

杨平

2023-2-22 14:20:41
链接后的程序部分超过了链接脚本里规定的部分的大小

region `m_data' overflowed by 1480440 bytes
m_data估计是在链接脚本里确定的一块区域,但是编出来的程序m_data容纳不下了1480440 bytes
举报

更多回帖

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