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.

CCS run time error Can't find sourcefile

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..

  • IDE Version: CCS  6.0.1.00040 

  • Hello,

    vinoth s1 said:
    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.

    This warning is simply telling you that your application is halted in a function inside the isr_trap.asm file and that the debugger cannot file the location it. This is because isr_trap.asm is part of the run-time support library. If you want to have some source debug visibility, you can point the debugger to the location of it. It should be in:

    <CCS INSTALL DIR>\ccsv6\tools\compiler\msp430_4.3.3\lib\src

    Thanks

    ki

  • As for the reason why you may be ending up in isr_trap.asm, you likely have an interrupt occuring for which your code does not have an ISR. Please see this related post.

  • As you can see in the above code i am not enabling any ISR.

  • Aarti if i comment the below line 

    // Gpio2[0].GPIO_PinMask = 0;

    the control comes to main() without any problem but what is the problem with this line.

    Basically i have huge application program and i have narrowed down to the small part to find the issue.

    Thats the above code. Any suggestions..

  • vinoth s1 said:

    if i comment the below line 

    // Gpio2[0].GPIO_PinMask = 0;

    the control comes to main() without any problem but what is the problem with this line.

    This question would be better answered in the MSP430 forum so I would suggest starting a new post there. Be sure to include the code snippet and the fact that you are ending up in the trap isr.