Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
AVRISP MkII (Read 3890 times)
Trek19
Junior Member
**
Offline



Posts: 74
UK
AVRISP MkII
Dec 9th, 2014 at 8:01pm
 
Is it possible to use the AVRISP programme to set fuse etc from within Visual Studio like it is from within Atmel Studio and if so how?
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: AVRISP MkII
Reply #1 - Dec 9th, 2014 at 8:13pm
 
Hi,

Not really, this is a plus of Atmel Studio that it is has native commands that are avr compatible.

Obviously you can use the visual micro programmer options with the AVRISP and design your own programmers that set the fuses etc but this still means an upload at the same time (unless you write your own adapter in c#)

Maybe atmel will produce an extension now that vs is free
Back to top
« Last Edit: Dec 9th, 2014 at 8:13pm by Visual Micro »  
WWW  
IP Logged
 
Trek19
Junior Member
**
Offline



Posts: 74
UK
Re: AVRISP MkII
Reply #2 - Dec 13th, 2014 at 9:28am
 
OK I read the other article in this folder re using Visual Studio or Atmel Studio.
I have been developing ATtiny programs using Arduino and would like to have more control over the fuse settings etc as provided by the "Device Programming" facility within Atmel Studio.
You said "Obviously you can use the visual micro programmer options with the AVRISP and design your own programmers that set the fuses etc" not sure exactly what you mean by that. You also hinted at developing my own adapter in c# to work with Visual Studio 2013, this sounds like an interesting project as I have developed programs in the past using VB and C++ but not to work from inside another program so could you point me in the right direction please.
I suppose I use "C:\Program Files\Atmel\Atmel Studio 6.2\atbackend\atprogram.exe" to talk to the AVRISP but which template from the vast selection of C# ones to use?

PS I cant believe Microsoft are giving all this free development away.
Back to top
« Last Edit: Dec 13th, 2014 at 9:53am by Trek19 »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: AVRISP MkII
Reply #3 - Dec 13th, 2014 at 12:56pm
 
Hi,

Yes good news that Microsoft have made vs 2013 for free.

As for programmers the fuse burning and uploading is defined via boards.txt, programmers.txt and platform.txt in each hardware folder. arduinoide/hardware/arduino/...

Visual micro program folder also has Micro Platforms/.. which, for the avr platform, shows how to use atbackend for some additional avrisp mkII native atmel uploads.

The .txt files are all part of the arduino 3rd party build process supported by arduino 1.5+. You can create your own cores of add to the .txt files. If you make them work the way you want then I can probably then tell you how to split them out into your own files so they don;t get overwritten by any future upgrades

atmel

You don't communicate with atbackend directly. Instead you simply call atmel atprogram.exe which also has a ? switch for help commands.

You can write a standalone .exe that is passed the arguments defined by platform.txt or programmers.txt. You can also register your exe in the platform/programmers files so that it is called by arduino or vm at the appropriate times.

when visual micro or arduino compile/upload/burn bootloaders etc it simply runs the exe files defined in the config system described above. Normally this is avr-gcc, avrdude.exe etc.

So to be clear we don't ever run the arduino.exe via Vm. All we do is run the toolchain.exe files defined in the config system. So it is quite flexible.
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print