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


Posts: 2
Joined: May 29th, 2015
Adding a new programmer
May 29th, 2015 at 8:41pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding a new programmer
Reply #1 - May 29th, 2015 at 9:00pm
Print Post  
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
Joined: May 29th, 2015
Re: Adding a new programmer
Reply #2 - May 29th, 2015 at 9:07pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding a new programmer
Reply #3 - May 29th, 2015 at 9:19pm
Print Post  
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 TopicPrint