Abstract
This chapter presents a complete example of building, flashing and executing a microcontroller C++ program using the LED program. The LED program will be built with GCC cross tools in the MinGW/MSYS (MinGW, Home of the MinGW and MSYS Projects, 2012, http://www.mingw.org ) environment. Our target microcontroller is an 8-bit ATMEL® AVR® microcontroller (ATMEL®, 8-bit ATMEL® Microcontroller with 4/8/16/32K Bytes In-System Programmable Flash (ATmega48A, ATmega48PA, ATmega88A, ATmega88PA, ATmega168A, ATmega168PA, ATmega328, ATmega328P), Rev. 8271D-AVR-05/11 (ATMEL®, 2011)). This popular microcontroller has state-of-the-art quality and widespread availability. In addition, there is a well-maintained GCC port for this microcontroller making it well-suited for our example. In the second half of this chapter, we will investigate efficiency aspects and compiler warnings and errors based on the example of the LED program.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
ARDUINO®, ARDUINO® (2015), http://www.arduino.cc
ATMEL®, 8-bit ATMEL® Microcontroller with 4/8/16/32K Bytes In-System Programmable Flash (ATmega48A, ATmega48PA, ATmega88A, ATmega88PA, ATmega168A, ATmega168PA, ATmega328, ATmega328P), Rev. 8271D-AVR-05/11 (ATMEL®, 2011)
Free Software Foundation, GNUmake Version 3.81 (2006), http://www.gnu.org/software/make
Free Software Foundation, The GNU Compiler Collection Version 7.2.0 (2017), http://gcc.gnu.org
IEEE Computer Society, IEEE Std 1149.1 – 1990: IEEE Standard Test Access Port and Boundary-Scan Architecture (1990). Available at http://standards.ieee.org/findstds/standard/1149.1-1990.html
M. Margolis, ARDUINO ® Cookbook, 2nd edn. (O’Reilly, Sebastopol, 2011)
S. Meyers, More Effective C++: 35 New Ways to Improve Your Programs and Designs (Addison-Wesley, Boston, 1996)
S. Meyers, Effective C++: 55 Specific Ways to Improve Your Programs and Designs, 3rd edn. (Addison-Wesley, Boston, 2005)
MinGW, Home of the MinGW and MSYS Projects (2012), http://www.mingw.org
Python Software Foundation, Python Programming Language—Official Website (2012), http://www.python.org
M. Schmidt, ARDUINO ® : A Quick-Start Guide (Pragmatic Programmers, Raleigh, 2011)
SCons, SCons: A Software Construction Tool (2012), http://www.scons.org
W. van Hagen, The Definitive Guide to GCC (Apress, Berkeley, 2006)
Wikipedia, Executable and Linkable Format (2012), http://en.wikipedia.org/wiki/Executable_and_Linkable_Format
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer-Verlag GmbH Germany, part of Springer Nature
About this chapter
Cite this chapter
Kormanyos, C. (2018). Working with a Real-Time C++ Program on a Board. In: Real-Time C++. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-56718-0_2
Download citation
DOI: https://doi.org/10.1007/978-3-662-56718-0_2
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-662-56717-3
Online ISBN: 978-3-662-56718-0
eBook Packages: Computer ScienceComputer Science (R0)