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
Adding a new programmer (Read 3577 times)
Constantin
Newbies
*
Offline



Posts: 2
Adding a new programmer
May 29th, 2015 at 9:41pm
 
Good afternoon,

I wonder what steps I would have to take to add a programmer or hardware debugger to the list of available programmers in Visual Micro. Is this a function of modifying the programmers.txt file, and if so, where would I find the data needed to add something like a Black Magic Probe (see http://www.blacksphere.co.nz/main/index.php/blackmagic)
to use SWD or JTAG to program a board?
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10573
United Kingdom
Re: Adding a new programmer
Reply #1 - May 29th, 2015 at 10:00pm
 
Hi,

Visual micro reads the Arduino build definitions which allow you to add new programmers.

The are stored in arduinoide\hardware\arduino\avr\[ver]

After adding a new programmer you can restart the ide or click "tools>visual micro>reload toolchains"
Back to top
 
WWW  
IP Logged
 
Constantin
Newbies
*
Offline



Posts: 2
Re: Adding a new programmer
Reply #2 - May 29th, 2015 at 10:07pm
 
Awesome and thanks.

Are there any tutorials you are aware of that teach how to add programmers? Or places where such files are pre-defined?
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10573
United Kingdom
Re: Adding a new programmer
Reply #3 - May 29th, 2015 at 10:19pm
 
I'm not sure. There are a few things on google. "programmers.txt" and "arduino" and your programmer would be a good search

This one came up but might not be related

http://forum.arduino.cc/index.php?topic=264122.0

If you don't find a solution another user made use of some extended visual micro features which can be used to reference the "atprogram.exe" command tool of the atmel studio ide instead of avrdude from the arduino core. You don't need to use atmel but instead you can hard code the path to the atprogram.exe

The tool that programmers.txt reference are defined in platform.txt in the same folder.

You can find an example under programfiles\visual micro\arduino for vs\Micro Platforms\arduino16x\hardware\sam\programmers.atmel.txt

Visual micro will look for programmers.atmel.txt and programmers.vs.txt and programmers.txt, then append them to the programmers list so you can add your own. Obviously you would be adding to programfiles\visual micro\arduino for vs\Micro Platforms\arduino16x\hardware\avr\ if you have an avr board

Sorry it's not better documented. Tools>visual micro>verbose will let you see more easily what happens when you upload

Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print