I'm Pandit. I'm doing with msp430 programming using MSPGCC compiler. I have little doubt about knowing a data memory used by the project. Actually after loading the code onto the chip it'll show like this:
Erasing target flash - all... Erased OK
Loading section .text, size 0x2da lma 0x8000
Loading section .data, size 0x82 lma 0x82da
Loading section .vectors, size 0x20 lma 0xffe0
Start address 0x8000, load size 892
Transfer rate: 1 KB/sec, 297 bytes/write.
Loading section .data, size 0x82: This size only refers to the initialized variables. Means any variables intialized some values like this:
uint16_t halAdcVal = 0;
If i didn't initialize to zero. It'll not show the data size for this. How to get to know the data size for this.
For this type variables i can initialize to zeros but for an array type of variables its difficult to initialize to zero.
If i define array variable like this:
It'll not show this in data mem size. Please tell me how to get to know this size.
try msp430-objdump -h file.elf. It will print all sections addresses and sizes.
uint8_t Buf; goes into .bss section.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.