Upload using programmer, not working

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

I used the Arduino IDE many times, and until recently, never tried using the "upload using programmer" mode.

I have a development board for a WWVB clock that has a M328p with a 16MHz xtal, and an ISP 2x3 header on it for programming.

The chip came loaded with an Arduino sketch, which I have a copy of, ready to run and all works as expected.

Last night I wanted to try out some mods to the sketch, and tried using my Olimex AVRISP MK2 cloan to program using the above method.

I had set up the IDE with board = UNO, and Programmer set to AVRISP mkII, the upload failed saying it could not find the usb device AVRISP mkII, although it shows up in the device manager list, and has the VID/PID as expected for an AVRISP mkII.   Oh BTW, this is on a Dell Win 7 desktop that has AS4.19 on it and the programmer works fine from AS4. 

After giving up on the AVRISP mkII, I tried the same thing using a USBasp programmer with the same results, usb device not found, again the VID/PID pair matched the one in the error message.

Could it be the old drivers from AS4 that's the problem?  or something else I'm missing? 

 

TIA

Jim

 

edit: Arduino v1.8.13

 

This topic has a solution.

 

Keys to wealth:

Invest for cash flow, not capital gains!

Wealth is attracted, not chased! 

Income is proportional to how many you serve!

Lets go Brandon!

Last Edited: Thu. Jul 8, 2021 - 06:46 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ki0bk wrote:
Could it be the old drivers from AS4 that's the problem?
Jungo; IIRC, Arduino goes via libusb.

 

edit :

avrdude-doc-6.3.pdf

[bottom of page 5, in last paragraph]

The STK600, JTAG ICE mkII/3, AVRISP mkII, USBasp, avrftdi (and derivatives), and USBtinyISP programmers communicate through the USB, using libusb as a platform abstraction layer.

"Dare to be naïve." - Buckminster Fuller

Last Edited: Thu. Jul 8, 2021 - 06:26 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gchapman wrote:

Jungo; IIRC, Arduino goes via libusb.

Yes the mkII shows up as Jungo, but why would the USBasp not work?

I'll try out the Atmel ICE tonight and see how that goes.

 

Jim

 

 

Keys to wealth:

Invest for cash flow, not capital gains!

Wealth is attracted, not chased! 

Income is proportional to how many you serve!

Lets go Brandon!

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Tried using STK500 option? Works with my Pololu usb anyway

Last Edited: Thu. Jul 8, 2021 - 06:32 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Atmel-ICE is likewise libusb via AVRDUDE; WinUSB in Microchip Studio.

 

"Dare to be naïve." - Buckminster Fuller

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

W4GNS. wrote:

Tried using STK500 option? Works with my Pololu usb anyway

I'll try that, thanks.

 

 

Keys to wealth:

Invest for cash flow, not capital gains!

Wealth is attracted, not chased! 

Income is proportional to how many you serve!

Lets go Brandon!

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

Indeed as Pololu's AVR programmer is an instance of STK500v2; appears as two COM (virtual serial ports for programming and application I/O)

Pololu - 5.4. AVR programming using the Arduino IDE

 


Pololu USB AVR Programmer v2.1

 

"Dare to be naïve." - Buckminster Fuller

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

gchapman wrote:
Indeed as Pololu's AVR programmer is an instance of STK500v2; appears as two COM (virtual serial ports for programming and application I/O)

I may have one of those at home, I'll look, and if I find it, I'll try it out.

 

I do have one of those, one can never have enough programmers!  smiley

 

 

Keys to wealth:

Invest for cash flow, not capital gains!

Wealth is attracted, not chased! 

Income is proportional to how many you serve!

Lets go Brandon!

Last Edited: Thu. Jul 8, 2021 - 06:46 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Mouser has his programmer listed as "Programmers - Processor Based AVR PROGRAMMER ATMEL STK500 V2 "  though I have not read the docs for it

https://www.mouser.com/ProductDe...

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

ki0bk wrote:
one can never have enough programmers! 

 

Are you my unknown brother?  we think too much alike LOL

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

I think that may be my solution, so have marked it so, thanks!

 

 

Keys to wealth:

Invest for cash flow, not capital gains!

Wealth is attracted, not chased! 

Income is proportional to how many you serve!

Lets go Brandon!

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

W4GNS. wrote:
... though I have not read the docs for it
Via your link, the datasheet has instructions on how to switch the drivers.

 

"Dare to be naïve." - Buckminster Fuller