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] 2  Send TopicPrint
Hot Topic (More than 8 Replies) Atmel ICE not shown in "Programmer" (Read 17819 times)
Xor
Junior Member
**
Offline


Posts: 14
Joined: Jan 15th, 2016
Atmel ICE not shown in "Programmer"
Jan 15th, 2016 at 7:59pm
Print Post  
Today I received my new Atmel ICE.
The programmer is not shown under the "programmer" drop down menu.

But from what I understand it is supported by Visual Micro.

Is there something I have to do to make it known to VM?
The programmer works and drivers are installed.
thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel ICE not shown in "Programmer"
Reply #1 - Jan 16th, 2016 at 12:12am
Print Post  
Hi,

It's an extendable system and some users have provided their settings that I include with the visual micro plugin.

It depends on which board and arduino ide (or core) you are using?

  
Back to top
WWW  
IP Logged
 
Xor
Junior Member
**
Offline


Posts: 14
Joined: Jan 15th, 2016
Re: Atmel ICE not shown in "Programmer"
Reply #2 - Jan 16th, 2016 at 12:27am
Print Post  
I am using Visual Studio 2015.
Arduino 1.6.5
Board: Sanguino Atmega 644
  
Back to top
 
IP Logged
 
Xor
Junior Member
**
Offline


Posts: 14
Joined: Jan 15th, 2016
Re: Atmel ICE not shown in "Programmer"
Reply #3 - Jan 17th, 2016 at 7:09pm
Print Post  
Ok so no one has any idea what I have to do?
  
Back to top
 
IP Logged
 
Xor
Junior Member
**
Offline


Posts: 14
Joined: Jan 15th, 2016
Re: Atmel ICE not shown in "Programmer"
Reply #4 - Jan 18th, 2016 at 11:18pm
Print Post  
Ok. Can at least tell me someone how to add some kind of custom programmer?

I can use the Atmel ICE with avrdude so everything is fine. Just for whatever reason it does not show up in the programmers drop down box. Now I'd like to add my "Custom Atmel ICE" and just tell it to use avrdude with -c atmelice_isp.

Ain't that possible? 

And btw the Atmel ICE is also working with Atmel Studio and Visual Micro. But for whatever reason it is not showing up in Visual Studio 2015 Enterprise Update 1. And I'd really prefer Visual Studio above Atmel Studio...
« Last Edit: Jan 19th, 2016 at 11:03am by Xor »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel ICE not shown in "Programmer"
Reply #5 - Jan 18th, 2016 at 11:30pm
Print Post  
Sorry for the delayed response. i wanted to do some testing.

The ICE in atmel uses atprogram.exe which is installed with atmel studio. it can be displayed in vs with some tweaking but best avoided.

Interesting to know avrdude works. I will look at adding an option and tell you how to try it yourself over next few days
  
Back to top
WWW  
IP Logged
 
Xor
Junior Member
**
Offline


Posts: 14
Joined: Jan 15th, 2016
Re: Atmel ICE not shown in "Programmer"
Reply #6 - Jan 19th, 2016 at 11:03am
Print Post  
Ok, thank you. I am looking forward to that version.
  
Back to top
 
IP Logged
 
Xor
Junior Member
**
Offline


Posts: 14
Joined: Jan 15th, 2016
Re: Atmel ICE not shown in "Programmer"
Reply #7 - Jan 27th, 2016 at 12:54pm
Print Post  
Any success so far?
  
Back to top
 
IP Logged
 
Xor
Junior Member
**
Offline


Posts: 14
Joined: Jan 15th, 2016
Re: Atmel ICE not shown in "Programmer"
Reply #8 - Feb 16th, 2016 at 2:48pm
Print Post  
Don't want to be annoying but any progression on that front? I wouldn't believe it is that hard to add the option for the Atmel ICE?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel ICE not shown in "Programmer"
Reply #9 - Feb 16th, 2016 at 6:22pm
Print Post  
Sorry I have been bogged down.

If you look in tools>options>visual micro>version>assembly you will see where visual micro is installed

Below that folder you will find "Micro Platforms\Arduino16x" below that folder you will find avr/sam etc.

In the avr folder you will find programmers.atmel.txt

You can name a copy and rename to programmers.vs.txt

In the same folder there is a platform.txt. the programmer and platform text files are normal arduino build/config files. You can edit them for your own use and hardcode paths etc.

The important path will be atprogram.exe which is installed with atmel. I suggest you install atmel 6.2 and point the atprogram.exe to the location of the atmel6.2 bin directory. You don't need to use atmel but you need the atprogram.exe and the other files that are installed with it.


if you change programmers.txt or platform.txt then you have to click tools>vsiual micro>reload toolchains or restart the ide
« Last Edit: Feb 16th, 2016 at 6:22pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Xor
Junior Member
**
Offline


Posts: 14
Joined: Jan 15th, 2016
Re: Atmel ICE not shown in "Programmer"
Reply #10 - Feb 16th, 2016 at 7:21pm
Print Post  
I am now a bit lost tbh. I don't want to use atprogram.exe I want to use avrdude. But all those files you pointed my to are for atprogram. 

Ah ok gotcha. Now I have the Atmel ICE in VS now if i don't want to use atprogram. I guess I can just change it to "avrdude" and adjust it?
« Last Edit: Feb 16th, 2016 at 7:24pm by Xor »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel ICE not shown in "Programmer"
Reply #11 - Feb 16th, 2016 at 7:23pm
Print Post  
Does avrdude support your programmer?

If so you can find the details on the internet and yes, you are right, that will be easier to configure.
  
Back to top
WWW  
IP Logged
 
Xor
Junior Member
**
Offline


Posts: 14
Joined: Jan 15th, 2016
Re: Atmel ICE not shown in "Programmer"
Reply #12 - Feb 16th, 2016 at 7:24pm
Print Post  
Yes it does.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel ICE not shown in "Programmer"
Reply #13 - Feb 16th, 2016 at 7:28pm
Print Post  
Excellent. I am not an expert with programmers but I know how to configure the settings if you can find them.

In this case we will use and example from the programmers.txt of the "arduinoide\hardware\arduino\cores\avr" folder

The arduino programmers.txt contains AVRISP MKII etc, so we can copy and change to work the way we want. I can help with that if you find the avrdude commands.
  
Back to top
WWW  
IP Logged
 
Xor
Junior Member
**
Offline


Posts: 14
Joined: Jan 15th, 2016
Re: Atmel ICE not shown in "Programmer"
Reply #14 - Feb 16th, 2016 at 7:42pm
Print Post  
I am not sure where the programmers.txt is where you are pointing me too. But the avrdude line is basically the same as with the mk2 etc.

From the avrdude.conf:
programmer
  id    = "atmelice_isp";
  desc  = "Atmel-ICE (ARM/AVR) in ISP mode";
  type  = "jtagice3_isp";
  connection_type = usb;
  usbpid = 0x2141;
;

So -c atmelice_isp will do the trick basically.

E.g.:
avrdude.exe -C "..\etc\avrdude.conf" -c atmelice_isp -p m644 -n

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude.exe: Device signature = 0x1e9609 (probably m644)

avrdude.exe: safemode: Fuses OK (E:FF, H:D9, L:FF)

avrdude.exe done.  Thank you.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel ICE not shown in "Programmer"
Reply #15 - Feb 16th, 2016 at 7:55pm
Print Post  
The programmers file is below where you have installed your arduino ide

Mine is here:-

D:\Program Files (x86)\Arduino\hardware\arduino\avr\programmers.txt

In the file you can see a number of programmers defined. This is what is defined for the avrisp mkII

Code (C++)
Select All
avrispmkii.name=AVRISP mkII
avrispmkii.communication=usb
avrispmkii.protocol=stk500v2
avrispmkii.program.protocol=stk500v2
avrispmkii.program.tool=avrdude
avrispmkii.program.extra_params=-Pusb
 



You can copy and create your own adding -c atmelice_isp to the extra_params option. Maybe the avrispmkII is not the best choice, you can look and decide which closly matches what you want.

Code (C++)
Select All
xor_ice.name=ICE Programmer for Xor
xor_ice.communication=usb
xor_ice.protocol=stk500v2
xor_ice.program.protocol=stk500v2
xor_ice.program.tool=avrdude
xor_ice.program.extra_params=-Pusb -c atmelice_isp
 




Hope this makes sense.
  
Back to top
WWW  
IP Logged
 
Xor
Junior Member
**
Offline


Posts: 14
Joined: Jan 15th, 2016
Re: Atmel ICE not shown in "Programmer"
Reply #16 - Feb 16th, 2016 at 8:05pm
Print Post  
Ah it's based out of the arduino IDE gotcha. I thought it is Visual Micro specific. 

Well that was easy then.... Works like a charm thank you!

Maybe a disclaimer for everyone else. You have to use the latest avrdude version cause the stuff arduino is supplying is well ancient. But apart from that thumbs up!

Thank you
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel ICE not shown in "Programmer"
Reply #17 - Feb 16th, 2016 at 8:23pm
Print Post  
Xor wrote on Feb 16th, 2016 at 8:05pm:

Well that was easy then.... Works like a charm thank you!

Maybe a disclaimer for everyone else. You have to use the latest avrdude version cause the stuff arduino is supplying is well ancient. 



Useful thanks

Was my example exactly what you used?
« Last Edit: Feb 16th, 2016 at 8:26pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Xor
Junior Member
**
Offline


Posts: 14
Joined: Jan 15th, 2016
Re: Atmel ICE not shown in "Programmer"
Reply #18 - Feb 16th, 2016 at 8:35pm
Print Post  
Yes. Nothing more was needed. 

I just didn't know VM gets the programmer list from arduino. Or where to adjust it to get it to show up in the Visual Studio Drop Down box.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel ICE not shown in "Programmer"
Reply #19 - Feb 16th, 2016 at 8:40pm
Print Post  
Understood thanks. I asked because I am considering adding the programmer to the visual micro programmers.txt system we discussed originally. 

The visual micro system appends to the arduino core programmers list and this one would be useful.

Will it work for all the avr boards?
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint