Other Parts Discussed in Thread: ENERGIA,
Tool/software: Code Composer Studio
I am new to programming however I have worked with a TivaC series MCU in IAR with a lot of success, however using the newer MSP430FR5994 has stumped me. I cannot seem to get connected to the hardware using IAR or CCS. I have watched several examples and utilized the same code for the most part aside from altering the bit number since the tutorials exclusively use the 430g models and had leds on different pins. I have set the correct device type for the project in both IAR and CCS but both enter the debug mode and the debug leds light up and they alter the registers values but nothing happens to the actual pins or leds on the main board at the bottom. and I did ensure the debugger was set to the device not the simulator. The hardware is not broken I can run a blinky program from energia and it works fine. I cannot figure what I am doing wrong or if I have the wrong header file etc. Help with this frustrating problem would be most appreciated.
```
#include "io430.h"
int main( void )
{
// Stop watchdog timer to prevent time out reset
WDTCTL = WDTPW + WDTHOLD;
PM5CTL0 = 0; //manually clear the lock bit just in case but did no good
P1DIR = BIT0 + BIT1 + BIT2 + BIT3; //set the first 4 bits as outputs
while(1){
P1REN = BIT0; // attempted to use the pull up register as well as did not it made not difference either
P1OUT = BIT0 + BIT1 +BIT2 + BIT3; // manually set the bits to high
// for(int i = 0 ; i<2 ; i++){}
//P1OUT = 0;
//for(int j = 0 ; j< 2; j++){}
}
}
```