Avr Studio 6 source editor question

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

Hi!

I have just started using AVR Studio 6 and I have a few questions:
- I liked the feature of Eclipse, that if you bring your mouse over a variable, or constant etc. , then it would show the information related to that object (where it was defined) in a small pop-up like window beneath the pointed object. And it shows also the comment related to that object.
In AVR Studio 6 I can't find this feature.

- And another small thing: Even in the old AVR Studio it was solved, that the header and the source files where listed under a different folder in the project tab, although on the hard drive they were in the very same folder. But here in the Studio 6 it seems, that if I want to organize them, I also have to put physically in different folders, which then messes up the path, and so the build doesn't work. Is there a solution for that.

Thanks

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

Quote:

In AVR Studio 6 I can't find this feature.

Is VassistX enabled and have you tried the Naggy add-on? You should at the very least be seeing this happening...

Attachment(s): 

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

Quote:
And another small thing: Even in the old AVR Studio it was solved, that the header and the source files where listed under a different folder in the project tab, although on the hard drive they were in the very same folder. But here in the Studio 6 it seems, that if I want to organize them, I also have to put physically in different folders, which then messes up the path, and so the build doesn't work. Is there a solution for that.

Adding virtual folders to Project in Solution Explorer is currently not supported by Atmel Studio. As a workaround, you can add a physical folder "HeaderFiles" to project and then add the header files(available in different folder) as link to "HeaderFiles".

To add a file as a link to the project, select the "Add -> Existing Item" from the folder context menu(right click the folder in the solution explorer) and select "Add as link" option.
Please refer the screenshot.

Attachment(s): 

Regards,
Deena

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

Quote:
have you tried the Naggy add-on?
Yeah, almost 40 years ago :? she still nags just as good as she did then.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

clawson wrote:
Quote:

In AVR Studio 6 I can't find this feature.

Is VassistX enabled and have you tried the Naggy add-on? You should at the very least be seeing this happening...

Thanks for the tip, I found in the VAssistX -> Visual Assist X Options... -> Advanced -> Display -> "Display comments from source files when available" checkbox enables the feature I wanted(not as easily readable as in Eclipse, but ok).

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

tsgd84 wrote:

Adding virtual folders to Project in Solution Explorer is currently not supported by Atmel Studio. As a workaround, you can add a physical folder "HeaderFiles" to project and then add the header files(available in different folder) as link to "HeaderFiles".

To add a file as a link to the project, select the "Add -> Existing Item" from the folder context menu(right click the folder in the solution explorer) and select "Add as link" option.
Please refer the screenshot.

Thanks for the tip. It works.

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

This is a really helpful feature. Should be on by default.

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

Quote:

This is a really helpful feature. Should be on by default.

+1

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

tsgd84 wrote:
Adding virtual folders to Project in Solution Explorer is currently not supported by Atmel Studio. As a workaround [...]

There is in fact another workaround too, at least for Windows Vista / Windows 7 users. You can utilize the junction points feature of the NTFS file system (there are tricks to make junction points work in XP too, but it doesn't seem to work for this purpose. At least not with the trick I tried).

From the windows command line you can create a junction (symlink) from your project folder to the folder you want to virtually add to your project.

Example:
C:\My Project\> mklink \j virtuallibraryfolder "C:\libraryfolder\"

If you now open your project, and enable "Show All Files" (second button in toolbar) in your "Solution Explorer", virtuallibraryfolder should appear. Right click it, and select "Include In Project".

NOTE: For some reason I only got this to work with the virtual folder located at the project root.

NOTE: I haven't used this technique for any real projects, but I did some quick tests, and it seem to work as desired - i.e compiles etc...

If you're unfamiliar with junction points / reparse points, you might want to read up on them slightly before using them. They're not exactly like linux symlinks.

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

Quote:

at least for Windows Vista / Windows 7 users.

As I noted the other day it's also possible for XP users. You just need to get junction.exe from sysinternals:

http://technet.microsoft.com/en-...

This is from Microsoft engineers so is not just someone's "hack" but the official Microsoft way to set up junctions in pre-Win2000 operating systems.

As I also noted the other day you probably should look through the complete collection while on the technet website:

http://technet.microsoft.com/en-...

There are many utilities there that seriously enhance the use of Windows, two particularly important ones being "Process Explorer" and "Process Monitor" (you won't use Task Manager again!).