Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

***WAH***

***WAH***

2008-03-30 by steamphreaque

Help!

   In AVRStudio 4.13 SP2: I am attempting to break my assembly
language file up into multiple files, as 3000+ lines is a bit
unmanageable in a single file.   So I captured out portions into
various external files, and am trying to use the .include directive to
include them at the appropriate points in the main source file.

   Unfortunately, AVRStudio defaults to *\Program
Files\Atmel\Tools\Assembler2\Applications Notes\  for .includes.


   So how do I point it to my local dir for this include files?  I am
using Windows Vista, and even though I am putting in the path that
Windows Explorer reveals, AVRStudio is claiming it cannot find the
files.   This is driving me bonkers!

   Someone?

thanks

avrFreak

Re: ***WAH***

2008-03-31 by steamphreaque

--- In AVR-Chat@yahoogroups.com, John Samperi <samperi@...> wrote:
>
> At 12:01 PM 31/03/2008, you wrote:
> >    Unfortunately, AVRStudio defaults to *\Program
> >Files\Atmel\Tools\Assembler2\Applications Notes\  for .includes.
> 
> Use the FULL path in your include directive.
> 
> .include        "c:\avr\projects\dis25100\int_s_dis25100.asm"
> .include        "c:\avr\lib\TWI_master_m48_m88_m168.asm"
> 
> for the default directory where you have you project you can omit
the path
> 
> This:
> .include        "c:\avr\projects\dis25100\int_s_dis25100.asm"
> 
> can be:
> .include        "int_s_dis25100.asm"
> As long as it resides in the same folder as the project.
>

John:

    I have done that.  No matter what I put in the .include, it comes
back as "not found" when I try to assemble it.   I have used the path:
C:\Users\avrFreak\Documents\Pendant-Toga\Declarations.asm

Which, according to Windows Explorer is the correct path, but
AVRStudio insists it isn't there. )-:

   I have been fighting with this ALL DAY.  )-:


avrFreak

Re: [AVR-Chat] ***WAH***

2008-03-31 by James Wagner

On Mar 30, 2008, at 6:01 PM, steamphreaque wrote:

> Help!
>
> In AVRStudio 4.13 SP2: I am attempting to break my assembly
> language file up into multiple files, as 3000+ lines is a bit
> unmanageable in a single file. So I captured out portions into
> various external files, and am trying to use the .include directive to
> include them at the appropriate points in the main source file.
>
> Unfortunately, AVRStudio defaults to *\Program
> Files\Atmel\Tools\Assembler2\Applications Notes\ for .includes.
>
> So how do I point it to my local dir for this include files? I am
> using Windows Vista, and even though I am putting in the path that
> Windows Explorer reveals, AVRStudio is claiming it cannot find the
> files. This is driving me bonkers!
>
> Someone?
>
> thanks
>
> avrFreak
>
>
> 

I have not had an problem with includes. I think that include path is  
the default if it is not found in the project folder.

Jim



[Non-text portions of this message have been removed]

Re: [AVR-Chat] ***WAH***

2008-03-31 by John Samperi

At 12:01 PM 31/03/2008, you wrote:
>    Unfortunately, AVRStudio defaults to *\Program
>Files\Atmel\Tools\Assembler2\Applications Notes\  for .includes.

Use the FULL path in your include directive.

.include        "c:\avr\projects\dis25100\int_s_dis25100.asm"
.include        "c:\avr\lib\TWI_master_m48_m88_m168.asm"

for the default directory where you have you project you can omit the path

This:
.include        "c:\avr\projects\dis25100\int_s_dis25100.asm"

can be:
.include        "int_s_dis25100.asm"
As long as it resides in the same folder as the project.

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Re: [AVR-Chat] Re: ***WAH***

2008-03-31 by John Samperi

At 01:36 PM 31/03/2008, you wrote:
>     I have done that.  No matter what I put in the .include, it comes
>back as "not found" when I try to assemble it.   I have used the path:
>C:\Users\avrFreak\Documents\Pendant-Toga\Declarations.asm

...and I guess you have put the quotation marks around the path...I know
silly question :-)

Have you tried just using just the plain  C:\ path? I have never had any
problems with include paths. Maybe remove the - from the path?
Clutching at straws..

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Re: [AVR-Chat] ***WAH***

2008-03-31 by David Kelly

On Mar 30, 2008, at 8:01 PM, steamphreaque wrote:

>   Help!
>
>   In AVRStudio 4.13 SP2: I am attempting to break my assembly
> language file up into multiple files, as 3000+ lines is a bit
> unmanageable in a single file.   So I captured out portions into
> various external files, and am trying to use the .include directive to
> include them at the appropriate points in the main source file.

Why don't you let the assembler build the separate files and let the  
linker make the connections?

--
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.

Re: [AVR-Chat] ***WAH***

2008-03-31 by John Samperi

At 02:25 PM 31/03/2008, you wrote:
>Why don't you let the assembler build the separate files and let the
>linker make the connections?

What linker :-)


Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Re: ***WAH***

2008-03-31 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, David Kelly <dkelly@...> wrote:
> Why don't you [...] let the  
> linker make the connections?
The Atmel AVR assembler is an absolute assembler, producing .hex files 
directly with no linker.  That's one of the several good reasons to 
use gas instead.

Don Kinzer
ZBasic Microcontrollers
http://www.zbasic.net

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.