Forum Discussion
Altera_Forum
Honored Contributor
20 years agoI guess what I'm still confused about is how the memory gets allocated for those global variables then. For instance, I have an app based off the simple socket server. It tells me the heap starts at 0x01076520. If I subtract the sizes of .exceptions, .text, .rodata, .rwdata, and .bss (as reported by the ELF file) from that I get 0x1000020, which is my exception address.
As I understand it my code gets compiled into an ELF file, elf2flash is called to create a flash file with the bootloader code added onto the front, then that flash file is transmitted to the board, where the bootloader copies everything into RAM and runs it. So how does the .bss section get allocated in memory if the sections that refer to it in the ELF file don't make it into the .flash file?