KT (07.09.2012 15:30, просмотров: 208) ответил amusin на В настройках линкера включите формирование листинга. В подпапке lst будет файл *.map. В конце файла нужные данные.
Это оно? - Entry Address Size Type Object
----- ------- ---- ---- ------
?main 0x0800b31d Code Gb cmain.o [4]
BAR 0x0800736c 0x2f8 Data Gb main.o [1]
BusFault_Handler 0x0800b30b Code Wk vector_table_M.o [4]
CSTACK$$Base 0x20000020 -- Gb - Linker created -
CSTACK$$Limit 0x20000820 -- Gb - Linker created -
DIG0 0x20000002 0x1 Data Gb main.o [1]
DIG1 0x20000003 0x1 Data Gb main.o [1]
DIG2 0x20000004 0x1 Data Gb main.o [1]
DIG3 0x20000005 0x1 Data Gb main.o [1]
DISPLAY_INIT 0x080003f3 0x63c Code Gb main.o [1]
DebugMon_Handler 0x0800b30b Code Wk vector_table_M.o [4]
Display_Clear 0x0800029b 0x158 Code Gb main.o [1]
FONT 0x0800775c 0x3b60 Data Gb main.o [1]
FONT1 0x08000d28 0x64f0 Data Gb main.o [1]
GPIO_INIT 0x080001ff 0x9c Code Gb main.o [1]
GPIO_Init 0x08000041 0xc4 Code Gb main.o [1]
GPIO_InitStructure 0x20000014 0x4 Data Gb main.o [1]
HSEStartUpStatus 0x2000001c 0x1 Data Gb main.o [1]
HardFault_Handler 0x0800b30b Code Wk vector_table_M.o [4]
MemManage_Handler 0x0800b30b Code Wk vector_table_M.o [4]
NMI_Handler 0x0800b30b Code Wk vector_table_M.o [4]
PUT_BAR 0x08007219 0x152 Code Gb main.o [1]
PUT_DIGIT_D 0x08000b83 0x15a Code Gb main.o [1]
PUT_DIGIT_S 0x08000a2f 0x154 Code Gb main.o [1]
PUT_NUMBER 0x08007665 0xc8 Code Gb main.o [1]
PendSV_Handler 0x0800b30b Code Wk vector_table_M.o [4]
RCC_INIT 0x08000105 0xfa Code Gb main.o [1]
Region$$Table$$Base 0x0800b30c -- Gb - Linker created -
Region$$Table$$Limit 0x0800b31c -- Gb - Linker created -
SVC_Handler 0x0800b30b Code Wk vector_table_M.o [4]
SysTick_Handler 0x0800b30b Code Wk vector_table_M.o [4]
UsageFault_Handler 0x0800b30b Code Wk vector_table_M.o [4]
X 0x20000000 0x1 Data Gb main.o [1]
Y 0x20000001 0x1 Data Gb main.o [1]
__cmain 0x0800b31d Code Gb cmain.o [4]
__exit 0x0800b349 0x14 Code Gb exit.o [5]
__iar_SB 0x0800b368 Data Gb bwt_init3c.o [4]
__iar_data_init3 0x0800b2bd 0x2c Code Gb data_init3.o [4]
__iar_program_start 0x0800b35d Code Gb cstartup_M.o [4]
__iar_zero_init3 0x0800b2e9 0x22 Code Gb zero_init3.o [4]
__low_level_init 0x0800b333 0x4 Code Gb low_level_init.o [3]
__vector_table 0x08000000 Data Gb vector_table_M.o [4]
_call_main 0x0800b329 Code Gb cmain.o [4]
_exit 0x0800b33d Code Gb cexit.o [4]
_main 0x0800b32f Code Gb cmain.o [4]
exit 0x0800b337 0x4 Code Gb exit.o [3]
i 0x20000010 0x4 Data Gb main.o [1]
index 0x2000000c 0x4 Data Gb main.o [1]
main 0x0800772d 0x1e Code Gb main.o [1]
num 0x20000018 0x4 Data Gb main.o [1]
shift0 0x20000006 0x1 Data Gb main.o [1]
shift1 0x20000007 0x1 Data Gb main.o [1]
shift2 0x20000008 0x1 Data Gb main.o [1]
shift3 0x20000009 0x1 Data Gb main.o [1]
[1] = D:\STM32_project\OLED\Debug\Obj
[2] = command line
[3] = dl7M_tln.a
[4] = rt7M_tl.a
[5] = shb_l.a
30 712 bytes of readonly code memory
15 216 bytes of readonly data memory
2 077 bytes of readwrite data memory
Errors: none
Warnings: none
Code memory - это столько занимает исполняемый код?Странно, но программа собственно небольшая. Всю память должны занимать константные массивы.