Tool/software: Code Composer Studio
Hello,
I am new to the FRAM parts and CCS6 and working on a new product design with the MSP430FR2532. I have the FET debugger attached to the target board, it powers up and downloads the code and the debugger starts but unable to control any gpio basic HI/LOW. I origianally had the timerA0 setup and it is working but reduced the code to try and isolate why the gpio are not working. I keep getting this debug error popping up when stepping through the code and the address is the next location in assembly view...
No source available for "__crt0_start() at H:/CCS WORKSPACE\BAT_CHRG_NICD\Debug\BAT_CHRG_NICD.out:{3} 0xe00c{4}"
#include <msp430.h>
#include <msp430fr2532.h>
int main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
P1DIR |= 0x01 + 0x02 + 0x03 + 0x04;
CSCTL1 |= DCORSEL_5; // Set DCO setting - 16MHz
CSCTL2 &= (~FLLD0); // when using DCO from REF0CLK this divides DCO
CSCTL3 = SELMS__REFOCLK;
CSCTL4 = SELA__REFOCLK + SELMS__DCOCLKDIV; // ACLK = REF0CLK (32kHz), SMCLK/MCLK = DCODIV = 16MHz internal
CSCTL5 = DIVM_0 + DIVS_3; // MCLK divider (0) = 12MHz or 16MHz from interna, SMCLK dividers (8) = 1.5MHz or 2MHz internal DCO divided
__enable_interrupt();
while(1){
P1OUT ^= 0x01;
P1OUT ^= 0x02;
P1OUT ^= 0x03;
P1OUT ^= 0x04;
}
}
Any help would be appreciated.
Thks!
Mark