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
Hot Topic (More than 8 Replies) How to program and Uno in Atmel without Arduino? (Read 10616 times)
wolfrose
Newbies
*
Offline


Posts: 6
Joined: Mar 22nd, 2016
How to program and Uno in Atmel without Arduino?
Mar 23rd, 2016 at 1:48pm
Print Post  
Hello,

I've been looking for how to identify the Arduino Uno board on Atmel Studio.

I tried a tutorial from
http://www.jayconsystems.com/tutorials/atmerpt1/

Then, I posted a thread on AVR freaks, and one replied that their method is not so good, and I may lock the chip.

So, I want to know how to add any Arduino board to Atmel Studio and so I can program the board?

Regards,
« Last Edit: Mar 27th, 2016 at 12:24pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to add the Arduino Uno AVRISP mkII to Atmel Studio IDE?
Reply #1 - Mar 23rd, 2016 at 4:25pm
Print Post  
Install the visual micro extension for atmel studio via our downloads page.. Then you will find "AVRISP MkII" in the programmers list on the Visual Micro menu.

Alternatively install our most up to date version into Visual Studio 2015 Community and again you will find the AVRISP MKII in the Visual Micro Programmers List.

Please see the documentation for more information

Also keep in mind that if you have an arduino board you might not need to use a programmer. Most Arduino boards have a simpler usb/serial connection which is more common to use. Visual micro will upload using the usb without need to select a programmer.
« Last Edit: Mar 23rd, 2016 at 4:29pm by Tim@Visual Micro »  
Back to top
IP Logged
 
wolfrose
Newbies
*
Offline


Posts: 6
Joined: Mar 22nd, 2016
Re: How to add the Arduino Uno AVRISP mkII to Atmel Studio IDE?
Reply #2 - Mar 23rd, 2016 at 8:37pm
Print Post  
OK

I'm able to see the visual micro with Atmel tabs.
I configured the Arduino Uno settings.
Now, how to upload the code to the Arduino board?


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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to add the Arduino Uno AVRISP mkII to Atmel Studio IDE?
Reply #3 - Mar 23rd, 2016 at 8:41pm
Print Post  
All of the ide's usual "start commands" compile and upload. Such as "debug>start without debugging" which is also usually an arrow on the tool bar.

You need to make sure you have ticked "always use programmer for upload" otherwise serial/usb will be expected.

compile and upload document is here 

documentation index is here
« Last Edit: Mar 23rd, 2016 at 8:43pm by Tim@Visual Micro »  
Back to top
IP Logged
 
wolfrose
Newbies
*
Offline


Posts: 6
Joined: Mar 22nd, 2016
Re: How to add the Arduino Uno AVRISP mkII to Atmel Studio IDE?
Reply #4 - Mar 24th, 2016 at 3:56am
Print Post  
I ticked the "always use programmer for upload"

I chose start without debugging

and got this result
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to add the Arduino Uno AVRISP mkII to Atmel Studio IDE?
Reply #5 - Mar 24th, 2016 at 2:40pm
Print Post  
Yes that is correct because you have created a standard atmel studio gcc project and not an arduino project.

Please find documentation here and please follow first steps
  
Back to top
IP Logged
 
wolfrose
Newbies
*
Offline


Posts: 6
Joined: Mar 22nd, 2016
Re: How to add the Arduino Uno AVRISP mkII to Atmel Studio IDE?
Reply #6 - Mar 25th, 2016 at 7:15am
Print Post  
That's what I want!

I want to work with my Arduino board as an AVR project with the standard C code project.

Right now, I don't want to import Arduino libraries to Atmel Studio. That's for future upgrade and improvement.

So, is the link you provided for dealing with Arduino board as AVR or as Arduino project?

Thank you,
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to add the Arduino Uno AVRISP mkII to Atmel Studio IDE?
Reply #7 - Mar 25th, 2016 at 12:12pm
Print Post  
If I under stand correctly you don't want to use Visual Micro and Arduino for build and upload? 
You just want to use a native Atmel project and native Atmel Ide tools?

I don't support atmel native but I ask you why the tool bar shows the upload device as "ISP on STK500" instead of AVRISP mkII?

« Last Edit: Mar 25th, 2016 at 12:14pm by Tim@Visual Micro »  
Back to top
IP Logged
 
wolfrose
Newbies
*
Offline


Posts: 6
Joined: Mar 22nd, 2016
Re: How to add the Arduino Uno AVRISP mkII to Atmel Studio IDE?
Reply #8 - Mar 25th, 2016 at 2:38pm
Print Post  
OK, what I should understand at this point, or I already understand it.

That Arduino bootloader is for Arduino IDE.
If I want to work as native Atmel project, then I have to burn Atmel fuses. Is that right?

Also, I can keep Arduino bootloader for Atmel Arduino projects, correct?

Your question "ISP on STK500" instead of AVRISP mkII?"

I couldn't find Arduino AVRISP mkII.

I actually don't know the properties of both programmers. Would you provide me some information about them?

Which one for which platform Arduino or Atmel, supported boards, like Arduino Uno, Nano, pro micro, mega 2560 or AVR native programmers?

Regards,
« Last Edit: Mar 25th, 2016 at 2:40pm by wolfrose »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to add the Arduino Uno AVRISP mkII to Atmel Studio IDE?
Reply #9 - Mar 25th, 2016 at 2:41pm
Print Post  
Hi,

1)
For Arduino you can use bootloader or you can use avrisp mkII

2)
For native Atmel cpp you can not use bootloader

The best place for native atmel support is avrfreaks
  
Back to top
IP Logged
 
wolfrose
Newbies
*
Offline


Posts: 6
Joined: Mar 22nd, 2016
Re: How to program and Uno in Atmel without Arduino?
Reply #10 - Mar 26th, 2016 at 8:54pm
Print Post  
Yes, thank you.

1. AVRISP is a firmware or a programmer tool?
2. I know that bootloader is a firmware.
3. I should continue on AVRFREAKS as I have a thread on this topic. So, I hope to find the solution.

Regards,
« Last Edit: Mar 27th, 2016 at 12:24pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to program and Uno in Atmel without Arduino?
Reply #11 - Mar 27th, 2016 at 12:28pm
Print Post  
You can also switch on the verbose option in visual micro then create a test arduino project and upload using the AVRISPmkII programmer on the visual micro menu. 

This will give you the commands for the arduino avrdude system. You can also use the Visual Micro "Atmel Avrisp mkII" programmer which gives you an example of using the atprogram.exe that Atmel studio uses.

I can tell you there is a conflict of usb drivers between the arduino ide installation and the atmel installation. Depending on what you have installed (arduino, jungo) from these two manufacturers it might be that only one of the options works. This is unconnected to Visual Micro but I tell you because it can be confusing.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint