Visual Micro
>> >> Adding a new programmer

Message started by Constatin on May 29th, 2015 at 9:41pm

Title: Adding a new programmer
Post by Constatin on 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
to use SWD or JTAG to program a board?

Title: Re: Adding a new programmer
Post by Visual Micro on May 29th, 2015 at 10:00pm

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"

Title: Re: Adding a new programmer
Post by Constantin on 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?

Title: Re: Adding a new programmer
Post by Visual Micro on 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

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

Visual Micro » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2020. All Rights Reserved.