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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2013-07-04T20:34:23+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=3449&amp;mode</id>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2013-07-04T20:34:23+01:00</updated>
<published>2013-07-04T20:34:23+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40854#p40854</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40854#p40854"/>
<title type="html"><![CDATA[Re: Nie kompiluje sie biblioteka LCD z Atmega8]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40854#p40854"><![CDATA[
<div class="quotetitle">gomes napisał(a):</div><div class="quotecontent"><br />Nie includujac w main pliku naglowkowego myslalem, ze przez kompilator te pliki sa pomijane czy ten na sile stara sie linkowac wszystko co ma w katalogu ?<br /></div><br /><br />Obejrzyj jednak jeszcze raz 2-3 pierwsze lekcje VIDEO z płyty DVD z książki to zobaczysz że do tego jest opcja EXCLUDE FROM BUILD <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> a nie to że sobie nie zainkludujesz w main.c <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> teraz już widzisz lepiej jak działa kompilator<br /><br /><div class="quotetitle">gomes napisał(a):</div><div class="quotecontent"><br />Widzialem na ktoryms z poradnikow Mirka aby przy tworzeniu projektu odznaczac debug, na szybko ktos wytlumaczy czy jest mozliwe debugowanie czyli ja rozumiem symulacja zachowania programu w petli ?<br /></div><br /><br />A poszukaj pan na naszym forum - przecież SunRiver dał dwa TŁUSTE poradniki na ten temat <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> trza tylko zajrzeć do odpowiedniego działu<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 4 lip 2013, o 20:34</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[gomes]]></name></author>
<updated>2013-07-04T20:26:22+01:00</updated>
<published>2013-07-04T20:26:22+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40853#p40853</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40853#p40853"/>
<title type="html"><![CDATA[Re: Nie kompiluje sie biblioteka LCD z Atmega8]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40853#p40853"><![CDATA[
Koledzy, predkosc z jaka dzialacie jest porazajaca (blyskawicznie wszystkie trafne podpowiedzi) a dla mnie chyba dzisiaj jest za goraco <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br />Rozmieszczenie na nowej PCB jest takie samo jak na poprzeniej z mala roznica (zamiast port A teraz port D) i wszystko sie kompiluje jak powinno<br /><br />[syntax=c]**** Build of configuration Release for project atmega8 ****<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=atmega8 -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 />Finished building: ../main.c<br /> <br />Building file: ../LCD/lcd44780.c<br />Invoking: AVR Compiler<br />avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega8 -DF_CPU=8000000UL -MMD -MP -MF&quot;LCD/lcd44780.d&quot; -MT&quot;LCD/lcd44780.d&quot; -c -o&quot;LCD/lcd44780.o&quot; &quot;../LCD/lcd44780.c&quot;<br />Finished building: ../LCD/lcd44780.c<br /> <br />Building file: ../IR_DECODE/ir_decode.c<br />Invoking: AVR Compiler<br />avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega8 -DF_CPU=8000000UL -MMD -MP -MF&quot;IR_DECODE/ir_decode.d&quot; -MT&quot;IR_DECODE/ir_decode.d&quot; -c -o&quot;IR_DECODE/ir_decode.o&quot; &quot;../IR_DECODE/ir_decode.c&quot;<br />Finished building: ../IR_DECODE/ir_decode.c<br /> <br />Building target: atmega8.elf<br />Invoking: AVR C Linker<br />avr-gcc -Wl,-Map,atmega8.map -mmcu=atmega8 -o&quot;atmega8.elf&quot;  ./main.o  ./LCD/lcd44780.o  ./IR_DECODE/ir_decode.o   <br />Finished building target: atmega8.elf<br /> <br />Invoking: AVR Create Extended Listing<br />avr-objdump -h -S atmega8.elf  &gt;&quot;atmega8.lss&quot;<br />Finished building: atmega8.lss<br /> <br />Create Flash image (ihex format)<br />avr-objcopy -R .eeprom -O ihex atmega8.elf  &quot;atmega8.hex&quot;<br />Finished building: atmega8.hex<br /> <br />Create eeprom image (ihex format)<br />avr-objcopy -j .eeprom --no-change-warnings --change-section-lma .eeprom=0 -O ihex atmega8.elf  &quot;atmega8.eep&quot;<br />Finished building: atmega8.eep<br /> <br />Invoking: Print Size<br />avr-size --format=avr --mcu=atmega8 atmega8.elf<br />AVR Memory Usage<br />----------------<br />Device: atmega8<br /><br />Program:    1308 bytes (16.0% Full)<br />(.text + .data + .bootloader)<br /><br />Data:         17 bytes (1.7% Full)<br />(.data + .bss + .noinit)<br /><br /><br />Finished building: sizedummy[/syntax]<br /><br /><div class="quotetitle">mirekk36 napisał(a):</div><div class="quotecontent"><br />/IR_DECODE/ir_decode.o<br /></div><br />Nie includujac w main pliku naglowkowego myslalem, ze przez kompilator te pliki sa pomijane czy ten na sile stara sie linkowac wszystko co ma w katalogu ?<br /><br /><div class="quotetitle">Krauser napisał(a):</div><div class="quotecontent"><br />I zmień konfigurację z debug na release (trójkącik przy ikonce młotka w Eclipse)<br /></div><br />Widzialem na ktoryms z poradnikow Mirka aby przy tworzeniu projektu odznaczac debug, na szybko ktos wytlumaczy czy jest mozliwe debugowanie czyli ja rozumiem symulacja zachowania programu w petli ?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=779">gomes</a> — 4 lip 2013, o 20:26</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Krauser]]></name></author>
<updated>2013-07-04T20:05:39+01:00</updated>
<published>2013-07-04T20:05:39+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40849#p40849</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40849#p40849"/>
<title type="html"><![CDATA[Re: Nie kompiluje sie biblioteka LCD z Atmega8]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40849#p40849"><![CDATA[
I zmień konfigurację z debug na release (trójkącik przy ikonce młotka w Eclipse)<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=465">Krauser</a> — 4 lip 2013, o 20:05</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Chudy]]></name></author>
<updated>2013-07-04T20:03:33+01:00</updated>
<published>2013-07-04T20:03:33+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40848#p40848</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40848#p40848"/>
<title type="html"><![CDATA[Re: Nie kompiluje sie biblioteka LCD z Atmega8]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40848#p40848"><![CDATA[
Mała podpowiedź:  DDRA w mega8? <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><br /><br />No cóż, Mirek mnie ubiegł  <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=909">Chudy</a> — 4 lip 2013, o 20:03</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2013-07-04T20:03:19+01:00</updated>
<published>2013-07-04T20:03:19+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40847#p40847</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40847#p40847"/>
<title type="html"><![CDATA[Re: Nie kompiluje sie biblioteka LCD z Atmega8]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40847#p40847"><![CDATA[
a tego też nie widzisz ?<br /><br />/IR_DECODE/ir_decode.o<br /><br />a tego ?<br /><br />../LCD/lcd44780.c:48: error: 'DDRA' undeclared (first use in this function)<br /><br />czy twoja ATmega8 ma PORTA ? <br /><br />no pomyśl - masz błędy podane na talerzu <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><br /><br />w pierwszym  przypadku masz w folderze projektu jakiś folder IR_DECODE - który próbuje się kompilować i tam masz kłopoty - a po co ci on do tego projektu<br /><br />w drugim przypadku czy przypadkiem nie pomyślałeś o tak ważnej rzeczy jak ustawienia pinów LCD do procka w pliku *.h<br /><br /><br />i dziwisz się ? <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=54">mirekk36</a> — 4 lip 2013, o 20:03</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[gomes]]></name></author>
<updated>2013-07-04T19:58:48+01:00</updated>
<published>2013-07-04T19:58:48+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40846#p40846</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40846#p40846"/>
<title type="html"><![CDATA[Nie kompiluje sie biblioteka LCD z Atmega8]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=3449&amp;p=40846#p40846"><![CDATA[
Dotychczas przerabiajac kody z niebieskiej ksiazki kompilacje robilem do atmaga16/32 i wszystko dzialalo jak powinno. Obecnie pracuje nad projektem na atmega8 i nie moge dojsc gdzie jest problem. <br />Napisalem taki oto kod wyswietlajacy na lcd test<br />[syntax=c]#include &lt;avr/io.h&gt;<br />#include &lt;util/delay.h&gt;<br />#include &quot;LCD/lcd44780.h&quot;<br /><br />int main(void) {<br />lcd_init();/* inicjalizacja LCD */<br />lcd_locate(0,0);<br />lcd_str_P(&quot;Test&quot;); /* wyświetl napis w zerowej linii LCD */<br /><br />_delay_ms(10);<br />while(1) {<br /><br /><br />}<br />}[/syntax]<br />i kompilujac to dla atmega16 wszystko jest ok<br />[syntax=c]**** Clean-only build of configuration Debug for project atmega8 ****<br /><br />make clean <br />rm -rf  ./main.o  ./LCD/lcd44780.o  ./IR_DECODE/ir_decode.o  ./main.d  ./LCD/lcd44780.d  ./IR_DECODE/ir_decode.d  atmega8.lss  sizedummy  atmega8.elf<br /> <br /><br />**** Build of configuration Debug for project atmega8 ****<br /><br />make all <br />Building file: ../main.c<br />Invoking: AVR Compiler<br />avr-gcc -Wall -g2 -gstabs -O0 -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega16 -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 />In file included from ../main.c:3:<br />c:/winavr-20100110/lib/gcc/../../avr/include/util/delay.h:90:3: warning: #warning &quot;Compiler optimizations disabled; functions from &lt;util/delay.h&gt; won't work as designed&quot;<br />Finished building: ../main.c<br /> <br />Building file: ../LCD/lcd44780.c<br />Invoking: AVR Compiler<br />avr-gcc -Wall -g2 -gstabs -O0 -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega16 -DF_CPU=8000000UL -MMD -MP -MF&quot;LCD/lcd44780.d&quot; -MT&quot;LCD/lcd44780.d&quot; -c -o&quot;LCD/lcd44780.o&quot; &quot;../LCD/lcd44780.c&quot;<br />In file included from ../LCD/lcd44780.c:20:<br />c:/winavr-20100110/lib/gcc/../../avr/include/util/delay.h:90:3: warning: #warning &quot;Compiler optimizations disabled; functions from &lt;util/delay.h&gt; won't work as designed&quot;<br />Finished building: ../LCD/lcd44780.c<br /> <br />Building file: ../IR_DECODE/ir_decode.c<br />Invoking: AVR Compiler<br />avr-gcc -Wall -g2 -gstabs -O0 -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega16 -DF_CPU=8000000UL -MMD -MP -MF&quot;IR_DECODE/ir_decode.d&quot; -MT&quot;IR_DECODE/ir_decode.d&quot; -c -o&quot;IR_DECODE/ir_decode.o&quot; &quot;../IR_DECODE/ir_decode.c&quot;<br />Finished building: ../IR_DECODE/ir_decode.c<br /> <br />Building target: atmega8.elf<br />Invoking: AVR C Linker<br />avr-gcc -Wl,-Map,atmega8.map -mmcu=atmega16 -o&quot;atmega8.elf&quot;  ./main.o  ./LCD/lcd44780.o  ./IR_DECODE/ir_decode.o   <br />Finished building target: atmega8.elf<br /> <br />Invoking: AVR Create Extended Listing<br />avr-objdump -h -S atmega8.elf  &gt;&quot;atmega8.lss&quot;<br />Finished building: atmega8.lss<br /> <br />Invoking: Print Size<br />avr-size --format=avr --mcu=atmega16 atmega8.elf<br />AVR Memory Usage<br />----------------<br />Device: atmega16<br /><br />Program:    7600 bytes (46.4% Full)<br />(.text + .data + .bootloader)<br /><br />Data:         25 bytes (2.4% Full)<br />(.data + .bss + .noinit)<br /><br /><br />Finished building: sizedummy[/syntax]<br /><br />ale zmieniajac target hardware na atmega8 <br /><br />[syntax=c]**** Clean-only build of configuration Debug for project atmega8 ****<br /><br />make clean <br />rm -rf  ./main.o  ./LCD/lcd44780.o  ./IR_DECODE/ir_decode.o  ./main.d  ./LCD/lcd44780.d  ./IR_DECODE/ir_decode.d  atmega8.lss  sizedummy  atmega8.elf<br /> <br /><br />**** Build of configuration Debug for project atmega8 ****<br /><br />make all <br />Building file: ../main.c<br />Invoking: AVR Compiler<br />avr-gcc -Wall -g2 -gstabs -O0 -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega8 -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 />In file included from ../main.c:3:<br />c:/winavr-20100110/lib/gcc/../../avr/include/util/delay.h:90:3: warning: #warning &quot;Compiler optimizations disabled; functions from &lt;util/delay.h&gt; won't work as designed&quot;<br />Finished building: ../main.c<br /> <br />Building file: ../LCD/lcd44780.c<br />Invoking: AVR Compiler<br />avr-gcc -Wall -g2 -gstabs -O0 -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega8 -DF_CPU=8000000UL -MMD -MP -MF&quot;LCD/lcd44780.d&quot; -MT&quot;LCD/lcd44780.d&quot; -c -o&quot;LCD/lcd44780.o&quot; &quot;../LCD/lcd44780.c&quot;<br />In file included from ../LCD/lcd44780.c:20:<br />c:/winavr-20100110/lib/gcc/../../avr/include/util/delay.h:90:3: warning: #warning &quot;Compiler optimizations disabled; functions from &lt;util/delay.h&gt; won't work as designed&quot;<br />../LCD/lcd44780.c: In function 'data_dir_out':<br />../LCD/lcd44780.c:48: error: 'DDRA' undeclared (first use in this function)<br />../LCD/lcd44780.c:48: error: (Each undeclared identifier is reported only once<br />../LCD/lcd44780.c:48: error: for each function it appears in.)<br />../LCD/lcd44780.c: In function 'data_dir_in':<br />../LCD/lcd44780.c:61: error: 'DDRA' undeclared (first use in this function)<br />../LCD/lcd44780.c: In function 'lcd_sendHalf':<br />../LCD/lcd44780.c:74: error: 'PORTA' undeclared (first use in this function)<br />../LCD/lcd44780.c: In function 'lcd_readHalf':<br />../LCD/lcd44780.c:90: error: 'PINA' undeclared (first use in this function)<br />../LCD/lcd44780.c: In function '_lcd_write_byte':<br />../LCD/lcd44780.c:110: error: 'PORTA' undeclared (first use in this function)<br />../LCD/lcd44780.c: In function '_lcd_read_byte':<br />../LCD/lcd44780.c:140: error: 'PORTA' undeclared (first use in this function)<br />../LCD/lcd44780.c: In function 'check_BF':<br />../LCD/lcd44780.c:163: error: 'PORTA' undeclared (first use in this function)<br />../LCD/lcd44780.c: In function 'lcd_write_cmd':<br />../LCD/lcd44780.c:176: error: 'PORTA' undeclared (first use in this function)<br />../LCD/lcd44780.c: In function 'lcd_write_data':<br />../LCD/lcd44780.c:187: error: 'PORTA' undeclared (first use in this function)<br />../LCD/lcd44780.c: In function 'lcd_init':<br />../LCD/lcd44780.c:483: error: 'DDRA' undeclared (first use in this function)<br />../LCD/lcd44780.c:490: error: 'PORTA' undeclared (first use in this function)<br />make: *** &#91;LCD/lcd44780.o&#93; Error 1[/syntax]<br /><br />Przewertowalem ponownie rozdzial o LCD ale nie znalazlem informacji o tym aby dla atmega8 trzeba bylo cos modyfikowac(nie widze zadnych timerow itp).<br />Przykladowo linia 48 to kod  DDR(LCD_D7PORT)|= (1&lt;&lt;LCD_D7); <br />a kompilator wyrzuca 'DDRA' undeclared (first use in this function)<br />Czy to problem z tymi makrodefinicjami ?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=779">gomes</a> — 4 lip 2013, o 19:58</p><hr />
]]></content>
</entry>
</feed>