Error: L6407E: Sections of aggregate size 0x974 bytes could not fit into .ANY selector(s).

compiling user_mcuflash.c...
linking...
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching spi.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching nvr_log.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching adc.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching kservice.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_adc.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching nvr_log.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching spi_flash_store.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching i2c.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching easyflash.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching object.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_can1.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_can2.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_usart1.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_usart2.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_w25qxx.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_acl16.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_lis3dh.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_usart3.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_usart4.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_usart5.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_usart6.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_mcuflash.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching can_dev.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching can.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching rtc.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching stm32f0xx_hal_flash.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching mem.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching main.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching mem.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching scheduler.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching hwtimer.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching gpio.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching tim.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching can_dev.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching can2_dev.o(.bss).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching timer.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching cpuport.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_gpio.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_usart1.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching stm32f0xx_hal.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_usart2.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_usart3.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_usart4.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_usart5.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching user_usart6.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching kservice.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching system_stm32f0xx.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching clock.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching stdout.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching irq.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6406E: No space in execution regions with .ANY selector matching lis3dh.o(.data).
RTT_091_VCT\RTT_091_VCT.axf: Error: L6407E: Sections of aggregate size 0x974 bytes could not fit into .ANY selector(s).
Not enough information to list image symbols.
Not enough information to list the image map.
Finished: 2 information, 0 warning and 53 error messages.
"RTT_091_VCT\RTT_091_VCT.axf" - 53 Error(s), 0 Warning(s).
Target not created.

现象:在基于rtt的工程中,在写device层驱动时,flash_write强制为uint16_t时编译就会出现上面的错误,强制为uint8_t就不会有这个错误。

Error: L6407E: Sections of aggregate size 0x974 bytes could not fit into .ANY selector(s)._第1张图片

查资料都说是内存不足,于是把uart1-6的接收数组都改小了,再编译就没有这个错误了。

应该主要原因就是RAM不够用了。

你可能感兴趣的:(学习总结)