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 How to program with AVRISPMKII (Read 9479 times)
pinkfloyd11
Junior Member
**
Offline


Posts: 18
Joined: Apr 10th, 2014
How to program with AVRISPMKII
Apr 10th, 2014 at 3:42pm
Print Post  
Hello
I had choose avrisp mkii programmer but after compile nothing happen. What I should check?

Note that I correctly use the same programmer in AVR STUDIO 6.

thanks

Visual Studio ultimate 2012
Visual Micro 1.1404.01
***************************************
Compiling 'TEST_TX_CON_VS2012' for 'Arduino Duemilanove w/ ATmega328'
Build folder: S2012/atmega328
Summary: Header=1 Prototypes=4 Imports=2
Additional Defines: VISUALMICRO_COMPILER_VER=1;
Architecture Tools: C:\Program Files\Arduino\hardware\tools\avr\bin\
GCC: 4.3.2
Sketchbook: file:///C:/Users/Administrator/Documents/Arduino
Include Path 'C:\Program Files\Arduino\hardware\arduino\cores\arduino'
Include Path 'C:\Program Files\Arduino\hardware\arduino\variants\standard'
Include Path 'C:\Program Files\Arduino\libraries\Jeelib'
Include Path 'C:\Program Files\Arduino\libraries\Timer1'
Include Path 'C:\Program Files\Arduino\libraries'
Include Path 'C:\Program Files\Arduino\hardware\arduino\libraries'
Include Path 'C:\Users\Administrator\Documents\Arduino\libraries'
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I"C:\Program Files\Arduino\hardware\arduino\cores\arduino" -I"C:\Program Files\Arduino\hardware\arduino\variants\standard" -I"C:\Program Files\Arduino\libraries\Jeelib" -I"C:\Program Files\Arduino\libraries\Timer1" -I"C:\Program Files\Arduino\libraries" -I"C:\Program Files\Arduino\hardware\arduino\libraries" -I"C:\Program Files\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"C:\Users\Administrator\Documents\Arduino\libraries" -o tmega328\TEST_TX_CON_VS2012.cpp.o"  tmega328\TEST_TX_CON_VS2012.cpp"  -DVISUALMICRO_COMPILER_VER=1
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-gcc -Os -Wl,--gc-sections -mmcu=atmega328p \atmega328" -o tmega328\TEST_TX_CON_VS2012.elf" tmega328\TEST_TX_CON_VS2012.cpp.o" tmega328\Jeelib\Ports.cpp.o" tmega328\Jeelib\PortsBMP085.cpp.o" tmega328\Jeelib\PortsLCD.cpp.o" tmega328\Jeelib\PortsRF12.cpp.o" tmega328\Jeelib\PortsSHT11.cpp.o" tmega328\Jeelib\RF12.cpp.o" tmega328\Jeelib\RF12sio.cpp.o" tmega328\Jeelib\RF69.cpp.o" tmega328\Jeelib\RF69_compat.cpp.o" tmega328\Timer1\TimerOne.cpp.o" tmega328\core.a" -lm
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 tmega328\TEST_TX_CON_VS2012.elf" tmega328\TEST_TX_CON_VS2012.eep"
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-objcopy -O ihex -R .eeprom tmega328\TEST_TX_CON_VS2012.elf" tmega328\TEST_TX_CON_VS2012.hex"
Binary sketch size: 4.962 bytes (used 16% of a 30.720 byte maximum) (1,07 secs)
**********************************
« Last Edit: Apr 10th, 2014 at 3:50pm by pinkfloyd11 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to program with AVRISPMKII
Reply #1 - Apr 10th, 2014 at 3:53pm
Print Post  
Hi pinkfloyd (i wish you were)

There is incompatibility between the Arduino Ide tool chain and Atmel Studio. The usb drivers that Arduino use for AVRISP mkII are different to the ones used by Atmel Studio. Yep!

We are working to have Visual Micro bridge this gap but you currently only have two options that I can think of:-

1) Install the Arduino compatible usb driver for your AVRISP mkII
or
2) Use Visual Micro in Atmel Studio which extends the tools>visual micro>programmers menu to include an Atmel usb version of the AVRISP mkII

In both cases you need to tick the correct programmer on tools>visual micro>programmers and also tick "tools>visual micro>upload using programmer"

Then F5/SHIFT F5 will compile and upload using the programmer instead of usb serial. F5 is the same as Debug>Start or the Green arrow on the tool bar

I hope this helps, if you do not have your original usb driver disk for the avrisp then use this but be clear that native non-arduino Atmel Studio commands will no longer be able to use the isp until you re-install their native usb driver called Jungo.

« Last Edit: Apr 10th, 2014 at 5:59pm by Tim@Visual Micro »  
Back to top
IP Logged
 
pinkfloyd11
Junior Member
**
Offline


Posts: 18
Joined: Apr 10th, 2014
Re: How to program with AVRISPMKII
Reply #2 - Apr 10th, 2014 at 5:24pm
Print Post  
Hello
Where I can found Arduino compatible usb driver for AVRISP mkII



***************************************
Uploading to I/O board using 'AVRISP mkII'
Uploader started for board Arduino Duemilanove w/ ATmega328
Uploader sometimes uses programmer name: avrispmkii
Uploader will attempt to use programmer name: avrispmkii
C:\Program Files\Arduino\hardware\tools\avr\bin\avrdude -C"C:\Program Files\Arduino\hardware/tools/avr/etc/avrdude.conf" -v -v -v -v -patmega328p -cstk500v2 -Pusb N_VS2012\atmega328\TEST_TX_CON_VS2012.hex":i
avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files\Arduino\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb"
*****************************************
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to program with AVRISPMKII
Reply #3 - Apr 10th, 2014 at 5:36pm
Print Post  
Hi,

The link for Arduino compatible usb instructions is included in my previous response

Thanks
  
Back to top
IP Logged
 
pinkfloyd11
Junior Member
**
Offline


Posts: 18
Joined: Apr 10th, 2014
Re: How to program with AVRISPMKII
Reply #4 - Apr 11th, 2014 at 12:26pm
Print Post  
After install this new AVRISP MKII Arduino driver, can I still use AVRISP MKII in ATMEL STUDIO or one exclude the other?

ps.
while programming the screen blink a little bit
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to program with AVRISPMKII
Reply #5 - Apr 11th, 2014 at 12:28pm
Print Post  
One excludes the other
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: How to program with AVRISPMKII
Reply #6 - Apr 11th, 2014 at 6:32pm
Print Post  
Hi pinkfloyd11,

working with programmers inside AtmelStudio can be a pain if you wish to do it à la Arduino, I can testify. You need to use the libusb-win32 drivers, but each time you plug in the mkII, the Atmel driver gets loaded (jungo or soemthing like this)  Angry.

Search for my post on the subject, I succeeded in replacing the Atmel driver with the correct one.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to program with AVRISPMKII
Reply #7 - Apr 11th, 2014 at 8:20pm
Print Post  
Hi Gilles, please read my comments above about the new native atmel programmer support in the latest version of Visual Micro. It doesn't need win32 libusb anymore apart from to burn bootloader which is coming soon Smiley
« Last Edit: Apr 11th, 2014 at 8:27pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint