<?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=12948&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-09-17T15:06:32+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=12948&amp;mode</id>
<entry>
<author><name><![CDATA[wchpikus]]></name></author>
<updated>2015-09-17T15:06:32+01:00</updated>
<published>2015-09-17T15:06:32+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140045#p140045</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140045#p140045"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140045#p140045"><![CDATA[
<div class="quotetitle">PJasinski91 napisał(a):</div><div class="quotecontent"><br />Tak czy inaczej pomogło!! Dziękuję bardzo!<br />Mógłbyś mi jeszcze tylko wytłumaczyć co właściwie zrobiłem?<br /></div><br /><br /><br />Nie pamietam gdzie znalazlem to rozwiaznie, ale chyba chodzilo o bibliotke, ktora nie chciala sie skompilowac..pamietam ze po dodaniu ktorejs z bibliotek dostalem taki blad..<br /><br /><br />Tutaj:<br /><!-- m --><a class="postlink" href="http://www.avrfreaks.net/forum/linker-error-6" >http://www.avrfreaks.net/forum/linker-error-6</a><!-- m --><br /><br /><br />A missing -lm would lead to a linker complaint if you use sin() from math.h, for example, because the sin function implementation is shipped in libm.a.<br /><br />The root cause of the problem is #33698, i.e. AVR-LibC uses RCALL/RJMP instruction to external functions. If the assumption that the call target can be encoded in the instruction does not hold, the linker complains.<br /><br />There are several cases where adding -lm does not work around the problem or does not work as intended.<br /><br />Reason is that AVR-LibC turned libm.a into a core library like libgcc.a but using -lm will not use it like a system library. To achieve that, you'll have to patch the specs (e.g. using -dumpspecs, patch them and feed them back into the compiler) and not adding -lm wherever on the command line.<br /><br />-lm work in most cases because this leads to mode efficient float routines, this the RCALL/RJMP targets are inside the valid range again. However, there are cases where is does not work: Using LTO, fixed-point &lt;-&gt; float conversions, C++, ...<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3859">wchpikus</a> — 17 wrz 2015, o 15:06</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[PJasinski91]]></name></author>
<updated>2015-09-17T14:54:16+01:00</updated>
<published>2015-09-17T14:54:16+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140043#p140043</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140043#p140043"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140043#p140043"><![CDATA[
@wchpikus<br />Ciekawostka-  na forum widzę twój post taki:<br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />a sprobuj tego:<br />W linker zamien:<br />${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}<br /><br />na<br /><br />${COMMAND} -lc -lm ${FLAGS} ${OUTPUT_FLAG}${OUTPUT_PREFIX}${OUTPUT} ${INPUTS} -lc<br /></div><br /><br />A jak kilkne cytuj taki:<br /><br /><div class="quotetitle">wchpikus napisał(a):</div><div class="quotecontent"><br />a sprobuj tego:<br />Properties projektu C/C++ Build/Settings/AVR linker i w command line patern...<br />zamien na<br /><br />${COMMAND}  -lc -lm ${FLAGS} ${OUTPUT_FLAG}${OUTPUT_PREFIX}${OUTPUT}  ${INPUTS}  -lc<br /><br />U mnie jest tak.<br /><br />Bez tego mam podobne bledy:<br /><br />avr-gcc  -lc -lm -Wl,-Map,test_adc.map -mmcu=atmega128 -o&quot;test_adc.elf&quot;   ./at45db/AT45DB011.o  ./UART/uart_functions.o  ./TIMERS_AND_MENU/case_time.o  ./T6963/logger_lcd.o ./T6963/mode0.o ./T6963/mode1.o ./T6963/mode2.o ./T6963/przewijanie.o ./T6963/random.o ./T6963/t6963c.o ./T6963/temp_cisnienie.o ./T6963/temperatura.o ./T6963/wilgotosc.o ./T6963/wyswietl_wyniki.o ./T6963/zegar.o ./T6963/zegarek.o  ./SPI/SPI.o  ./SETUP/setup.o  ./Menu/logger.o ./Menu/menu.o ./Menu/podswietlenie.o ./Menu/ustawienie_save_discard.o ./Menu/ustawienie_zegara.o ./Menu/wyswietlanie.o  ./LED/led.o  ./KLAWISZE/klawisze.o  ./IR_DECODE/ir_decode.o  ./I2C/i2cmaster.o ./I2C/i2csoft.o  ./EEPROM/eeprom.o  ./DTH22/dth221.o  ./DS1305/DS1305.o  ./BMP085/bmp085.o  ./ADC/ADC.o  ./24C256/24C256.o  ./main.o   <br />c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr51\libc.a(inverse.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/inverse.S:50:(.text.avr-libc.fplib+0xc): relocation truncated to fit: R_AVR_13_PCREL against symbol `__divsf3' defined in .text section in c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr51\libgcc.a(_div_sf.o)<br />c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr51\libc.a(log.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/log.S:96:(.text.avr-libc.fplib+0x46): relocation truncated to fit: R_AVR_13_PCREL against symbol `__addsf3' defined in .text section in c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr51\libgcc.a(_addsub_sf.o)<br />c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr51\libc.a(log.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/log.S:100:(.text.avr-libc.fplib+0x4e): relocation truncated to fit: R_AVR_13_PCREL against symbol `__addsf3' defined in .text section in c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr51\libgcc.a(_addsub_sf.o)<br />c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr51\libc.a(log.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/log.S:116:(.text.avr-libc.fplib+0x6a): relocation truncated to fit: R_AVR_13_PCREL against symbol `__floatsisf' defined in .text section in c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr51\libgcc.a(_si_to_sf.o)<br />c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr51\libc.a(modf.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/modf.S:90:(.text.avr-libc.fplib+0x3e): relocation truncated to fit: R_AVR_13_PCREL against symbol `__subsf3' defined in .text section in c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr51\libgcc.a(_addsub_sf.o)<br />collect2.exe: error: ld returned 1 exit status<br />make: *** [test_adc.elf] Error 1<br /></div><br /><br />Tak czy inaczej pomogło!! Dziękuję bardzo!<br />Mógłbyś mi jeszcze tylko wytłumaczyć co właściwie zrobiłem?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=8607">PJasinski91</a> — 17 wrz 2015, o 14:54</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[wchpikus]]></name></author>
<updated>2015-09-17T14:41:54+01:00</updated>
<published>2015-09-17T14:41:54+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140041#p140041</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140041#p140041"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140041#p140041"><![CDATA[
a sprobuj tego:<br />Properties projektu C/C++ Build/Settings/AVR linker i w command line patern...<br />zamien na<br /><br />${COMMAND}  -lc -lm ${FLAGS} ${OUTPUT_FLAG}${OUTPUT_PREFIX}${OUTPUT}  ${INPUTS}  -lc<br /><br />U mnie jest tak.<br /><br />Bez tego mam podobne bledy:<br /><br />avr-gcc  -lc -lm -Wl,-Map,test_adc.map -mmcu=atmega128 -o&quot;test_adc.elf&quot;   ./at45db/AT45DB011.o  ./UART/uart_functions.o  ./TIMERS_AND_MENU/case_time.o  ./T6963/logger_lcd.o ./T6963/mode0.o ./T6963/mode1.o ./T6963/mode2.o ./T6963/przewijanie.o ./T6963/random.o ./T6963/t6963c.o ./T6963/temp_cisnienie.o ./T6963/temperatura.o ./T6963/wilgotosc.o ./T6963/wyswietl_wyniki.o ./T6963/zegar.o ./T6963/zegarek.o  ./SPI/SPI.o  ./SETUP/setup.o  ./Menu/logger.o ./Menu/menu.o ./Menu/podswietlenie.o ./Menu/ustawienie_save_discard.o ./Menu/ustawienie_zegara.o ./Menu/wyswietlanie.o  ./LED/led.o  ./KLAWISZE/klawisze.o  ./IR_DECODE/ir_decode.o  ./I2C/i2cmaster.o ./I2C/i2csoft.o  ./EEPROM/eeprom.o  ./DTH22/dth221.o  ./DS1305/DS1305.o  ./BMP085/bmp085.o  ./ADC/ADC.o  ./24C256/24C256.o  ./main.o   <br />c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr51\libc.a(inverse.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/inverse.S:50:(.text.avr-libc.fplib+0xc): relocation truncated to fit: R_AVR_13_PCREL against symbol `__divsf3' defined in .text section in c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr51\libgcc.a(_div_sf.o)<br />c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr51\libc.a(log.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/log.S:96:(.text.avr-libc.fplib+0x46): relocation truncated to fit: R_AVR_13_PCREL against symbol `__addsf3' defined in .text section in c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr51\libgcc.a(_addsub_sf.o)<br />c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr51\libc.a(log.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/log.S:100:(.text.avr-libc.fplib+0x4e): relocation truncated to fit: R_AVR_13_PCREL against symbol `__addsf3' defined in .text section in c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr51\libgcc.a(_addsub_sf.o)<br />c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr51\libc.a(log.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/log.S:116:(.text.avr-libc.fplib+0x6a): relocation truncated to fit: R_AVR_13_PCREL against symbol `__floatsisf' defined in .text section in c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr51\libgcc.a(_si_to_sf.o)<br />c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr51\libc.a(modf.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/modf.S:90:(.text.avr-libc.fplib+0x3e): relocation truncated to fit: R_AVR_13_PCREL against symbol `__subsf3' defined in .text section in c:/program files (x86)/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr51\libgcc.a(_addsub_sf.o)<br />collect2.exe: error: ld returned 1 exit status<br />make: *** [test_adc.elf] Error 1<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3859">wchpikus</a> — 17 wrz 2015, o 14:41</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[xor]]></name></author>
<updated>2015-09-17T14:40:18+01:00</updated>
<published>2015-09-17T14:40:18+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140040#p140040</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140040#p140040"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140040#p140040"><![CDATA[
<a href="http://forum.atnel.pl/topic7454.html"  class="postlink">http://forum.atnel.pl/topic7454.html</a><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1774">xor</a> — 17 wrz 2015, o 14:40</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[PJasinski91]]></name></author>
<updated>2015-09-17T14:37:39+01:00</updated>
<published>2015-09-17T14:37:39+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140039#p140039</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140039#p140039"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140039#p140039"><![CDATA[
<div class="quotetitle">Intre napisał(a):</div><div class="quotecontent"><br />Mi kiedyś pomogło jak było nie tak coś, zrobić projekt od nowa i do niego skopiować pliki z projektu niedziałającego i wtedy leciało bez błędu.<br /></div><br /><br />Próbowałem i nie działa. Jak nie znajdę innej rady to wieczorem zainstaluje marsa.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=8607">PJasinski91</a> — 17 wrz 2015, o 14:37</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Intre]]></name></author>
<updated>2015-09-17T14:33:31+01:00</updated>
<published>2015-09-17T14:33:31+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140038#p140038</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140038#p140038"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140038#p140038"><![CDATA[
No to spróbj z tym Marsem może, odinstaluj jave itd. no zrób dokładnie wg. tego poradnika jak nie znasz <br /><br /><a href="http://mirekk36.blogspot.com/2015/07/eclipse-start-plus-pierwszy-program.html"  class="postlink">http://mirekk36.blogspot.com/2015/07/eclipse-start-plus-pierwszy-program.html</a><br /><br />Jak to nie pomoże to spróbój inny komputer bo jeszcze windows posypany może być, ale też możesz ewentualnie komuś wysłać kod cały żeby on puścił kompilacje i czy będzie miał błedy lub nie. <br /><br />Mi kiedyś pomogło jak było nie tak coś, zrobić projekt od nowa i do niego skopiować pliki z projektu niedziałającego i wtedy leciało bez błędu.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1356">Intre</a> — 17 wrz 2015, o 14:33</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[PJasinski91]]></name></author>
<updated>2015-09-17T14:18:04+01:00</updated>
<published>2015-09-17T14:18:04+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140037#p140037</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140037#p140037"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140037#p140037"><![CDATA[
Includy oczywiście mam. Nie zamieszczałem całości kodu bo jaki sens ma pokazywanie tu obsługa przerwań czy timerów.<br />Część &quot;includowa&quot;<br />[syntax=c]#include &lt;avr/io.h&gt;<br />#include &lt;stdio.h&gt;<br />#include &lt;avr/interrupt.h&gt;<br />#include &lt;util/delay.h&gt;<br />#include &lt;math.h&gt;<br />#include &lt;avr/pgmspace.h&gt;<br />#include &lt;stdlib.h&gt;<br /><br />#include &quot;MYUART/myuart.h&quot;<br />#include &quot;pcd8544.h&quot;  // --- biblioteka wyswietlacza<br />#include &quot;bmp.h&quot;      // --- zawiera bitmape<br /><br />#define PI 3.14159265<br /><br />volatile unsigned long int  pomiar_ilosc_cykli;<br /><br />volatile unsigned int ilosc_przepelnien0;<br />volatile unsigned int       ilosc_przepelnien1;<br /><br />volatile unsigned char      pomiar_zbocze_nr;<br /><br />volatile unsigned int       ICR1_moment_A;<br />volatile unsigned int       ICR1_moment_B;<br />volatile unsigned char      pomiar_gotowy;<br /><br />volatile unsigned charlewy;<br />volatile unsigned charprawy;[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=8607">PJasinski91</a> — 17 wrz 2015, o 14:18</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Intre]]></name></author>
<updated>2015-09-17T14:10:53+01:00</updated>
<published>2015-09-17T14:10:53+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140036#p140036</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140036#p140036"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140036#p140036"><![CDATA[
Coś ten Twój kod nie pełny a gdzie masz #include ?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1356">Intre</a> — 17 wrz 2015, o 14:10</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[PJasinski91]]></name></author>
<updated>2015-09-17T13:55:45+01:00</updated>
<published>2015-09-17T13:55:45+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140035#p140035</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140035#p140035"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140035#p140035"><![CDATA[
Używam Ecplise Luna, świeżo wypakowany i skonfigurowany. Niestety nie rozwiązało to problemu.<br /><br />[syntax=c]int main (void) {<br />//---------------------------ZMIENNE DO OBLICZEN-----------------<br />long int roznica_czasu;<br />int predkosc_dzwieku = 344;<br />long int roznica_odleglosci;<br />long int baza = 500000;<br />double alfa_rad;<br />int alfa;<br />//---------------------ZMIENNE LCD-------------------------------<br />    char buffer&#91;7&#93;;<br />int x1;<br />int x2=0;<br />int y1 = 32;<br />int y2=0;<br />int x;<br />int y;<br />int r = 24;<br />//ustawiamy nr pierwszego zbocza<br />pomiar_zbocze_nr = 1;<br />//zerujemy flagę który mikrofon był pierwszy<br />lewy = 0;<br />prawy = 0;<br />//Port D jako wejscie<br />DDRD = 0;<br />//Inicjalizacja UART<br />uart_init(__UBRR);<br />    PCD_Ini();<br />    //----------------------------LCD START--------------------<br />    PCD_Clr();<br />    PCD_Contr(0x7F);  // kontrast<br />    PCD_Img(tarcza);  // bitmapa<br />    PCD_Line(42, 18, 32, 32, 1);<br />    PCD_GotoXYFont(5,6);<br />    PCD_FStr(FONT_1X,PSTR(&quot;Witaj!!&quot;));<br />    PCD_Upd();<br />    _delay_ms(2500);<br />//---------------------PRZERWANIA INT0 I INT1--------------<br />//Generowanie przerwania INT0 i INT1 zboczem narastajacym<br />MCUCR |= (1&lt;&lt;ISC11)|(1&lt;&lt;ISC10)|(1&lt;&lt;ISC01)|(1&lt;&lt;ISC00);<br />//Właczenie przerwania INT0 i INT1<br />GICR |= (1&lt;&lt;INT0)|(1&lt;&lt;INT1);<br />//---------------------------------------------------------<br />//-------------------------PRZERWANIA ICP------------------<br />//Generowanie przerwania ICP zboczem narastającym, prescaler = 1<br />TCCR1B |= (1&lt;&lt;CS10)|(1&lt;&lt;ICES1);<br />//włącz przerwania z ICP1 Timer1<br />TIMSK |= (1&lt;&lt;TICIE1);<br />//---------------------------------------------------------<br />sei();<br /><br />while(1) {<br />if (pomiar_gotowy){<br />//---------------------OBLICZENIA KATA--------------<br />//Wyliczenie ilości cykli<br />pomiar_ilosc_cykli  =  65536 * ilosc_przepelnien1 - ICR1_moment_A + ICR1_moment_B;<br />roznica_czasu = pomiar_ilosc_cykli / 8 ;<br />roznica_odleglosci = predkosc_dzwieku * roznica_czasu;<br />alfa_rad = (double)acos((double)roznica_odleglosci/(double)baza);<br />alfa = alfa_rad * (double)180 / PI;<br />//-------------------OBLICZENIA LCD------------------<br />if (alfa &lt; 90){<br />    x1 = 42;<br />    }<br />else {<br />    x1 = 43;<br />    }<br />x = (int)r*cos(alfa*PI/180) + 0,5;<br />y = (int)r*sin(alfa*PI/180) + 0,5;<br />x2 = x1 - x;<br />y2 = y1 - y;<br />//---------------------------------------------------<br />//-----------------------------LCD-------------------<br />    PCD_Contr(0x7F);  // kontrast<br />    PCD_Line(x1, x2, y1, y2, 1);<br />PCD_GotoXYFont(1,6);<br />PCD_FStr(FONT_1X,PSTR(&quot;              &quot;));<br />PCD_Upd();<br />PCD_GotoXYFont(7,6);<br />    PCD_Str(FONT_1X,(unsigned char*)itoa(alfa,buffer,10));<br />    PCD_Upd();<br />//-----------------------------TERMINAL--------------<br />uart_puts(&quot;alfa: &quot;);<br />uart_putlong( alfa, 10 );<br />uart_puts(&quot;     &quot;);<br />pomiar_gotowy = 0;<br /><br /><br />}<br />}<br />}[/syntax]<br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />14:46:07 **** Incremental Build of configuration Release for project MAG_15_09c ****<br />make all <br />'Building target: MAG_15_09c.elf'<br />'Invoking: AVR C Linker'<br />avr-gcc -Wl,-Map,MAG_15_09c.map -mmcu=atmega32 -o &quot;MAG_15_09c.elf&quot;  ./MYUART/myuart.o  ./main.o ./pcd8544.o   <br />c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr5\libc.a(fp_arccos.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/fp_arccos.S:76:(.text.avr-libc.fplib+0x24): relocation truncated to fit: R_AVR_13_PCREL against symbol `__subsf3' defined in .text section in c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr5\libgcc.a(_addsub_sf.o)<br />c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr5\libc.a(fp_powsodd.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/fp_powsodd.S:59:(.text.avr-libc.fplib+0x10): relocation truncated to fit: R_AVR_13_PCREL against symbol `__mulsf3' defined in .text section in c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr5\libgcc.a(_mul_sf.o)<br />c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr5\libc.a(fp_powsodd.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/fp_powsodd.S:69:(.text.avr-libc.fplib+0x20): relocation truncated to fit: R_AVR_13_PCREL against symbol `__mulsf3' defined in .text section in c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr5\libgcc.a(_mul_sf.o)<br />collect2.exe: error: ld returned 1 exit status<br />make: *** [MAG_15_09c.elf] Błąd 1<br /><br />14:46:08 Build Finished (took 628ms)<br /></div><br />Linia<br />[syntax=c]PCD_Line(x1, x2, y1, y2, 1);[/syntax]<br />Powoduje błąd kompilacji. Tzn. nie podkreśla żadnych błędów składni czy warningów tylko nie chce skompilować tak jak wyżej pisałem.<br />Co ciekawe, jeśli znienne x1,x2,y1,y2 zamienie na stałe np. 1,2,3,4 program kompiluje się bez problemu. Jestem na 100% pewien, że wcześniej miałem tam zmienne x1 itd. i kompilowało ładnie i śmigało... Nie wiem, może mi się coś w głowie miesza i tam nie można zmiennych wcisnąć. Może wcałe ich tam wcześniej nie miałem tylko mi się to przyśniło?<br />Macie jakiś pomysł na rozwiązanie tego problemu?<br />Zmienić Eclipsa i to pomoże? Na jakiego?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=8607">PJasinski91</a> — 17 wrz 2015, o 13:55</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Intre]]></name></author>
<updated>2015-09-17T13:22:06+01:00</updated>
<published>2015-09-17T13:22:06+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140032#p140032</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140032#p140032"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140032#p140032"><![CDATA[
aa to mowicie ze z Indigo wam sie cuda działay <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /> a ja myslałem że mi sie Widows posypał więc reinstalnołem i na marsa przeszedłem a pewnie wystarczyło samego marsa zapodać <img src="https://forum.atnel.pl/images/smilies/icon_lol.gif" alt=":lol:" title="Śmieje się" />  <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><br /><br />A nie przepraszam, ja nie mialem z Indigo cudów a z Luną, więc chyba jednak coś bolało Windowsa <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1356">Intre</a> — 17 wrz 2015, o 13:22</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[wchpikus]]></name></author>
<updated>2015-09-17T06:36:39+01:00</updated>
<published>2015-09-17T06:36:39+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140026#p140026</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140026#p140026"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=140026#p140026"><![CDATA[
Już przesiadłem się na mars...<br /><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=3859">wchpikus</a> — 17 wrz 2015, o 06:36</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2015-09-16T15:56:14+01:00</updated>
<published>2015-09-16T15:56:14+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139966#p139966</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139966#p139966"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139966#p139966"><![CDATA[
INDIGO - dla masochistów <img src="https://forum.atnel.pl/images/smilies/icon_lol.gif" alt=":lol:" title="Śmieje się" /> tyle mogę powiedzieć<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 16 wrz 2015, o 15:56</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jerrylu]]></name></author>
<updated>2015-09-16T15:36:24+01:00</updated>
<published>2015-09-16T15:36:24+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139965#p139965</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139965#p139965"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139965#p139965"><![CDATA[
Z Indigo różne rzeczy się działy, dlatego tylko pojedynczy fani tej wersji go jeszcze używają.<br />Można tylko upraszać, żeby się nie skarżyli na forum, skoro chcą dalej iść tą &quot;kamienistą&quot; drogą <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=8719">jerrylu</a> — 16 wrz 2015, o 15:36</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[wchpikus]]></name></author>
<updated>2015-09-16T15:01:55+01:00</updated>
<published>2015-09-16T15:01:55+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139962#p139962</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139962#p139962"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139962#p139962"><![CDATA[
U mnie wlasnie tak sie dzieje, import nie dziala jak trzeba, musze utworzyc nowy projekt i skopiowac pliki do niego, wtedy dziala:)<br />Eclipse IDE for C/C++ Developers<br />Version: Indigo Service Release 2<br />Build id: 20120216-1857<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3859">wchpikus</a> — 16 wrz 2015, o 15:01</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Piotrek_P]]></name></author>
<updated>2015-09-15T10:07:00+01:00</updated>
<published>2015-09-15T10:07:00+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139870#p139870</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139870#p139870"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139870#p139870"><![CDATA[
Nie wiem jakiego Eclipse używasz. Zamiast tracić czas i się zastanawiać co jest nie tak, to ja bym rozpakował czystego Eclipsa np Mars w jakimś nowym katalogu i utworzył nowy projekt. Starsze projekty można łatwo zaimportować, jeżeli potrzeba.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=290">Piotrek_P</a> — 15 wrz 2015, o 10:07</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[PJasinski91]]></name></author>
<updated>2015-09-15T10:08:58+01:00</updated>
<published>2015-09-15T09:54:18+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139869#p139869</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139869#p139869"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139869#p139869"><![CDATA[
Tak. Nie pomaga.<br />----EDIT----<br />Sfrustrowany zacząłem przeglądać kod linijka po linijce i usuwać je cofając się do poprzednich wersji programu.<br />Znalazłem linijkę, która powoduje ten błąd. W głównej pętli while rysowanie linii na wyświetlaczu LCD.<br />[syntax=c]PCD_Line(x1, x2, y1, y2, 1);[/syntax]<br />Problem w tym, że wcześniej wielokrotnie kompilowałem kod ze znajdującą się tam tą funkcją <br />a Eclipse nie widzi tam żadnego błędu - nie podkreśla mi nic w kodzie a jedynie (aż) nie chce mi z tą funkcją go skompilować.<br />W czym problem?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=8607">PJasinski91</a> — 15 wrz 2015, o 09:54</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jerrylu]]></name></author>
<updated>2015-09-15T09:49:56+01:00</updated>
<published>2015-09-15T09:49:56+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139868#p139868</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139868#p139868"/>
<title type="html"><![CDATA[Re: Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139868#p139868"><![CDATA[
Clean project robiłeś?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=8719">jerrylu</a> — 15 wrz 2015, o 09:49</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[PJasinski91]]></name></author>
<updated>2015-09-15T09:00:21+01:00</updated>
<published>2015-09-15T09:00:21+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139865#p139865</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139865#p139865"/>
<title type="html"><![CDATA[Błąd kompilacji skopiowanego projektu.]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12948&amp;p=139865#p139865"><![CDATA[
Witam,<br />Dzisiaj podczas pracy nad projektem jak to robię zwykle stworzyłem kolejną jego kopię - tak by mieć zachowane poprzednie wersje programu a w nowej skopiowanej wersji dodawać nowy kod.<br />Niestety dziś po tej czynności nie chce mi się skompilować ani skopiowany projekt ani żadna z jego poprzednich wersji. Nie rozumiem dlaczego, ponieważ wcześniej wielokrotnie kompilowałem dany program, a operację z kopiowaniem też udawało mi się zawsze zrobić i wszystko ładnie śmigało. Przy próbie kompilacji wyświetla mi się:<br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />09:57:54 **** Incremental Build of configuration Release for project MAG_10_09c ****<br />make all <br />'Building target: MAG_10_09c.elf'<br />'Invoking: AVR C Linker'<br />avr-gcc -Wl,-Map,MAG_10_09c.map -mmcu=atmega32 -o &quot;MAG_10_09c.elf&quot;  ./MYUART/myuart.o  ./main.o ./pcd8544.o   <br />c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr5\libc.a(fp_arccos.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/fp_arccos.S:76:(.text.avr-libc.fplib+0x24): relocation truncated to fit: R_AVR_13_PCREL against symbol `__subsf3' defined in .text section in c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr5\libgcc.a(_addsub_sf.o)<br />c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr5\libc.a(fp_powsodd.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/fp_powsodd.S:59:(.text.avr-libc.fplib+0x10): relocation truncated to fit: R_AVR_13_PCREL against symbol `__mulsf3' defined in .text section in c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr5\libgcc.a(_mul_sf.o)<br />c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr5\libc.a(fp_powsodd.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/fp_powsodd.S:69:(.text.avr-libc.fplib+0x20): relocation truncated to fit: R_AVR_13_PCREL against symbol `__mulsf3' defined in .text section in c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avr5\libgcc.a(_mul_sf.o)<br />collect2.exe: error: ld returned 1 exit status<br />make: *** [MAG_10_09c.elf] Błąd 1<br />09:57:55 Build Finished (took 778ms)<br /></div><br />Dodam, że inne programy jak np. stworzone szybko dla testu miganie diody kompiluje się bez problemu.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=8607">PJasinski91</a> — 15 wrz 2015, o 09:00</p><hr />
]]></content>
</entry>
</feed>