How to enable studio 6 generating a list file ??

Go To Last Post
10 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi

I've only used (AVR Studio 4 before this version)

I have been trying to find (In Atmel Studio 6)

The Setting (Radio Button) or (Check Box) that would
auto generate a "List" file (lfile)

When projects are Built (Compiled)

Any one know where they have hidden that option ??

Thanks

"We look for things.. Things that make us go."

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is this for the assembler?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Project menu, Properties
Toolchain tab
In the tree view: AVR/GNU Common, Output files
Check ".lss (Generate lss file)

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

@js
Yes this would be for "ASM" not for "GCC" (if different)

How ever.. I did notice that it currently generates a ".lss" file (Thanks Johan)

I took a look inside.. (Guess I could use that if no other option.)

My code is way at the bottom (Below all the stuff that is in the ".inc" file)

I expected to see and find an ".lst" extension.
Or is there a setting to turn on ".lst" files ??

Just currious:

It does not look as if the Assembler responds to this "Assembler directives" code :

.NOLIST					; Do not list what is in the .inc file
.INCLUDE "tn25def.inc"	; Include file needed for the ATTiny25
.LIST					; Turn Listing back on for the program

I would expect the contents of the ".inc" file not to show in this list (.lss) file..

"We look for things.. Things that make us go."

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
I would expect the contents of the ".inc" file not to show in this list (.lss) file..

Why? If an assembler include file contains "actual code", "memory allocation" etc - would you not want that in your list file?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well not all of the stuff in the Include file (it's remarks ect.)

If it only listed the Labels I used from that file would be OK

Then starting at my code.. "But no big deal"

I guess the .lss (extension) is the new style of list file..

I usually edit the List file to be nice and Poofy with re-adjusted tab's and (Re-Colored) text
to match what it looked like in the "AVR IDE" software.. (Then Make a PDF) or like document.

But.. That's what you get when Microsoft gets involved with software
development. What works now, many not work in the next patch.

So.. Thanks for pointing out that the .lss contains (in a way) what I was looking for.
Makes me a Happy Camper now that I see it has it.

When I looked in that file at first

I didn't scan all the way to the bottom to discover my code..

I Just assumed it was the ".inc" file only.

Thanks again Guys

Chow

"We look for things.. Things that make us go."

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
It does not look as if the Assembler responds to this "Assembler directives" code :
It DOES. However Studio "helps" you out :evil: by including another copy of the .inc file which gets listed wether you like it or not, at least I haven't wasted the time to find out how to stop it if it is possible.

So if you remove .NOLIST you will find TWO copies of the .inc file in your .lss file which you need to wade through before you get to see your code. :roll:

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok had another look.

If you go to the project properties > Toolchain > AVR Assembler General scroll down to the bottom and you find Include File with ($IncludeFile), delete this and Studio will not add another .inc file so you are back to normal.

Just had a quick test and it seems to work.

Also it may be possible to change the .lss file to .lst file but it it greyed out at the moment, next spurt of energy I may look more into this. :-)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm writing here because this is the top result in Google for my search.

 

I have not found a checkbox to enable generating lst files, but I figured it out how to generate them.

So here is the solution for futher reference.

 

In project settings -> Toolchain -> AVR/GNU C (and/or C++) Compiler -> Miscellaneous add this to the other flags input box:

 -Wa,-adhlns=$(@:%.o=%.lst)

 

Now the compiler generates .lst file for every compilation unit.

(* In contrast one .lss file is generated from the linked output elf file by objdump (disassembling it) and so lacks information found in lst files.)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

-save-temps is a lot easier (the IDE already has a tick box for it).