Arduino fails to upload after installation of the latest version

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

After installing a new version, Arduino cannot upload with my avrispmk2 programmer

 

When I click the upload button it shows that it executes this line:

 

/usr/share/arduino/hardware/tools/avr/bin/avrdude -C/usr/share/arduino/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB0 -b57600 -D -Uflash:w:/tmp/arduino_build_952916/bmp280.ino.hex:i

 

It works fine when I change the avrdude parameters and run it in a terminal:

 

/usr/share/arduino/hardware/tools/avr/bin/avrdude -C/usr/share/arduino/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cavrisp2 -Pusb -D -Uflash:w:/tmp/arduino_build_952916/bmp280.ino.hex:i

 

Where can I change the command line in Arduino?

 

This topic has a solution.
Last Edited: Sun. Jul 14, 2019 - 08:39 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The first command talks to Duemilanove bootloader.

 

The second command talks to your AVRISP-2

 

The first command would work FOREVER if you have a Duemilanove (or other 57600 baud bootloader)

 

The second command will work ONCE.    The -D switch prevents the AVR erasure (I think).

If you omit -D it will erase the bootloader.

 

Life is a mystery.    God invented the Arduino.   The Bootloader works perfectly.   The IDE works well.

 

Why do punters want to destroy it?

 

Incidentally,   you can always "mqke everything better":

1. Connect AVRISP-2 to 3x2 header.

2. Select AVRISP-2 as Programmer

3. Select the correct Arduino Board

4. Select Burn Bootloader

5. Dig deep hole.

6. Bury AVRISP-2

 

 

David.

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

The situation is this:

I'm trying to upload to a "Arduino Pro mini" and I could not find my FTDI programmer, probably lost it. So I ordered a new one on eBay. Now I have to wait a couple of weeks for it to arrive from China. To have something to do in the meantime, I opened up the deep hole again, wiped the dirt from the avrispmk2. I selected the Pro Mini and avrispmk2 in the tools menu.
I have absolutely no idea why it is trying to address a Duemilanove.
I don't want to program the bleeping thing from the command line every time.

Last Edited: Sun. Jul 14, 2019 - 08:26 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Arduino - Programmer (Upload using Programmer)

 

 

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

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

hennep wrote:

The situation is this:

I'm trying to upload to a "Arduino Pro mini" and I could not find my FTDI programmer, probably lost it. So I ordered a new one on eBay. Now I have to wait a couple of weeks for it to arrive from China. To have something to do in the meantime, I opened up the deep hole again, wiped the dirt from the avrispmk2. I selected the Pro Mini and avrispmk2 in the tools menu.
I have absolutely no idea why it is trying to address a Duemilanove.
I don't want to program the bleeping thing from the command line every time.

A Pro Mini has no Serial.  It does not even have a power supply.

 

If you want a Bootloader you need to buy a Serial dongle and power supply and permanently connect them.

 

So actually an USBASP or your AVRISP-2 is probably the most convenient way to program it.   (or even an ArduinoISP)

 

A Pro Mini might be ok for a final product.   But it is painful to use for development.   You either need external Serial or external programmer.

A 5V Nano is the same size but fully functional as an Arduino i.e. USB cable is all you need.

 

Whether you use Bootloader or Programmer it is a single keystroke ctl-U or ctl-Shift-U from the Arduino IDE.

 

David.

Last Edited: Sun. Jul 14, 2019 - 09:37 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:
A Pro Mini might be ok for a final product.   But it is painful to use for development.   You either need external Serial or external programmer.

I don't agree. A Pro Mini in combination with serial programmer with an FTDI chip gives you the same functionality as a complete Arduino with USB port. Why would you want a programmer on every board. It's a waste of money and pcb space.

In my case, yes it is painful, because I have to wait for the programmer to arrive.

The pins of this programmer fit directly in the holes of the pro mini, see the pictures on this site: https://www.ebay.co.uk/itm/11160...

Using the AVRISP-MK2 is more challenging. The serial port is missing so there is no debugging information when I use it for the pro mini because I cannot use the serial monitor.

Last Edited: Wed. Jul 17, 2019 - 04:24 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Everyone to their own opinion.

 

A Nano is cheap from Ebay

 

It is breadboard friendly and is small enough to fit in a final product.

 

I was just pointing out that you need "extra electronics" before you can program a Pro Mini (even with bootloader).

You don't need them in the final project.

 

Personally,   I don't like Nanos and I don't like breadboards.   I prefer Uno format Protoshields.   (because I can use with NXP, STM32, ...)

 

David.