Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Bug: AtmelStudio / VisualMicro does not parse 1.5.x Sketchbook Projects Properly (Read 6485 times)
Stanto
Newbies
*
Offline


Posts: 2
Joined: Sep 13th, 2014
Bug: AtmelStudio / VisualMicro does not parse 1.5.x Sketchbook Projects Properly
Sep 13th, 2014 at 11:13pm
Print Post  
When importing the following sketch/sketchbook:
https://github.com/emfcamp/Mk2-Firmware

Which is for the Tilda badge used by EMFCamp festival based on the Arduino Due (ATSAM3X8E), the following happens which prevents using a SAM-ICE and also compiling and uploading code to the custom hardware:

1. The project on import is not recognised as ARM hardware and so the debug profile is setup for AVR options only. Even though the folder structure for the selected hardware profile to compile for complies with the hardware folder structures that help to denote architecture: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-spe...

This then has to be altered by editing the .cppproj file that's created and changing it to the correct device and device series, etc.

2. When compiling, the project builds but fails upon upload. This is because it doesn't like the following line in the boards.txt for the architecture configurations:

tilda_mke_rtps.upload.tool=arduino:bossac

Even though the Arduino IDE 1.5.x is happy with it, visualmicro/atmenstudio requires it to be:

tilda_mke_rtps.upload.tool=bossac

With it set to arduino:, the compiler complains that it's an invalid string.
  
Back to top
 
IP Logged
 
Mark Steward
Newbies
*
Offline


Posts: 1
Joined: Sep 14th, 2014
Re: Bug: AtmelStudio / VisualMicro does not parse 1.5.x Sketchbook Projects Properly
Reply #1 - Sep 14th, 2014 at 1:54pm
Print Post  
I also have this problem - it all appears to work fine as long as I make the changes. Would be nice for it to do the right thing.

The link above also includes details on how referencing another core works:

  Referencing another core, variant or tool
« Last Edit: Sep 14th, 2014 at 1:57pm by Mark Steward »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Bug: AtmelStudio / VisualMicro does not parse 1.5.x Sketchbook Projects Properly
Reply #2 - Sep 14th, 2014 at 2:19pm
Print Post  
Thanks for all the info.

visual Micro does support the core: syntax in many functions for both the 1.0.x and 1.5.x compile but sounds like we need some additional testing/work.

Hopefully this can be included in the next release due this week or next.

Thanks again
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Bug: AtmelStudio / VisualMicro does not parse 1.5.x Sketchbook Projects Properly
Reply #3 - Sep 14th, 2014 at 11:16pm
Print Post  
Hi both,

There is an Sp2 version of the current release with a fix for this issue. It wasn't how things were meant to be so I hope you find this release works properly.

Thanks again for the clear reports.

@Stanto

1)
If you can please switch on "Tools>Visual Micro>Upload using programmer" and select the "tools>Visual Micro>Programmers>Atmel Studio - ATMEL ICE (ISP)". When you click the green or blue tool bar arrows does the upload happen correctly via your ICE?

2)
Quote:
The project on import is not recognised as ARM hardware and so the debug profile is setup for AVR options only


This can be avoided by creating an empty sam project (in a folder with the same name) and then manually adding a .ino text file (with the same name). Visual Micro will then start working with the project that you have created. 

The reason for this, with sam boards, is that I haven't figured out the best way to switch the project type when selecting different boards such as Avr/Sam Smiley In Visual Studio we only need one project type but then we don't get non-arduino programmers (atmel). 

« Last Edit: Sep 14th, 2014 at 11:16pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Stanto
Newbies
*
Offline


Posts: 2
Joined: Sep 13th, 2014
Re: Bug: AtmelStudio / VisualMicro does not parse 1.5.x Sketchbook Projects Properly
Reply #4 - Sep 16th, 2014 at 12:23am
Print Post  
Tim@Visual Micro wrote on Sep 14th, 2014 at 11:16pm:
Hi both,

There is an Sp2 version of the current release with a fix for this issue. It wasn't how things were meant to be so I hope you find this release works properly.


Awesome, thanks. I'll try it out soon.

Quote:
1)
If you can please switch on "Tools>Visual Micro>Upload using programmer" and select the "tools>Visual Micro>Programmers>Atmel Studio - ATMEL ICE (ISP)". When you click the green or blue tool bar arrows does the upload happen correctly via your ICE?


I have the SAM-ICE, not the ATMEL ICE, so it only has the 20 pin connector which I have made a custom cable to the 10 pin on the Tilda board.

The board doesn't programme via this device (it doesn't come up as an option to do so in atmelstudio/visualmicro), it does typically programme successfully via the virtual COM port (I haven't tested with the service pack, but it was where I had to remove the "arduino:" before it would flash).


Quote:
This can be avoided by creating an empty sam project (in a folder with the same name) and then manually adding a .ino text file (with the same name). Visual Micro will then start working with the project that you have created. 

The reason for this, with sam boards, is that I haven't figured out the best way to switch the project type when selecting different boards such as Avr/Sam Smiley In Visual Studio we only need one project type but then we don't get non-arduino programmers (atmel). 



Ah, I see that workaround, but that's a bit awkward I guess. That's why I suggested trusting the path in the hardware folder for the definition of the board you're flashing, enumerating that as to which folder it's in (sam or avr) looks to be a reliable enough way until the folder tree is changed for whatever reason in the future.

Else I guess we're relying on hoping a suggestion being made to arduino to define it in the boards.txt?
« Last Edit: Sep 16th, 2014 at 12:26am by Stanto »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Bug: AtmelStudio / VisualMicro does not parse 1.5.x Sketchbook Projects Properly
Reply #5 - Sep 16th, 2014 at 9:22am
Print Post  
The problem is that 3rd party hardware is not in a sam folder and the zero is/will be in a folder called samd

The other problem is that you can easily switch between, for example, Uno and Sam in which case the entire project structure needs to alter in atmel studio.

I need to do some more testing in this area. My view was that the cppproj contains <avr> tags which needs a complete re-write when switching architecture.

Now that the 1.5.x 3rd party stuff is working I will split this post into separate discussions shortly.
« Last Edit: Sep 16th, 2014 at 9:22am by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint