This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F417:Using live watch on iar

Part Number: MSP430F417
Hello to everyone. I want to check the variables of the pin to which the step motor is connected from the live watch window in iar. The project's debugger setting is in simulation. Can you tell me where I went wrong? 
here is my code:
#include "io430.h"
#include "in430.h"
 
int voltage ;

void main( void )
{
  void Delay(int j);
  
  // Stop watchdog timer to prevent time out reset
  WDTCTL = WDTPW + WDTHOLD;
 
  P6DIR|=0XFF;
  P6SEL  &= ~BIT4; 
  
  P6OUT |=BIT4;
  Delay(50);
  
  while(1){
    
   P6OUT = (P6IN & voltage);
   
  }
  
}

void Delay(int j)
{
  int i;
  for(j=0;j<100;j++)
      for(i=0;i<0xFFFF;i++);
}