Pumpkin, Inc.

Pumpkin User Forums

IAR Could not find source file

For issues specific to TI's MSP430 line of ultra-low-power microcontrollers, including compilers (e.g. Quadravox AQ430), IDEs (e.g. IAR Embedded Workbench) and development tools (e.g. TI MSP-FET430 Flash Emulation Tool).

IAR Could not find source file

Postby garrett » Mon Oct 27, 2008 7:45 am

Hi Andrew,

I am using IAR for MSP430 ver. 4
I am using Salvo Lib "xit" version.
My project builds fine, but when I go to
do the debug a box pops up that says:
"Could not find the source file
D:pumpkinsalvosrcsalvoinit2.c"
It asks me to provide the directory for that file (which I do) and then it downloads OK.

Do you know why it keeps asking for this source file if I am doing a lib build?
Also, how can I specify where it is to look?

Thanks in advance,

Dave

garrett
 
Posts: 8
Joined: Tue Oct 21, 2008 11:00 pm
Location: Cranberry Township PA USA

Re: IAR Could not find source file

Postby aek » Mon Oct 27, 2008 8:02 am

It's asking you in order to improve your debug experience. By telling it where to look for that file, it enabled C-SPY to step through the Salvo code if you happen to land on an instruction that's inside the Salvo library when you break in C-SPY. I believe it will only ask you once, or once per C-SPY session.

If you don't want to be able to step through the Salvo source code as part of debugging , then build your project with an "x-t" library.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: IAR Could not find source file

Postby Bob Techentin » Tue Nov 11, 2008 8:55 am

I understand why C-SPY is asking for the location of the source files. I just don't want to answer the question every time I fire up the debugger.

Which project option can be set so that the debugger knows where to find the source files? (without asking)

I notice that it doesn't ask for this when building from source. I suppose it already knows where the source files are, in that case.

Thanks,
Bob

Bob Techentin
 
Posts: 5
Joined: Tue Nov 11, 2008 12:00 am
Location: Rochester, MN USA

Re: IAR Could not find source file

Postby aek » Tue Nov 11, 2008 9:07 am

That's a question for IAR ...

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: IAR Could not find source file

Postby Bob Techentin » Tue Nov 11, 2008 10:14 am

IAR doesn't know the answer either.

I suppose I can use the debug info libraries only when I really need to step into OS functions.

Or I could buy a new disk drive and put a copy of the source code into d:pumpkinsalvosrc. :-)

Or maybe I can rebuild the salvoliar430it.r43 library. Then it will have the correct path names. (Sounds hard. Maybe I use the makefile under the src/make directory.)


Bob Techentin
 
Posts: 5
Joined: Tue Nov 11, 2008 12:00 am
Location: Rochester, MN USA

Re: IAR Could not find source file

Postby aek » Tue Nov 11, 2008 10:19 am

Yes, it's built on D:

See the Libraries chapter of the Salvo User Manual -- if you have Cygwin installed with the right makefile stuff, re-building the libraries is trivial.

--Andrew

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: IAR Could not find source file

Postby garrett » Tue Nov 11, 2008 10:25 am

The cheap and dirty fix:

Take Partitian Magic or something similar
and create a small D: drive on you current physical volume. Then move them there(if you don't want to deal with rebuilding the libs)

BTW, I did not say it was elegant !

garrett
 
Posts: 8
Joined: Tue Oct 21, 2008 11:00 pm
Location: Cranberry Township PA USA


Return to TI's MSP430

Who is online

Users browsing this forum: No registered users and 3 guests

cron