VS Arduino
>> >> Adding a new programmer
https://www.visualmicro.com/forums/YaBB.pl?num=1432932087

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

Title: Adding a new programmer
Post by Constatin on May 29th, 2015 at 8: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?

Title: Re: Adding a new programmer
Post by Visual Micro on May 29th, 2015 at 9: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"

Title: Re: Adding a new programmer
Post by Constantin on May 29th, 2015 at 9: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 9: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


VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.