MiniCore icon indicating copy to clipboard operation
MiniCore copied to clipboard

What is the right programmer in the Arduino IDE?

Open RudolfAtHome opened this issue 3 years ago • 6 comments

Your "Getting started..." has the line Select what kind of programmer you're using under the Programmers menu. What is the right programmer from the huge list? I've tried a few, all of them end in timeout. Alernatively I used the standard ATMega Nano: the upload works fine without any problem. But there is no support for ATMega328PB.

RudolfAtHome avatar Nov 13 '21 11:11 RudolfAtHome

Use the one you like and that works for you. I prefer to use the USBasp or USBtinyISP.

I've tried a few, all of them end in timeout.

I might be able to help you out if you post the actual error message you're getting. Remember to turn on verbose upload in the IDE settings.

Alernatively I used the standard ATMega Nano: the upload works fine without any problem. But there is no support for ATMega328PB.

The Arduino as ISP should support any AVR that's programmed using an ISP interface. What's the error you're getting?

MCUdude avatar Nov 13 '21 11:11 MCUdude

Here is the error Message from Arduino IDE 1.8.16:

"C:\Users\Rudol\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\Users\Rudol\AppData\Local\Temp\arduino_build_881376/ReadSignature.ino.elf" Sketch uses 5472 bytes (16%) of program storage space. Maximum is 32256 bytes. Global variables use 533 bytes (26%) of dynamic memory, leaving 1515 bytes for local variables. Maximum is 2048 bytes. C:\Users\Rudol\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino18/bin/avrdude -CC:\Users\Rudol\AppData\Local\Arduino15\packages\MiniCore\hardware\avr\2.1.3/avrdude.conf -v -V -patmega328pb -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\Rudol\AppData\Local\Temp\arduino_build_881376/ReadSignature.ino.hex:i

avrdude: Version 6.3-20201216 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Users\Rudol\AppData\Local\Arduino15\packages\MiniCore\hardware\avr\2.1.3/avrdude.conf"

     Using Port                    : COM3
     Using Programmer              : arduino
     Overriding Baud Rate          : 115200

avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x32 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x32 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x32 avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xfc avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x1c avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xfc avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xfc avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x1c avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xe0 avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x1c

avrdude done. Thank you.

Problem uploading to board. See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.

RudolfAtHome avatar Nov 13 '21 16:11 RudolfAtHome

That error message indicates that you're not trying to burn the bootloader, but you're trying to update using a USB to serial connection of some sort. The ATmega328PB needs a bootloader first.

MCUdude avatar Nov 13 '21 18:11 MCUdude

Hallo Hans,

Ihr Name lässt hoffen, dass Sie typisch Deutsch sprichst!? Vielen Dank für die beiden schnellen Antworten.

Ich muss mich wohl durchringen, den Bootloader zu brennen. Gibt es dazu eine Anleitung, oder geht das „wie immer“ über den ISCP-Block?

Mit freundlichem Gruß

Rudolf Schenke

Von: Hans @.*** Gesendet: Samstag, 13. November 2021 19:14 An: MCUdude/MiniCore Cc: Rudolf Schenke; Author Betreff: Re: [MCUdude/MiniCore] What is the right programmer in the Arduino IDE? (Issue #208)

That error message indicates that you're not trying to burn the bootloader, but you're trying to update using a USB to serial connection of some sort. The ATmega328PB needs a bootloader first.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MCUdude/MiniCore/issues/208#issuecomment-968111609 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBC3UXQRNWJ3DHSTU2ZBSLUL2THFANCNFSM5H6Q2AQQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . https://github.com/notifications/beacon/ACBC3UQFTTV43MEBW6EMWYDUL2THFA5CNFSM5H6Q2AQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHG2DL6I.gif

RudolfAtHome avatar Nov 13 '21 20:11 RudolfAtHome

Ihr Name lässt hoffen, dass Sie typisch Deutsch sprichst!? Vielen Dank für die beiden schnellen Antworten.

Sorry, I'm not very good at German at all. We can do Norwegian if you prefer this over English 😉

Ich muss mich wohl durchringen, den Bootloader zu brennen. Gibt es dazu eine Anleitung, oder geht das „wie immer“ über den ISCP-Block?

I'm not sure what your hardware looks like, but if it is a complete 328PB based board with a 2x3 pin ISP header on, you just select your preferred settings in the IDE (Clock speed, brown-out detection, EEPROM save, etc.). Then you'll have to choose the correct programmer under the "Programmers" sub-menu and then run "Burn Bootloader". Same procedure as on any other AVR-based board.

MCUdude avatar Nov 13 '21 20:11 MCUdude

Den Bootloader kannst nur mit nen Programmer (z.B. USBASP) über 6pin ISP-Port brennen. Und auch nur mit dem Button "Bootloader brennen". Mit Sketch Upload per UART geht es nicht.

harryberlin avatar Nov 14 '21 08:11 harryberlin