Avrdude and AVRISP MK-II combination

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dear all, It looks like I'm having trouble adding my AVR ISP Mk-II programmer to my Makefile. See below.


## If you've got multiple programmers that you use,
## you can define them here so that it's easy to switch.

## To invoke, use something like `make flash_arduinoISP`

flash_usbtiny: PROGRAMMER_TYPE = usbtiny
flash_usbtiny: PROGRAMMER_ARGS =  # USBTiny works with no further arguments
flash_usbtiny: flash

flash_usbasp: PROGRAMMER_TYPE = usbasp
flash_usbasp: PROGRAMMER_ARGS =  # USBasp works with no further arguments
flash_usbasp: flash

flash_arduinoISP: PROGRAMMER_TYPE = avrisp
flash_arduinoISP: PROGRAMMER_ARGS = -b 19200 -P /dev/ttyACM0
## (for windows) flash_arduinoISP: PROGRAMMER_ARGS = -b 19200 -P com5
flash_arduinoISP: flash

flash_109: PROGRAMMER_TYPE = avr109
flash_109: PROGRAMMER_ARGS = -b 9600 -P /dev/ttyUSB0
flash_109: flash

flash_AVR_ISP_MK_II: PROGRAMMER_TYPE = avrisp_mk2
flash_AVR_ISP_MK_II: PROGRAMMER_ARGS = which arguments I should specify?

At the moment, the AVR ISP MK-II is connected to my PC and it is nicely represented in devmgmt.msc.

That means it works both with AS7 fine and with Win7. Now I can't talk to ISP and I guess because it is not specified in my Makefile, as seen in code above.

So what is missing and where to find it ^:^).....

 

 

program is working......

Last Edited: Thu. Nov 15, 2018 - 02:13 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Usually it's an either/or between working with Studio or working with avrdude as they use different USB drivers. There is a shim driver that can be used to run one on top of the other.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

and that shim driver will make possible to employ avrispmk2 with AS7 and avdude?. I mean not in parallel of course, but at least would it be possible to switch between them? without changing firmware of the programmer every time, otherwise it would be nightmare.

 

program is working......

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Why would you need both? Its easy to make AS7 invoke avrdude when you want it to program?
.
OTOH why bother to mess with Makefiles anyway when you have an IDE that makes things 100 times easier?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

indeed, but I have not much experience using the AS7. Although it is nice program IMO. Its so that my tools are woven around those makefiles and avrdude and etc. and the arduino Uno I use as a general ISP  programmer with Avrdude. So I would like to get rid of the Arduino UNO and substitute it with AVRMK-II. I do consider switching to AS-7 later on tho. But at the moment if I can use avrdude and avrmk2 together that would be perfect.

 

program is working......