Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:examples:setup:windows:eclipse_v5 [2012/05/28 09:56] eero.valjaotsen:examples:setup:windows:eclipse_v5 [2020/07/20 09:00] (current) – created - external edit 127.0.0.1
Line 136: Line 136:
 If compilation of this code is also successful, the development environment was set up correctly. If compilation of this code is also successful, the development environment was set up correctly.
  
-~~PB~~+<pagebreak>
  
 ===== Loading the code into microcontroller ===== ===== Loading the code into microcontroller =====
Line 156: Line 156:
  
 {{:kit:kit_2561_test.jpg?400|}} {{:kit:kit_2561_test.jpg?400|}}
 +
 +===== Using floating-point variables =====
 +
 +It is sometimes necessary in AVR programs to use floating-point variables. For calculating with them and presenting with //printf//-type functions, the following changes are necessary in the configuration of the project:
 +
 +**1.** Open the configuration of the project from the menu //File → Properties//. On the leftside panel open //AVR C Linker → Libraries//, where in addition to HomeLab library other library objects must be included //printf_flt// and //m// (libprintf_flt.a ja libm.a).
 +
 +**2.** Then open //AVR C Linker → General// and into box of //Other Arguments// add line //-uvfprintf//.
 +
 +{{:examples:eclipse:eclipse_floating_point_libraries.png?520|}}
 +
 +{{:examples:eclipse:eclipse_floating_point_printf.png?520|}}
 +
 +**3.** Press OK and close configuration window.
en/examples/setup/windows/eclipse_v5.1338198994.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0