问题:
GD32F407ZG系列内存问题,本来是192K的,但是我程序内存用到128K左右,继续申请就报错了。
手册写的:
GD32F407 - ARM Cortex-M4 Core
Frequency up to 200 MHz
Flash access zero wait state
Single-cycle multiplier and hardware divider
Memories
Flash size from 512KB to 3072 KB
SRAM size is 192 KB with HW parity checking
30KB ISP loader ROM
在keilMDK里面,我编译后
[C] 纯文本查看 复制代码
==============================================================================
Code (inc. data) RO Data RW Data ZI Data Debug
168012 10078 193368 3376 127656 1056552 Grand Totals
168012 10078 193368 632 127656 1056552 ELF Image Totals (compressed)
168012 10078 193368 632 0 0 ROM Totals
==============================================================================
Total RO Size (Code + RO Data) 361380 ( 352.91kB)
Total RW Size (RW Data + ZI Data) 131032 ( 127.96kB)
Total ROM Size (Code + RO Data + RW Data) 362012 ( 353.53kB)
==============================================================================
最大只能到128K左右吗?
我在程序中多加1K的数组就报内存不足了,想问下剩下的内存去哪了??
[C] 纯文本查看 复制代码 compiling VariableBox.c...
compiling ParaSave.c...
linking...
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching list.o(.bss).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching libspace.o(.bss).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching camera.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching notice.o(.bss).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching text.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching store.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching timer.o(.bss).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching localtime.o(.bss).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching store.o(.bss).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching config.o(.bss).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching demoproc.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching basic.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching notice.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching system_stm32f4xx.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching malloc.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching timer.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching stm32f4xx_rcc.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching cpu_core.o(.bss).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching main.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching sensor.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching cjson.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching rtc.o(.bss).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching ff.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching delay.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching lora.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching usart.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching os_prio.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching mycc936.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching trigger_flags.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching config.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching rtc.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching uart4.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching uart6.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching usart2.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching usart3.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching uart5.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching cpu_core.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching lib_mem.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching os_cpu_c.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching diskio.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching hmi_engine.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching wkup.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching w25qxx.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching key.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching mmc_sd.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching lcd12864.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching sgui_basic.o(.data).
..\OBJ\Template.axf: Error: L6407E: Sections of aggregate size 0x43c bytes could not fit into .ANY selector(s).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 48 error messages.
"..\OBJ\Template.axf" - 48 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:07
|