Recommended avr-gcc compiler settings Oct24

Recommended avr-gcc compiler settings

It can be daunting when you first set up a project in Eclipse and you start browsing the available compiler options. There are just so many it’s not even funny. The aim of this article is to show you which options you should change, and what you should change them to in order to get the...

The global constructor bug in avr-gcc Oct24

The global constructor bug in avr-gcc

There is a major bug affecting versions of avr-gcc that I have tested from 4.4 all the way up to the most recent (at the time of writing) 4.5.1. It only affects programs that target MCUs with more than 64K flash memory so you need to know about this if you are programming the Arduino Mega...

The Arduino library compiled and ready for linking Oct24

The Arduino library compiled and ready for linking

When you compile your ‘sketch’ with the Arduino IDE one of the steps it takes is to quietly compile, on-the-fly, all the library files that supply the popular classes and functions such as Serial, digitalWrite, analogWrite etc. The reason the IDE does it like this is because the...

Setting up Eclipse for AVR projects Oct17

Setting up Eclipse for AVR projects

For many hobbyists the first AVR integrated development environment (IDE) that they will encounter will be the Arduino IDE. The Ardunio IDE goes out of its way to make it easy for you to quickly bash out test code and get it up and running as fast as possible without having to worry too much...