<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=4&amp;t=15547&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2016-06-09T14:04:15+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=15547&amp;mode</id>
<entry>
<author><name><![CDATA[micky]]></name></author>
<updated>2016-06-09T14:04:15+01:00</updated>
<published>2016-06-09T14:04:15+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161958#p161958</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161958#p161958"/>
<title type="html"><![CDATA[Re: Pomiar temperatury termistorem - Błąd &quot;First defined her]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161958#p161958"><![CDATA[
Pierwszy post i trafiona odpowiedz <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /> serdecznie witamy i zapraszamy do czestszych odwiedzin. <br /><br />Sent from my mobile.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1546">micky</a> — 9 cze 2016, o 14:04</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[vitt]]></name></author>
<updated>2016-06-09T13:41:50+01:00</updated>
<published>2016-06-09T13:41:50+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161955#p161955</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161955#p161955"/>
<title type="html"><![CDATA[Re: Pomiar temperatury termistorem - Błąd &quot;First defined her]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161955#p161955"><![CDATA[
<div class="quotetitle">andrews napisał(a):</div><div class="quotecontent"><br />Podejrzewam, że nie dołączyłeś biblioteki libm.a. Przeczytaj to: <a href="http://mirekk36.blogspot.com/2013/04/eclipse-nie-dziaa-mi-printf-dla-float.html"  class="postlink">http://mirekk36.blogspot.com/2013/04/eclipse-nie-dziaa-mi-printf-dla-float.html</a><br /></div><br /><br />Kolega andrews pomógł. Dzięki wielkie!<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=13803">vitt</a> — 9 cze 2016, o 13:41</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[andrews]]></name></author>
<updated>2016-06-08T19:45:05+01:00</updated>
<published>2016-06-08T19:45:05+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161918#p161918</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161918#p161918"/>
<title type="html"><![CDATA[Re: Pomiar temperatury termistorem - Błąd &quot;First defined her]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161918#p161918"><![CDATA[
<div class="quotetitle">kicajek napisał(a):</div><div class="quotecontent"><br />gratulacje i witamy<br /></div><br />No nieładnie z mojej strony. Mój pierwszy post na forum, a ja się nawet nie przywitałem. <img src="https://forum.atnel.pl/images/smilies/icon_redface.gif" alt=":oops:" title="Zawstydzony" /> <br />Witam wszystkich i przepraszam.<br />Mógłbym się wprawdzie tłumaczyć brakiem czasu i życiem w ciągłym pośpiechu, ale to żadne wytłumaczenie (tak ma chyba w dzisiejszych czasach każdy).<br /><br />Co do gratulacji, to chyba jednak na razie przedwczesne  <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14165">andrews</a> — 8 cze 2016, o 19:45</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kicajek]]></name></author>
<updated>2016-06-08T19:26:30+01:00</updated>
<published>2016-06-08T19:26:30+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161917#p161917</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161917#p161917"/>
<title type="html"><![CDATA[Re: Pomiar temperatury termistorem - Błąd &quot;First defined her]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161917#p161917"><![CDATA[
<strong>@andrews</strong>...o widzisz, (prawie) wiedziałem że coś z tym float nie ten tego  <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /> - gratulacje i witamy.<br /><br />Pozdr<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=826">kicajek</a> — 8 cze 2016, o 19:26</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[andrews]]></name></author>
<updated>2016-06-08T19:13:00+01:00</updated>
<published>2016-06-08T19:13:00+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161916#p161916</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161916#p161916"/>
<title type="html"><![CDATA[Re: Pomiar temperatury termistorem - Błąd &quot;First defined her]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161916#p161916"><![CDATA[
Podejrzewam, że nie dołączyłeś biblioteki libm.a. Przeczytaj to: <a href="http://mirekk36.blogspot.com/2013/04/eclipse-nie-dziaa-mi-printf-dla-float.html"  class="postlink">http://mirekk36.blogspot.com/2013/04/eclipse-nie-dziaa-mi-printf-dla-float.html</a><br /><br />Do definiowania stałych zmiennoprzecinkowych używaj kropki, nie przecinka, czyli<br />#define Tkelwin 273.15<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14165">andrews</a> — 8 cze 2016, o 19:13</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[HomoChemicus]]></name></author>
<updated>2016-06-08T18:20:22+01:00</updated>
<published>2016-06-08T18:20:22+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161913#p161913</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161913#p161913"/>
<title type="html"><![CDATA[Re: Pomiar temperatury termistorem - Błąd &quot;First defined her]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161913#p161913"><![CDATA[
Winavr? Serio? Przy tym staruszku dziwne komunikaty to norma.<br />Skorzystaj z Atmel Toolchain jak w poradnikach o Eclipse, Mirek prawi.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=10470">HomoChemicus</a> — 8 cze 2016, o 18:20</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Daro69]]></name></author>
<updated>2016-06-08T18:13:56+01:00</updated>
<published>2016-06-08T18:13:56+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161912#p161912</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161912#p161912"/>
<title type="html"><![CDATA[Re: Pomiar temperatury termistorem - Błąd &quot;First defined her]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161912#p161912"><![CDATA[
witam,<br />Ja również strzelam  <img src="https://forum.atnel.pl/images/smilies/icon_e_confused.gif" alt=":?" title="Boi się" /> <br />Zastanawia mnie linijka 42. ?<br />w przerwaniu jeżeli skończy się pomiar, to tak długo jak będzie skończony, z pętli while raczej program nie wyjdzie, bo chyba nie będzie mógł ponownie uruchomić konwersji, a ponowne przerwanie nie wiem czy się uruchomi.<br /><br />kurcze może źle przemyślałem, ale sprawdzić można.( chyba że macie sprawdzoną taką formę zapisu kodu).<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 6 minutach ]</span></strong><br /><br />ale faktycznie, kompilator krzyczy coś o braku pliku...katalogu...?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=11549">Daro69</a> — 8 cze 2016, o 18:13</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kicajek]]></name></author>
<updated>2016-06-08T15:56:25+01:00</updated>
<published>2016-06-08T15:56:25+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161903#p161903</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161903#p161903"/>
<title type="html"><![CDATA[Re: Pomiar temperatury termistorem - Błąd &quot;First defined her]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161903#p161903"><![CDATA[
Witam<br />Zastrzegam, że &quot;strzelam&quot; - spróbuj odpowiednimi działaniami pozbyć się zmiennoprzecinkowych.<br /><br />Pozdr.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=826">kicajek</a> — 8 cze 2016, o 15:56</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[vitt]]></name></author>
<updated>2016-06-08T15:17:32+01:00</updated>
<published>2016-06-08T15:17:32+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161902#p161902</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161902#p161902"/>
<title type="html"><![CDATA[Re: Pomiar temperatury termistorem - Błąd &quot;First defined her]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161902#p161902"><![CDATA[
<div class="quotetitle">kicajek napisał(a):</div><div class="quotecontent"><br />Witam<br />W.g mnie coś skopane w bibliotece wyświetlacza - zobacz czy nie zaznacza Ci czegoś w jego plikach.<br /><br />Pozdr.<br /></div><br /><br />Niestety to nie to.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=13803">vitt</a> — 8 cze 2016, o 15:17</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kicajek]]></name></author>
<updated>2016-06-08T15:07:26+01:00</updated>
<published>2016-06-08T15:07:26+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161901#p161901</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161901#p161901"/>
<title type="html"><![CDATA[Re: Pomiar temperatury termistorem - Błąd &quot;First defined her]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161901#p161901"><![CDATA[
Witam<br />W.g mnie coś skopane w bibliotece wyświetlacza - zobacz czy nie zaznacza Ci czegoś w jego plikach.<br /><br />Pozdr.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=826">kicajek</a> — 8 cze 2016, o 15:07</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[vitt]]></name></author>
<updated>2016-06-08T14:51:42+01:00</updated>
<published>2016-06-08T14:51:42+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161900#p161900</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161900#p161900"/>
<title type="html"><![CDATA[Pomiar temperatury termistorem - Błąd &quot;First defined here&quot;]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15547&amp;p=161900#p161900"><![CDATA[
Witam. <br />Próbuję aktualnie zaprogramować ATmega32 do pomiaru temperatury na termistorze NTC. Termistor jest wpięty z rezystorem jako dzielnik napięcia. Rezystor wędruje na GND, a termistor na VCC. Niestety podczas kompilacji programu w Eclipse wyskakuje mi błąd o treści &quot;First defined here&quot; i nie mam bladego pojęcia jak go się pozbyć. Jakiś pomysł?<br /><br />[syntax=c]#include &lt;avr/io.h&gt;<br />#include &lt;avr/interrupt.h&gt;<br />#include &lt;util/delay.h&gt;<br />#include &lt;stdlib.h&gt;<br />#include &lt;math.h&gt;<br />#include &lt;stdio.h&gt;<br />#include &lt;string.h&gt;<br /><br />#include &quot;HD44780.h&quot;<br /><br />#define beta 3950      // stała materiałowa termistora NTC11010k<br />#define T0 298// temperatura odniesienia 25 st celsjusza<br />#define R0 10000       // rezystancja termistora w temperaturze odniesienia<br />#define R 10000 // rezystancja rezystora na dzielniku napięcia<br />#define Tkelwin273,15// 0 stopni celsjusza w Kelwinach<br /><br />#define ADCIN PA0<br /><br /><br />volatile uint16_t t = 0;<br /><br /><br />int main(void)<br />{<br />char wynik&#91;&#93;=&quot;        &quot;;// bufor tekstowy<br />DDRA &amp;=~ (1&lt;&lt;ADCIN);// przypisanie PA0 jako wejscie przetwornika<br /><br />ADMUX |= (1&lt;&lt;REFS0);// ustawienie napiecia referencyjnego przez kondensator<br />ADCSRA |= ((1&lt;&lt;ADEN) | (1&lt;&lt;ADIE) | (1&lt;&lt;ADPS2));// uruchomienie przetwornika, przerwania i ustawienie przeskalera<br /><br /><br />while (1){<br />LCD_GoTo(0,0);// ustawienie pozycji kursora<br />sprintf(wynik,&quot;Temp = %d &#91;st&#93;&quot;,t);<br />LCD_WriteText(wynik);// wypisanie wartosci na lcd<br /><br />}<br />}<br /><br />ISR(ADC_vect){<br />ADCSRA |= (1&lt;&lt;ADSC);// uruchomienie pojedynczej konwersji<br />while(ADCSRA &amp; (1&lt;&lt;ADSC)){<br />t=1024-ADCW;// obliczenia<br />t= t/ADCW;<br />t= log(t);<br />t=t + beta/T0;<br />t=beta/t;<br />t=t-Tkelwin;<br />}<br />}[/syntax]<br /><br />KONSOLA:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">**** Build of configuration Release for project ntc ****<br /><br />make all <br />Building file: ../main.c<br />Invoking: AVR Compiler<br />avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=8000000UL -MMD -MP -MF&quot;main.d&quot; -MT&quot;main.d&quot; -c -o &quot;main.o&quot; &quot;../main.c&quot;<br />../main.c:8:20: warning: common.h: No such file or directory<br />Finished building: ../main.c<br /> <br />Building target: ntc.elf<br />Invoking: AVR C Linker<br />avr-gcc -Wl,-Map,ntc.map -mmcu=atmega32 -o &quot;ntc.elf&quot;  ./HD44780.o ./main.o   <br />c:/winavr-20100110/bin/../lib/gcc/avr/4.3.3/../../../../avr/lib/avr5\libc.a(floatsisf.o): In function `__floatunsisf':<br />(.text.avr-libc.fplib+0x0): multiple definition of `__floatunsisf'<br />c:/winavr-20100110/bin/../lib/gcc/avr/4.3.3/avr5\libgcc.a(_usi_to_sf.o):c:\avrdev\gcc\build-avr\avr\avr5\libgcc/../../.././gcc/fp-bit.c:1391: first defined here<br />make: *** &#91;ntc.elf&#93; Error 1<br /><br />**** Build Finished ****<br /></div><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=13803">vitt</a> — 8 cze 2016, o 14:51</p><hr />
]]></content>
</entry>
</feed>