ATMEL AVR ISP MK2 - MikroElektronika IDE

General discussion on mikroC PRO for AVR.
Post Reply
Author
Message
shadders
Posts: 4
Joined: 21 Apr 2011 11:12

ATMEL AVR ISP MK2 - MikroElektronika IDE

#1 Post by shadders » 22 Apr 2011 01:47

Hi,

i have already purchased the AVR ISP MK2 - but I do not believe that this is supported by the AVR IDE - the device is not recognised.

Can anyone confirm this is the case ?. Thanks.

The MikroElektronika programmer has a different pin out to the Atmel device - as such, the boards i have had produced all have the smaller connector for the Atmel programmer.

If the IDE cannot be used, then i assume the Hex file output can be used to program the ATMega32A using AVR Studio ?.

Thanks and regards,

Richard.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: ATMEL AVR ISP MK2 - MikroElektronika IDE

#2 Post by filip » 03 Jun 2011 13:26

Hi,

You can include the AVR programmers in the mikroC PRO for AVR IDE, by adding a Tool.
Please, open Tools\Options\ and under the Tools tab you can add up to 10 external programs and assign them a shortcut.
As a shortcut, you can put a path to the programmer utility consulting the programmer utility command line, which can be found in its documentation.

Regards,
Filip.

twhoney
Posts: 12
Joined: 14 Apr 2009 14:48

Re: ATMEL AVR ISP MK2 - MikroElektronika IDE

#3 Post by twhoney » 28 Jul 2011 10:18

Here a Sample Parameter Line for the XMega16A4 on the STK600 Board :

Program File : C:\Program Files (x86)\Atmel\AVR Tools\Stk600\Stk600.exe

Parameters : -cUSB;00C0000005DE -ut3.3 -!32MHz -I460800 -d%CHIP_NAME -e -md -if"%HEX_FILE_NAME" -pf -vf
^^^^^^^^^
The Parameter -cUSB;XXXXXXXXXXXX is the Serial of the USB Connected Board. You find the Serial by using the AVRStudio Programmer when selecting programming Device.

Works fine on a Win7 X64 System

I hope this helps

regards

wires
Posts: 5
Joined: 08 Aug 2011 23:33

Re: ATMEL AVR ISP MK2 - MikroElektronika IDE

#4 Post by wires » 10 Aug 2011 16:11

Hi,

I also wanted to get the Atmel AVR ISP MK2 working, using the STK500.exe

At long last I've managed to do it... heres how.. (hopefully you will see a picture below)

[img]file:///C:/Users/Patrick/Pictures/Pictures/isp.jpg[/img]

All the best,
Patrick

wires
Posts: 5
Joined: 08 Aug 2011 23:33

Re: ATMEL AVR ISP MK2 - MikroElektronika IDE

#5 Post by wires » 13 Aug 2011 10:24

Ok, picture didn't work.

Here is what I had to do. Basically put quotes around the %HEX_FILE_NAME macro.

File Name: C:\Program Files\Atmel\AVR Tools\STK500\Stk500.exe

Parameters: -d%CHIP_NAME -if"%HEX_FILE_NAME" -e -pf -cUSB

Hope it helps,
Patrick

Post Reply

Return to “mikroC PRO for AVR General”