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 Problems with uploading Atmel Studio projects to Arduino (Read 3579 times)
Tom Z.
Newbies
*
Offline


Posts: 2
Joined: Nov 17th, 2014
Problems with uploading Atmel Studio projects to Arduino
Nov 17th, 2014 at 9:23am
Print Post  
Hello,

I am an Atmel Studio user for quite some time. Recently I discovered the advantages of Arduino and I am happy to see that there is a possibility to program them from within Atmel Studio 6.1  via the serial interface using Visual Micro. However, I encountered the following problem: When uploading an Arduino sketch (e.g. one of the example sketches which come along with Visual Micro) from Atmel Studio into the MCU via the serial interface, everything works smooth. Also using the programmer AVR-ISP mkII works fine. But when I try to upload an Atmel Studio project (not an Arduino sketch), Atmel Studio is giving an error message saying that no programmer tool is selected (I use exactly the same setting when successfully uploading an Arduino sketch). Has anybody else encountered a similar problem?

I assume that somewhere in the Arduino sketch it is define, which programming interface should be used. Can somebody indicate, which setting I should use so that I can upload an Atmel Studio project to the Arduino using the serial interface?

I use the following: 
Atmel Studio Version 6.2.1502 SP1
Arduino Uno
Arduino IDE 1.0
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems with uploading Atmel Studio projects to Arduino
Reply #1 - Nov 17th, 2014 at 1:42pm
Print Post  
Hi Tom,

Thank you for your good overview.

We have not yet implemented uploading a .hex produced by a non-arduino complile.

However, you can switch on tools>visual micro>verbose messages and make an Arduino upload. then you will see the command to load a hex onto the mcu
  
Back to top
IP Logged
 
Tom Z.
Newbies
*
Offline


Posts: 2
Joined: Nov 17th, 2014
Re: Problems with uploading Atmel Studio projects to Arduino
Reply #2 - Nov 18th, 2014 at 4:39pm
Print Post  
Hi Tim,

thanks for your swift answer, although I am not quiet sure what I can learn from the verbose messages...Sad

However, I found another way using avrdude with the option Tools > External tools. To make thinks easier I have created a button linked to the new function, so I just click on it and the .hex will be uploaded on the MCU.

Nevertheless, I would appreciate if an upload of .hex produced by a non-arduino compile would be implemented in the future (it is so much faster to hit F5 instead of clicking around with the mouse Wink)

Cheers,

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


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems with uploading Atmel Studio projects to Arduino
Reply #3 - Nov 18th, 2014 at 5:21pm
Print Post  
Hi Tom,

fyi: When uploading the last line of the verbose message shows the command you can put in a .bat file.

But thanks for the info. It helps to understand the workflow. Whilst not an arduino build, it makes sense to allow gcc upload via arduino serial bootloader.

« Last Edit: Nov 18th, 2014 at 5:21pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint