Dmitry,

thanks for prompt answer, I found out two minutes
after I posted a mail how to do that. I am using 166 bytes
of bss, but I am overlaping my variables with stack (using
over 90 bytes for stack as far I was able to found with GDB tool)
I am doing some floating calculations :-)
 Is there any way or tool to calculate the amount of stack size
the program is using?

On 8031 I `ve done that with some extra lines
of program in timer interrupt, just to transfer
stack pointer to a variable which you can check
after some time of running the program, but i believe
it has to be easier way to do it on MSP430.

Regards
  Saso

  ----- Original Message ----- 
  From: Saso Zbontar 
  To: mspgcc-users@lists.sourceforge.net 
  Sent: Wednesday, March 26, 2003 3:31 PM
  Subject: Ram usage of MSP430


  Hi,

  How to find out how much RAM is used on target
  processor when I compile the program or to find out
  how much RAM has the compiler reserved for variables
  defined in my program. For example: according to my 
  calculations I am using about 120 bytes of RAM on MSP430f413
  but something odd hapens when i run the program. I think some 
  variables are overlaping. Stack is set to default value ( 0x0300 )

  Any Ideas?

  Regards Saso

Reply via email to