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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2017-11-11T15:04:17+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=19585&amp;mode</id>
<entry>
<author><name><![CDATA[directx91]]></name></author>
<updated>2017-11-11T15:04:17+01:00</updated>
<published>2017-11-11T15:04:17+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19585&amp;p=198709#p198709</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19585&amp;p=198709#p198709"/>
<title type="html"><![CDATA[Re: Eclipse mars - problem przy 2giej kompilacji]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19585&amp;p=198709#p198709"><![CDATA[
<div class="quotetitle">anshar napisał(a):</div><div class="quotecontent"><br />directx91 napisał(a):<br />#include &quot;dodatkowe/HD44780.c&quot;<br /><br /><br />Plik .c włączyłeś zamiast .h<br /></div><br /><br /><br />yyyy fakt, brawo ja.... Dzięki<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2069">directx91</a> — 11 lis 2017, o 15:04</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[anshar]]></name></author>
<updated>2017-11-11T15:02:30+01:00</updated>
<published>2017-11-11T14:12:17+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19585&amp;p=198701#p198701</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19585&amp;p=198701#p198701"/>
<title type="html"><![CDATA[Re: Eclipse mars - problem przy 2giej kompilacji]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19585&amp;p=198701#p198701"><![CDATA[
[syntax=c]#include &lt;avr/io.h&gt;<br />#include &quot;dodatkowe/HD44780.h&quot;<br /> <br />int main(void)<br />{<br />        _delay_ms(500);<br />        LCD_Initalize();<br /> <br />        LCD_WriteText(&quot;prosze&quot;);<br /> <br />        DDRD |= (1&lt;&lt;PD6);<br />        while(1)<br />        {<br />                PORTD ^= (1&lt;&lt;PD6);<br />                _delay_ms(500);<br />        }<br />}[/syntax]<br />Includujesz plik *.c zamiast *.h.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7157">anshar</a> — 11 lis 2017, o 14:12</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[directx91]]></name></author>
<updated>2017-11-11T14:10:14+01:00</updated>
<published>2017-11-11T14:10:14+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19585&amp;p=198700#p198700</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19585&amp;p=198700#p198700"/>
<title type="html"><![CDATA[Re: Eclipse mars - problem przy 2giej kompilacji]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19585&amp;p=198700#p198700"><![CDATA[
No niestety nie <br /><br />Początek pliku &quot;HD44780.C&quot; zawiera<br /><br />[syntax=c]//-------------------------------------------------------------------------------------------------<br />// Wyświetlacz alfanumeryczny ze sterownikiem HD44780<br />// Sterowanie w trybie 4-bitowym bez odczytu flagi zajętości<br />// z dowolnym przypisaniem sygnałów sterujących<br />// Plik : HD44780.c<br />// Mikrokontroler : Atmel AVR<br />// Kompilator : avr-gcc<br />// Autor : Radosław Kwiecień<br />// Źródło : http://radzio.dxp.pl/hd44780/<br />// Data : 24.03.2007<br />//-------------------------------------------------------------------------------------------------<br /><br />#include &quot;HD44780.h&quot;[/syntax]<br /><br />idąc dalej, to <br /><br />w pliku HD44780.h jest:<br /><br />[syntax=c]//-------------------------------------------------------------------------------------------------<br />// Wyświetlacz alfanumeryczny ze sterownikiem HD44780<br />// Sterowanie w trybie 4-bitowym bez odczytu flagi zajętości<br />// z dowolnym przypisaniem sygnałów sterujących<br />// Plik : HD44780.h<br />// Mikrokontroler : Atmel AVR<br />// Kompilator : avr-gcc<br />// Autor : Radosław Kwiecień<br />// Źródło : http://radzio.dxp.pl/hd44780/<br />// Data : 24.03.2007<br />//-------------------------------------------------------------------------------------------------<br /><br />#include &lt;avr/io.h&gt;<br />#include &lt;util/delay.h&gt;<br /><br />//-------------------------------------------------------------------------------------------------<br />//<br />// Konfiguracja sygnałów sterujących wyświetlaczem.<br />// Można zmienić stosownie do potrzeb.<br />//<br />//-------------------------------------------------------------------------------------------------[/syntax]<br /><br />ale żeby nie było dopisałem, niemniej jednak i tak nie działa -,-<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2069">directx91</a> — 11 lis 2017, o 14:10</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[anshar]]></name></author>
<updated>2017-11-11T13:55:12+01:00</updated>
<published>2017-11-11T13:55:12+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19585&amp;p=198699#p198699</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19585&amp;p=198699#p198699"/>
<title type="html"><![CDATA[Re: Eclipse mars - problem przy 2giej kompilacji]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19585&amp;p=198699#p198699"><![CDATA[
Chodzi o to:<br />[syntax=c]#include &lt;avr/io.h&gt;[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7157">anshar</a> — 11 lis 2017, o 13:55</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[directx91]]></name></author>
<updated>2017-11-11T13:44:57+01:00</updated>
<published>2017-11-11T13:44:57+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19585&amp;p=198698#p198698</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19585&amp;p=198698#p198698"/>
<title type="html"><![CDATA[Eclipse mars - problem przy 2giej kompilacji]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19585&amp;p=198698#p198698"><![CDATA[
Cześć.<br />Od wczoraj mecze się z takim tematem, że dopinam sobie pliki obsługi wyświetlacza w standardzie HD44780 z obsługą flagi zajętości od radzia (radzio.dxp.pl) zawsze używałem i było ok.<br /><br />po kilku latach odkopałem sobie zestawy moje i zaczynam grzebać, na eclipse mars napisałem sobie na szybko programik:<br /><br />[syntax=c]/*<br /> * main.c<br /> *<br /> *  Created on: 11 lis 2017<br /> *      Author: oem<br /> */<br /><br /><br />#include &quot;dodatkowe/HD44780.c&quot;<br /><br />int main(void)<br />{<br />_delay_ms(500);<br />LCD_Initalize();<br /><br />LCD_WriteText(&quot;prosze&quot;);<br /><br />DDRD |= (1&lt;&lt;PD6);<br />while(1)<br />{<br />PORTD ^= (1&lt;&lt;PD6);<br />_delay_ms(500);<br />}<br />}[/syntax]<br /><br />w plikach radziowych nic nie zmieniałam, nawet portów, zmieniłem w main.c powyżej argument funckji LCD_WriteText na &quot;Nareszcie!&quot; dostaje zwrotkę serii błędów<br /><br />[syntax=c]13:24:10 **** Incremental Build of configuration Release for project Display ****<br />make all <br />'Building file: ../main.c'<br />'Invoking: AVR Compiler'<br />avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega1284p -DF_CPU=8000000UL -MMD -MP -MF&quot;main.d&quot; -MT&quot;main.o&quot; -c -o &quot;main.o&quot; &quot;../main.c&quot;<br />'Finished building: ../main.c'<br />' '<br />'Building target: Display.elf'<br />'Invoking: AVR C Linker'<br />avr-gcc -Wl,-Map,Display.map -mmcu=atmega1284p -o &quot;Display.elf&quot;  ./dodatkowe/HD44780.o  ./main.o   <br />./main.o: In function `_LCD_OutNibble':<br />main.c:(.text._LCD_OutNibble+0x0): multiple definition of `_LCD_OutNibble'<br />./dodatkowe/HD44780.o:HD44780.c:(.text._LCD_OutNibble+0x0): first defined here<br />./main.o: In function `_LCD_InNibble':<br />main.c:(.text._LCD_InNibble+0x0): multiple definition of `_LCD_InNibble'<br />./dodatkowe/HD44780.o:HD44780.c:(.text._LCD_InNibble+0x0): first defined here<br />./main.o: In function `_LCD_Read':<br />main.c:(.text._LCD_Read+0x0): multiple definition of `_LCD_Read'<br />./dodatkowe/HD44780.o:HD44780.c:(.text._LCD_Read+0x0): first defined here<br />./main.o: In function `LCD_ReadStatus':<br />main.c:(.text.LCD_ReadStatus+0x0): multiple definition of `LCD_ReadStatus'<br />./dodatkowe/HD44780.o:HD44780.c:(.text.LCD_ReadStatus+0x0): first defined here<br />./main.o: In function `_LCD_Write':<br />main.c:(.text._LCD_Write+0x0): multiple definition of `_LCD_Write'<br />./dodatkowe/HD44780.o:HD44780.c:(.text._LCD_Write+0x0): first defined here<br />./main.o: In function `LCD_WriteCommand':<br />main.c:(.text.LCD_WriteCommand+0x0): multiple definition of `LCD_WriteCommand'<br />./dodatkowe/HD44780.o:HD44780.c:(.text.LCD_WriteCommand+0x0): first defined here<br />./main.o: In function `LCD_WriteData':<br />main.c:(.text.LCD_WriteData+0x0): multiple definition of `LCD_WriteData'<br />./dodatkowe/HD44780.o:HD44780.c:(.text.LCD_WriteData+0x0): first defined here<br />./main.o: In function `LCD_ReadData':<br />main.c:(.text.LCD_ReadData+0x0): multiple definition of `LCD_ReadData'<br />./dodatkowe/HD44780.o:HD44780.c:(.text.LCD_ReadData+0x0): first defined here<br />./main.o: In function `LCD_WriteText':<br />main.c:(.text.LCD_WriteText+0x0): multiple definition of `LCD_WriteText'<br />./dodatkowe/HD44780.o:HD44780.c:(.text.LCD_WriteText+0x0): first defined here<br />./main.o: In function `LCD_GoTo':<br />main.c:(.text.LCD_GoTo+0x0): multiple definition of `LCD_GoTo'<br />./dodatkowe/HD44780.o:HD44780.c:(.text.LCD_GoTo+0x0): first defined here<br />./main.o: In function `LCD_Clear':<br />main.c:(.text.LCD_Clear+0x0): multiple definition of `LCD_Clear'<br />./dodatkowe/HD44780.o:HD44780.c:(.text.LCD_Clear+0x0): first defined here<br />./main.o: In function `LCD_Home':<br />main.c:(.text.LCD_Home+0x0): multiple definition of `LCD_Home'<br />./dodatkowe/HD44780.o:HD44780.c:(.text.LCD_Home+0x0): first defined here<br />./main.o: In function `LCD_Initalize':<br />main.c:(.text.LCD_Initalize+0x0): multiple definition of `LCD_Initalize'<br />./dodatkowe/HD44780.o:HD44780.c:(.text.LCD_Initalize+0x0): first defined here<br />collect2.exe: error: ld returned 1 exit status<br />make: *** &#91;Display.elf&#93; Błąd 1<br /><br />13:24:11 Build Finished (took 813ms)[/syntax]<br /><br />i co tu kurczaki chodzi?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2069">directx91</a> — 11 lis 2017, o 13:44</p><hr />
]]></content>
</entry>
</feed>