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.

Calling TimerConfigure stops application from running

Hi,

 

I've a working application to which I want to add a timer, so I included timer.h and added a call to TimerConfigure();

As soon as that call is in my code (at the top of main() ), the application stops working and I get the following output in the debugger:
No source available for "_Application_1_Texas Instruments XDS100v2 USB Emulator_0/C674X_0_Texas Instruments XDS100v2 USB Emulator_0/C674X_0_stack_frame_0"

There are no warnings or errors in the compiler output.

Removing that single call makes the app run fine again.

If I include delay.h (and not timer.h) and use the delay functions provided by StarterWare, then everything works fine, including the timer needed for the delay functions!

Why won't my app start if I include a call to TimerConfigure directly?

 

Thanks in advance.

 

Regards,

 

Remco Poelstra

 

  • Hi,

    I found a solution which is very simple but also very annoying and time consuming. Here are the steps I did:

    I copied the code from the function directly inside my code (and commented-out the function call). This would still not make the app run.

    I then commented-out all code from that function except the first line. Compile and run and it worked.

    I reactivated the next line of code. Compile and run.

    Continued this until all of the lines were active again. The app kept working.

    After removing the code and calling the function directly again still worked.

    Seems to be some kind of toolchain problem.

    If anybody has some ideas on how to find the cause of such problems, I would really like know it.....

    Regards,

    Remco Poelstra