在build M4的软件时遇到memory size不足的问题,提示如下:
ld.exe: JelliesV3.elf section '.text' will not fit in region 'FLASH'
ld.exe: section ,data VMA [00010000,000102af] overlaps section ,text VMA [00080000,00011aa71]
在CMSIS\GCC\gcc.arm.ld 里面做了以下改动后就可以build成功也能在device里面顺利执行,这个改动是正确的吗?正确的话能,这里可以maximum set多少呢?
默认
MEMORY
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x10000
RAM (rwx) : ORIGIN = 0x00010000, LENGTH = 0x10000
修改为:
MEMORY
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x20000
RAM (rwx) : ORIGIN = 0x00020000, LENGTH = 0x10000 |