pert
April 15, 2018, 2:21am
2
Well at least you have two extra digital IO pins on A6 and A7 as a consolation prize. The ATmega328PB is a bit cheaper than the ATmega328P so I suppose it's not surprising but I'm sure this could cause a lot of confusion for someone with less experience.
I found a problem with the beta version of Arduino AVR Boards required by MiniCore for the PB chips:
opened 02:53AM - 30 Mar 18 UTC
closed 10:13AM - 17 Apr 18 UTC
Using Windows 10, 64 bit, Arduino IDE 1.8.5 and 1.9.0-beta build 38
1. File >… Preferences > Additional Boards Manager URLs > https://downloads.arduino.cc/packages/package_avr_3.6.0_index.json > OK
1. Tools > Board > Boards Manager > install Arduino AVR Boards 1.6.206 > Close
1. Tools > Programmer > Arduino as ISP
1. Tools > Burn Bootloader
Verbose output:
```
C:\Users\per\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino12/bin/avrdude -CC:\Users\per\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino12/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM14 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\per\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino12/etc/avrdude.conf"
Using Port : COM14
Using Programmer : stk500v1
Overriding Baud Rate : 19200
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : STK500
Description : Atmel STK500 Version 1.x firmware
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: stk500_initialize(): n_extparms 6 mayor 1 minor 18
avrdude: stk500_initialize(): n_extparms = 6
avrdude: sending extparam for arduino multi isp
avrdude: stk500_set_extended_parms(): can't get into sync
avrdude: stk500_initialize(): failed
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x12
avrdude done. Thank you.
Error while burning bootloader.
```
`-v -v -v -v` output for the command above:
https://gist.github.com/per1234/e3a8349d7bb188fc0c315e6393e6a84a
I am running **File > Examples > 11.ArduinoISP > ArduinoISP** from Arduino IDE 1.8.5 on the Arduino as ISP programmer.
The programmer works fine with avrdude 6.3.0-arduino9.
The problem also occurs for Upload Using Programmer with the Arduino as ISP:
https://gist.github.com/per1234/c4fa5cf3e12ce5aa2ddfaeeb5d4f1a26
I can use USBasp, AVRISP mkII, and USBtinyISP programmers with avrdude 6.3.0-arduino12 with no problems.
Originally reported at: http://forum.arduino.cc/index.php?topic=538183.msg3669159#msg3669159
That's only an issue if you use the "Arduino as ISP" programmer. I also ran into a problem with the compiler that forced me to stop using it. It only occurred when compiling a very large and ugly code with a lot of templates and it wasn't consistent so I never got around to reporting it to Arduino. I forget the exact error but it wasn't a code error, but rather a glitch in the compiler itself.