標題: KEIL編譯錯誤Error: L6407E: Sections of aggregate size 0x364 bytes could not [打印本頁]

作者: hujj    時間: 2019-3-21 15:47
標題: KEIL編譯錯誤Error: L6407E: Sections of aggregate size 0x364 bytes could not
STM32單片機KEIL編譯出現(xiàn)下列提示是什么原因?是運行的內(nèi)存不夠還是程序的內(nèi)存不夠?


.\output\GD32E230C_EVAL.axf: Error: L6406E: No space in execution regions with .ANY selector matching main.o(.bss.hour).
.\output\GD32E230C_EVAL.axf: Error: L6406E: No space in execution regions with .ANY selector matching main.o(.bss.keys).
.\output\GD32E230C_EVAL.axf: Error: L6406E: No space in execution regions with .ANY selector matching main.o(.bss.mode).
.\output\GD32E230C_EVAL.axf: Error: L6406E: No space in execution regions with .ANY selector matching main.o(.bss.ch_spo2_valid).
.\output\GD32E230C_EVAL.axf: Error: L6406E: No space in execution regions with .ANY selector matching main.o(.bss.ch_hr_valid).
.\output\GD32E230C_EVAL.axf: Error: L6407E: Sections of aggregate size 0x364 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 36 error messages.
".\output\GD32E230C_EVAL.axf" - 36 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:05





作者: hujj    時間: 2019-3-21 19:20
經(jīng)過分析測試,是內(nèi)存變量定義的太多,造成FLASH不夠。我將代碼中兩個下標為150的數(shù)組變量修改為15,編譯就通過了。


結(jié)貼
作者: ping264888    時間: 2019-3-22 09:26
我的天, 兩個下標150的數(shù)組.......
作者: 苓耳    時間: 2020-7-21 11:25
將程序移植后,出現(xiàn)了以下問題
解決方法如圖

1.png (131.84 KB, 下載次數(shù): 129)

1.png

1.png (131.84 KB, 下載次數(shù): 122)

報錯情況

報錯情況

2.png (93.71 KB, 下載次數(shù): 136)

解決方法

解決方法

3.png (167.23 KB, 下載次數(shù): 142)

實際效果

實際效果

作者: 苓耳    時間: 2020-7-21 11:30
移植程序后出現(xiàn)了一下問題
這是其中一種解決方法

1.png (131.84 KB, 下載次數(shù): 129)

報錯情況

報錯情況

2.png (93.71 KB, 下載次數(shù): 122)

點開 魔術棒 勾選

點開 魔術棒 勾選

3.png (167.23 KB, 下載次數(shù): 147)

實際效果

實際效果





歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1