I have the below code.
=======================
main.c
======================
#include "msp430f2410.h"
#include "gpio.h"
void CLOCK_Reset( void )
{
DCOCTL = 0x60; // DCO = 3, Mod = 0
BCSCTL1 = 0x19; // Divider for ACLK = 2, RSEL = 9
BCSCTL2 = 0x00; // MCLK uncal 1.6MHz - 3MHz
BCSCTL3 = XCAP_0; // Crystal load capacitor
}
void main( void )
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
CLOCK_Reset();
GPIO_Port();
while(1);
}
=============================================
gpio.c
==============================================
#include "msp430f2410.h"
#include "gpio.h"
typedef struct
{
char GPIO_PinMask; // Pin mask
} GPIO_;
static GPIO_ Gpio2[ 4 ]; // Port 2
void GPIO_Port( void )
{
Gpio2[0].GPIO_PinMask = 0;
}
=======================================
gpio.h
=======================================
void GPIO_Port( void );
I can build the code.
When i run i gives me below error
===========
Can't find a source file at "c:\users\bgh36658\appdata\local\temp\ti_mkl~1\src/isr_trap.asm" Locate the file or edit the source lookup path to include its location.
============
i made --cinit_hold_wdt to on as per below
http://processors.wiki.ti.com/index.php/MSP430_FAQ#WDT_fires_during_C_startup_code
what are the possibilities of this issue..