20-03-2019, 03:51
A little more on this:
There are many many topics on the Arduino.cc forum about problems with avr boards 1.6.22 and 1.6.23
This bug is specific to the 5.4.0-atmel3.6.1-arduino2 version of avr-gcc used by Arduino AVR Boards 1.6.22 and newer.
Here's the workaround:
Tools > Board > Boards Manager
Wait for downloads to finish.
When you move the mouse pointer over "Arduino AVR Boards", you will see a "Select version" dropdown menu appear. Select "1.6.21".
Click "Install".
Wait for installation to finish.
Click "Close".
![[Image: ide187.jpg]](https://www.meteocercal.info/forum/images/01forum_img/misc/ide187.jpg)
It's only an Arduino IDE version-specific thing in that Arduino IDE 1.8.6-1.8.7 ship with the problematic Arduino AVR Boards versions bundled. The same problem will happen even if you use Arduino IDE 1.8.5 with Arduino AVR Boards 1.6.22 or 1.6.23. It's a compiler issue, not an IDE issue.
There are many many topics on the Arduino.cc forum about problems with avr boards 1.6.22 and 1.6.23
This bug is specific to the 5.4.0-atmel3.6.1-arduino2 version of avr-gcc used by Arduino AVR Boards 1.6.22 and newer.
Here's the workaround:
Tools > Board > Boards Manager
Wait for downloads to finish.
When you move the mouse pointer over "Arduino AVR Boards", you will see a "Select version" dropdown menu appear. Select "1.6.21".
Click "Install".
Wait for installation to finish.
Click "Close".
![[Image: ide187.jpg]](https://www.meteocercal.info/forum/images/01forum_img/misc/ide187.jpg)
It's only an Arduino IDE version-specific thing in that Arduino IDE 1.8.6-1.8.7 ship with the problematic Arduino AVR Boards versions bundled. The same problem will happen even if you use Arduino IDE 1.8.5 with Arduino AVR Boards 1.6.22 or 1.6.23. It's a compiler issue, not an IDE issue.

