Hello,
We are running sample code on the HDK Board and we are considering whether we need an external SRAM or not. The sample code we have includes configured Halcogen drivers and unit tests without any OS. We noticed that in debug mode, the .out image is 670KB with the respective memory map.
MEMORY CONFIGURATION
name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
VECTORS 00000000 00000020 00000020 00000000 X
FLASH0 00000020 0017ffe0 000186a2 0016793e R X
FLASH1 00180000 00180000 00000000 00180000 R X
STACKS 08000000 00001e00 00000000 00001e00 RW
RAM 08001e00 0003e200 00000dd8 0003d428 RW
SEGMENT ALLOCATION MAP
run origin load origin length init length attrs members
---------- ----------- ---------- ----------- ----- -------
00000000 00000000 000186c8 000186c8 r-x
00000000 00000000 00000020 00000020 r-x .intvecs
00000020 00000020 00017844 00017844 r-x .text
00017868 00017868 00000c66 00000c66 r-- .const
000184d0 000184d0 000001f8 000001f8 r-- .cinit
08001e00 08001e00 00000ddc 00000000 rw-
08001e00 08001e00 00000a1c 00000000 rw- .bss
08002820 08002820 000003bc 00000000 rw- .data
Our release build is 609KB with the following memory map:
MEMORY CONFIGURATION
name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
VECTORS 00000000 00000020 00000020 00000000 X
FLASH0 00000020 0017ffe0 0000f55a 00170a86 R X
FLASH1 00180000 00180000 00000000 00180000 R X
STACKS 08000000 00001e00 00000000 00001e00 RW
RAM 08001e00 0003e200 00000dd8 0003d428 RW
SEGMENT ALLOCATION MAP
run origin load origin length init length attrs members
---------- ----------- ---------- ----------- ----- -------
00000000 00000000 0000f580 0000f580 r-x
00000000 00000000 00000020 00000020 r-x .intvecs
00000020 00000020 0000e6fc 0000e6fc r-x .text
0000e720 0000e720 00000c66 00000c66 r-- .const
0000f388 0000f388 000001f8 000001f8 r-- .cinit
08001e00 08001e00 00000ddc 00000000 rw-
08001e00 08001e00 00000a1c 00000000 rw- .bss
08002820 08002820 000003bc 00000000 rw- .data
How much of the program is actually loaded in RAM? Is all of it loaded at boot?
Also, in regards to the debug image, would it load all of the debug symbols when debugging? Is there a difference using XDS560 JTAG or XDS100v2?
Thanks.